| Summary: | ghostscript-esp-8 causes blank previews for kpdf 3.5-poppler | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Eric Thibodeau <kyron> |
| Component: | [OLD] KDE | Assignee: | Printing Team <printing> |
| Status: | RESOLVED FIXED | ||
| Severity: | major | CC: | f5d8fd51ed1e804c9e8d0357e8614e0493b06e96, firephoto, kde, sebroeder, world.root |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | http://bugs.kde.org/show_bug.cgi?id=123795 | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Eric Thibodeau
2006-03-18 11:55:38 UTC
I think it is some odd package on your end. You should not mix x86 and ~x86 packages. Please try upgrading your system to ~x86: echo 'ACCEPT_KEYWORDS="~x86"' >> /etc/make.conf emerge -uvaD world then rebuild the affected packages: emerge -va1 poppler poppler-bindings kpdf I can tell you that printing preview works on my system so this is most likely an issue on your side. related to 125430? cannot see a relation .. here -Os is not used as on the other bug. Anyway, please reopen if you still see this. We cannot help for unreproduceable bugs where the reporter is unresponsible emerge -va1 poppler poppler-bindings kpdf [ebuild R ] app-text/poppler-0.5.1 USE="jpeg" [ebuild R ] app-text/poppler-bindings-0.5.1 USE="cairo qt -gtk" [ebuild R ] kde-base/kpdf-3.5.2 USE="arts kdeenablefinal xinerama -debug -kdexdeltas" I did that, previewing and printing of pdf files still does not work with kpdf. These same pdf files do preview fine in kghostview. System is current ~x86 as of 12 hours ago except for gcc-3.4.6* is masked. revdep-rebuild is clean # emerge --info Portage 2.1_pre7-r2 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16-ck1 i686) ================================================================= System uname: 2.6.16-ck1 i686 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.12.0_pre16 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] dev-lang/python: 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -msse2 -fprefetch-loop-arrays -ftracer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -msse2 -fprefetch-loop-arrays -ftracer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache distcc distlocks metadata-transfer parallel-fetch sfperms strict" GENTOO_MIRRORS="http://mirrors.tds.net/gentoo" LANG="en_US.utf8" LC_ALL="en_US.utf8" LDFLAGS="-Wl,-O1" MAKEOPTS="-j3" PKGDIR="/usr/local/portage_packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 3dnow X aac acpi alsa apm arts artswrappersuid asf audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo cdparanoia cdr cjk cli crypt css ctype cups curl dba dbus dga dlloader dri dv dvd dvdr emboss encode exif expat fastbuild ffmpeg flac flash foomaticdb force-cgi-redirect fortran ftp gd gdbm geoip ggi gif gphoto2 gpm gtk2 hal idn ieee1394 imagemagick imap imlib jabber java jpeg kcal kde kdeenablefinal kipi kqemu lcms libg++ libwww lirc logitech-mouse mad memlimit mikmod mmx mmxext mng mp3 mpeg mplayer musicbrainz ncurses nls nomotif nptl nptlonly nsplugin offensive ogg openexr opengl pam pcre pdflib perl png posix ppds python qt quicktime rdesktop readline real samba scanner sdl session simplexml slp soap sockets softmmu speex spell spl sqlite sse sse2 ssl svg svga symlink tcltk tcpd theora tidy tiff tokenizer truetype truetype-fonts tscd type1-fonts udev unicode usb userlocales v4l v4l2 vorbis win32codecs wmf xine xinerama xml xml2 xprint xsl xv xvid yv12 zeroconf zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_none video_cards_nvidia" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LINGUAS ok, that was not the reason, maybe it is CFLAGS or compiler version. Please try with CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe" and rebuild those 3 packages Alos gcc4 might be useful, but I really doubt that could be the cause. I do not see it on any pdf here .. Tried this CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe" emerge -va1 poppler poppler-bindings kpdf Same results. I tested on a different box, I don't have kghostview installed so I get an error. "Preview failed: neither the internal KDE PostScript viewer (KGhostView) or any other external PostScript viewer could not be found" So I installed kghostview there and the preview window comes up but it's blank like the other boxes. what ghostscript are you using? I am begining to believe that this is not a kpdf problem. app-text/ghostscript-esp-8.15.1 USE="X cjk cups xml% -emacs -gtk -threads" I'm unmerging this now and emerging ghostscript-gnu since my discovery of multiple versions and implementations of ghostscript along with a little research makes me think this is the entire problem. I'll report back in a bit. Emerging ghostscript-gnu seems to have solved the problem with previewing/printing with kpdf. I also notice that prior to ghostscript-esp I just had plain ghostscript so I'm not sure what forced or made the choice of the esp version and emerge world doesn't show any dep issues by using the gnu version. Here doesn't print anything and does blank print preview , I tried unmerging ghostview-esp and emergeing ghostview-gnu. Now, non-landscape pdfs seem to be previewed and printed fine, still landscape pdfs are cusing issues,during a print preview, I got: X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 73 (X_GetImage) Serial number of failed request: 80648 Oh, I was forgotting: also, ghostscript-gnu uses souces of cups-1.1.20 to compile instead that the current cups-1.1.23-r1/4/7 . I have no clue yet, why gs-esp is causing this :( It works fine with gs-gnu and gs-afpl. They are interchangeable, you can use either of them if you like. *** Bug 128751 has been marked as a duplicate of this bug. *** For me, the kpdf print preview seems incompatible (ie: appears blank) with the following ghostscript-esp versions: app-text/ghostscript-esp-8.15.1 app-text/ghostscript-esp-8.15.1-r1 I see nothing special printed in the console. But it *does* work with the following version: app-text/ghostscript-esp-7.07.1-r10 If I downgrade to non-poppler kpdf 3.5.1, it always works, regardless of ghostscript-esp version. I have talked to ubuntu, the other distribution using the kpdf-poppler integration patch - they have the same problem. For the moment the suggested workaround is to use ghostscript-gnu When emerging ghostscript-gnu instead of ghostscript-esp, using kpdf I get the following message upon print preview: An error occured in rendering. Exited with error code 1. GNU Ghostscript 8.16 : Can't find initialization file gs_init.ps. I'm sorry, I have no logs for this, but ghostscript-esp cannot render postscripts created by pdftops (part of poppler), as some ghostscript errors occur. I already switched to ghostscript-gpl so I cannot show an error message, the only line I have saved is: ----------- /configurationerror in --setpagedevice ----------- NOTE: This bug affects much more than kpdf print preview. Its also impossible to view postscript-files created from pdfs by pdftops and maybe also other postscript-files. I can confirm this bug: can't print pdfs and printpreview doesn't work. ~ # emerge -pv ghostscript-esp poppler poppler-bindings kpdf [ebuild R ] app-text/ghostscript-esp-8.15.1-r1 USE="X cups xml -cjk -emacs -gtk -threads" 0 kB [ebuild R ] app-text/poppler-0.5.1-r1 USE="jpeg" 0 kB [ebuild R ] app-text/poppler-bindings-0.5.1-r1 USE="qt -cairo -gtk -qt4" 0 kB [ebuild R ] kde-base/kpdf-3.5.2 USE="arts kdeenablefinal xinerama -debug" 0 kB ~ # emerge --info Portage 2.1_pre9-r4 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r3, 2.6.16-suspend2-r4-April24th i686) ================================================================= System uname: 2.6.16-suspend2-r4-April24th i686 Intel(R) Pentium(R) M processor 1.60GHz Gentoo Base System version 1.12.0_pre18 dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium-m -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium-m -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="/home/distfiles http://ftp.rz.tu-bs.de/pub/mirror/ftp.gentoo.org/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.gentoo.org/gentoo-distfiles http://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo" LANG="en_US.UTF-8" LINGUAS="de" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X acl acpi alsa arts avi bash-completion berkdb bitmap-fonts bzip2 cdr cli crypt cups dri dvd dvdr emboss encode exif foomaticdb fortran gdbm gif gphoto2 gpm imap imlib isdnlog jpeg kde kdeenablefinal kdexdeltas libg++ libwww mad mikmod mmx mp3 mpeg ncurses nls nptl nsplugin ogg opengl oss pam pcre pdflib perl png ppds pppd python qt quicktime readline reflection sasl scanner sdl session spell spl sqlite sse ssl tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis xinerama xml xorg xv zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux linguas_de userland_GNU video_cards_i810" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS I tried to downgrade to the last "non-poppler" version of kpdf (3.5.1-r1) but it is not in portage anymore. I think it would be a good idea to have an version of kpdf with the "original" xpdf code in the tree until the problem with poppler is sorted out. A pdf application without the possibility to print is a no-go for me. Although the problem seems to be in the patched kpdf rather then in ghostscript-*. I wish there is a good coordination about the poppler-patches with upstream kpdf devels to solve the problems. I recently read a blog where a kpdf guy stated he is not so lucky about all the distros heavily patching the internals of kpdf (although I think the "poppler-way" is a good thing [TM]). Regards Sero Here is what would be the best "workaround" to prevent people with a pretty standard installation from getting the printing issue. * Do a kpdf-3.5.2-r1 that DOES NOT have the poppler patch but uses internal xpdf code instead (I tried to adjust the ebuild by myself but I got an error about kde-base/kpdf not beeing in the KDE_DERIVATION_MAP. I leck the kde-split-ebuild knowledge to do the task). Put this ebuild in portage (~x86). * Do a kpdf-3.5.2-r2 that is identical to the current ebuild with poppler-patch but add a warning message when this is build against ghostscript-esp. (I don't know if it is possible to not depend on virtual/ghostscript but one of ghostscript-gnu or ghostscript-afpl. This would be the best way). * Remove kpdf-3.5.2 from the tree. * Hope that the poppler printing issues are solved soon. Thanks in advance! This is not viable, you're suggested to use ghostscript-gnu instead of -esp. The reason we don't use xpdf code is because of security concern, we're not really keen on going applying patches every two weeks as it often happen with xpdf (found one issue, you can be sure there will be three other vulnerabilities waiting :/). But even ghostscript-gnu does not fix all the problems (print preview for pdf files). Furthermore I use a x86 ghostscript-esp version and *-esp is known to have the best support for different printers (many of them missing in *-gnu as far as I know). ghostscript-esp is working fine. Now I should change to ghostscript-gnu (which might cause new problems) only because an app that relies on ghostscript was patched downstream and doesn't work anymore with ALL possible virtual/ghostscripts? This is not a solution. I agree that the xpdf code had many securetty issues in the past(and will have in the feature). But as long as the patched poppler version doesn't work, I see no other workaround. At least there are no know securetty issues atm in xpdf code. It doesn't help if an app is saver but doesn't perform basic tasks anymore. I think it's time for some brainstorming. I just wrote down what I (!) though would be a quick temporary solution. Maybe the better way to go is to fix the poppler-patches in some way, don't know. My proposal consists of two ebuilds, so I didn't want to role back all the poppler-development, but give the user the chance to install an older ebuild to get kpdf printing working again. For kpdf-3.4.x there are older ebuild that use xpdf, too. So please make this possible for the 3.5.x croud as well. There are other unfixed bugs in ghostscript-esp that justify switching to ghostscript-gnu, just search for ghostscript-esp in bugzilla. Also there is ghostscript-afpl if you have an unsupported printer. Sebastian, have you tried to downgrade ghostscript-esp as I suggest in comment #14 ? Really, downgrading ghostscript-esp finally solved the problem for me. today I tried gs-esps cvs in combination with the ubuntu patches and discovered that the bug disappeared :) wait one hour and sync to get ghostscript-esp-8.15.1_p20060430.ebuild which fixes the issue. Thank you all! Ah, at last, *this* new ghostscript-esp works great ! Thanks a bunch :-) |