Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 426552 - upgrade to poppler-0.20.1 breaks printing in firefox-13.0
Summary: upgrade to poppler-0.20.1 breaks printing in firefox-13.0
Status: RESOLVED DUPLICATE of bug 426674
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: poppler-0.20
  Show dependency tree
 
Reported: 2012-07-14 08:27 UTC by gringo
Modified: 2012-07-18 11:06 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gringo 2012-07-14 08:27:13 UTC
summary is quite descriptive i think : if i upgrade to poppler-0.20.1 i cannot print anything in firefox-13.0.

Reproducible: Always

Steps to Reproduce:
1. update to poppler-0.20.1
2. try to print anything in firefox
3. printer seems to start printing but suddenly hangs



In Cups web interface i can see following error for every document that is sent to the printer :

/usr/libexec/cups/filter/pdftops failed

Im not printing a pdf in case that matters, the file exists and has the right permissions. Error.log doesnt provide more information.

Strangely enough firefox is the only software that refuses to print : gedit, liberoffice and thunderbird have no problems at all.

Downgrading to poppler-0.18.4-r1 solves the problem for me.

emerge --info :
Portage 2.2.0_alpha118 (default/linux/amd64/10.0/desktop/gnome, gcc-4.6.3, glibc-2.15-r2, 3.5.0-rc3 x86_64)
=================================================================
System uname: Linux-3.5.0-rc3-x86_64-Intel-R-_Core-TM-_i5_CPU_M_520_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Sat, 14 Jul 2012 05:30:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p36
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.8-r3
dev-util/pkgconfig:       0.27
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4-r1 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo lcd-filtering x-overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -mtune=corei7 -mcx16 -msahf -maes -msse4.2 -msse4.1 -mno-movbe -mpclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -floop-interchange -floop-strip-mine -floop-block"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=corei7 -mtune=corei7 -mcx16 -msahf -maes -msse4.2 -msse4.1 -mno-movbe -mpclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -floop-interchange -floop-strip-mine -floop-block"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going -q --jobs=3 --quiet-unmerge-warn --autounmask-write"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks fixlafiles news nodoc noinfo noman parallel-fetch parallel-install parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="es_ES.UTF-8"
LC_ALL="es_ES.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
LINGUAS="es es_ES"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--delete-excluded --exclude ChangeLog --exclude=metadata/cache/*"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/lcd-filtering /usr/local/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 archive bash-completion bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups cxx dbus dga dri dts dv dvb dvd dvdr eds emboss encode evo exif faac ffmpeg firefox flac gif gnome gnome-keyring gphoto2 gpm gstreamer gtk iconv java jpeg lcdfilter lcms libnotify mad mmx modules mp3 mp4 mpeg mudflap multilib nautilus ncurses network-cron networkmanager nls nptl nsplugin ogg opengl openmp pam pango pcre pdf pic png policykit ppds pppd pulseaudio qt3support readline samba sdl session spell sse sse2 sse3 ssl ssse3 startup-notification svg theora threads tiff truetype udev udisks unicode upower usb v4l vaapi vorbis vpx x264 xcb xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" FOO2ZJS_DEVICES="hp1020" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="es es_ES" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="i386 x86_64 ppc ppc64 arm" QEMU_USER_TARGETS="i386 x86_64 ppc ppc64 arm" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="plustek plustek_pp" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON

i tried rebuilding both firefox and poppler without the -floop-* stuff but it didnt make any difference at all.

sorry if this has been reported already, havent been able to find a bug report with the same issue here or in upstream bugzilla.

not sure what information you need, pls. let me know.

thanks
Comment 1 Manuel Rüger (RETIRED) gentoo-dev 2012-07-14 17:26:34 UTC
poppler-0.20.2 is in tree, can you try again? which cups version do you have installed?
Comment 2 octoploid 2012-07-14 19:27:01 UTC
I had the same problem with poppler-0.20.1.
Poppler-0.20.2 fixes the issue for me.
Comment 3 Andreas Sturmlechner gentoo-dev 2012-07-15 14:43:42 UTC
I successfully printed a PDF from firefox-13 with poppler-0.20.2
Comment 4 Mario Bachmann 2012-07-15 19:44:34 UTC
Same problem here, but poppler-0.20.2 did not fix the problem. 

Only some web pages causes problems when printing out of firefox-13.0. Some other web pages work. It seems that poppler-0.20.2 produces files which /usr/libexec/cups/filter/pdftops (from cups) can not handle.

It is not a nice test web page, but the problem occurs here with (firefox):
http://www.heise.de/security/news/foren/S-Anbieter-Produkt-Versprechung-und-Zielgruppe/forum-233189/msg-22116192/read/

Same web page can be printed out of opera. 

problems with this combination:
  app-text/poppler-0.20.2
  www-client/firefox-13.0
  net-print/cups-1.5.2-r21
  net-print/cups-pdf-2.6.1

no problems with this combination:
  app-text/poppler-0.18.4-r1
  www-client/firefox-13.0
  net-print/cups-1.5.2-r21
  net-print/cups-pdf-2.6.1

I know the versions of cups and cups-pdf are some days old. 

When the problem occurs, my cups-error_log says:
E [15/Jul/2012:19:30:12 +0200] [Job 1658] Job stopped due to filter errors; please consult the error_log file for details.
D [15/Jul/2012:19:30:12 +0200] [Job 1658] The following messages were recorded from 19:30:11 to 19:30:12
D [15/Jul/2012:19:30:12 +0200] [Job 1658] Adding start banner page "none".
D [15/Jul/2012:19:30:12 +0200] [Job 1658] Queued on "pdf" by "grafrotz".
D [15/Jul/2012:19:30:12 +0200] [Job 1658] File of type application/pdf queued by "grafrotz".
D [15/Jul/2012:19:30:12 +0200] [Job 1658] Adding end banner page "none".
D [15/Jul/2012:19:30:12 +0200] [Job 1658] job-sheets=none,none
D [15/Jul/2012:19:30:12 +0200] [Job 1658] argv[0]="pdf"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] argv[1]="1658"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] argv[2]="grafrotz"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] argv[3]="Anbieter, Produkt, Versprechung und Zielgruppe..... | Comeback des unsicheren Fe
stplattenversc... | heise security news-Foren"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] argv[4]="1"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] argv[5]="HPJobAccounting= HPJobByJobOverride= HPManualDuplexDialogItems=InstructionID_01_
NPP noHPOrientRotate180 noHPStraightPaperPath HPXMLFileUsed=HPXMLFileName InputSlot=Tray1 noJCLFastRes noJCLHPPrintOnBothSidesManua
lly JCLResolution=1200dpi JCLRETChoice job-originating-host-name=192.168.0.4 job-uuid=urn:uuid:06e5391f-0056-3f5f-49dc-461fbf81576d
 lease-duration=60 MediaType=PLAIN number-up=1 OutputBin=Upper PageSize=A4 PrintQualityGroup=PQGroup_2 time-at-creation=1342373411 
time-at-processing=1342373411 time-at-creation=1342373411"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] argv[6]="/var/spool/cups/d01658-001"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[2]="CUPS_DOCROOT=/usr/share/cups/html"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[5]="CUPS_SERVERBIN=/usr/libexec/cups"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[8]="HOME=/var/spool/cups/tmp"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[9]="PATH=/usr/libexec/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[10]="SERVER_ADMIN=root@server.grafnetz"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[11]="SOFTWARE=CUPS/1.5.3"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[13]="USER=root"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[14]="CUPS_SERVER=/var/run/cups/cups.sock"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[15]="CUPS_ENCRYPTION=IfRequested"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[16]="IPP_PORT=631"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[17]="CHARSET=utf-8"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[18]="LANG=de_DE.UTF-8"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[19]="PPD=/etc/cups/ppd/pdf.ppd"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[20]="RIP_MAX_CACHE=128m"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[21]="CONTENT_TYPE=application/pdf"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[22]="DEVICE_URI=cups-pdf:/"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[23]="PRINTER_INFO=PDF-Drucker"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[24]="PRINTER_LOCATION=share"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[25]="PRINTER=pdf"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[26]="PRINTER_STATE_REASONS=none"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[27]="CUPS_FILETYPE=document"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[28]="FINAL_CONTENT_TYPE=application/vnd.cups-postscript"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] envp[29]="AUTH_I****"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] Started filter /usr/libexec/cups/filter/pdftops (PID 18335)
D [15/Jul/2012:19:30:12 +0200] [Job 1658] Started backend /usr/libexec/cups/backend/cups-pdf (PID 18336)
D [15/Jul/2012:19:30:12 +0200] [Job 1658] Started filter pdftops (PID 18337)
D [15/Jul/2012:19:30:12 +0200] [Job 1658] Started filter pstops (PID 18338)
D [15/Jul/2012:19:30:12 +0200] [Job 1658] Page = 595x842; 12,12 to 583,829
D [15/Jul/2012:19:30:12 +0200] [Job 1658] slow_collate=0, slow_duplex=0, slow_order=0
D [15/Jul/2012:19:30:12 +0200] [Job 1658] Before copy_comments - %!PS-Adobe-3.0
D [15/Jul/2012:19:30:12 +0200] [Job 1658] %!PS-Adobe-3.0
D [15/Jul/2012:19:30:12 +0200] [Job 1658] %Produced by poppler pdftops version: 0.20.2 (http://poppler.freedesktop.org)
D [15/Jul/2012:19:30:12 +0200] [Job 1658] %%Creator: cairo 1.10.2 (http://cairographics.org)
D [15/Jul/2012:19:30:12 +0200] [Job 1658] %%LanguageLevel: 2
D [15/Jul/2012:19:30:12 +0200] [Job 1658] %%DocumentSuppliedResources: (atend)
D [15/Jul/2012:19:30:12 +0200] [Job 1658] %%DocumentMedia: 596x842 596 842 0 () ()
D [15/Jul/2012:19:30:12 +0200] [Job 1658] %%BoundingBox: 0 0 596 842
D [15/Jul/2012:19:30:12 +0200] [Job 1658] %%Pages: 1
D [15/Jul/2012:19:30:12 +0200] [Job 1658] %%EndComments
D [15/Jul/2012:19:30:12 +0200] [Job 1658] Before copy_prolog - %%BeginProlog
D [15/Jul/2012:19:30:12 +0200] [Job 1658] Before copy_setup - %%BeginSetup
D [15/Jul/2012:19:30:12 +0200] [Job 1658] The %%EndSetup comment is missing.
D [15/Jul/2012:19:30:12 +0200] [Job 1658] Before page loop - DEBUG: Wrote 0 pages...
D [15/Jul/2012:19:30:12 +0200] [Job 1658] PID 18337 (pdftops) crashed on signal 8!
D [15/Jul/2012:19:30:12 +0200] [Job 1658] PID 18338 (pstops) exited with no errors.
D [15/Jul/2012:19:30:12 +0200] [Job 1658] GPL Ghostscript 9.05: Unrecoverable error, exit code 1
D [15/Jul/2012:19:30:12 +0200] [Job 1658] GPL Ghostscript 9.05: Set UseCIEColor for UseDeviceIndependentColor to work properly.
D [15/Jul/2012:19:30:12 +0200] [Job 1658] [1] Wrote 1 pages, 13422 bytes
D [15/Jul/2012:19:30:12 +0200] [Job 1658] [1] Wrote 1 pages, 13423 bytes
D [15/Jul/2012:19:30:12 +0200] [Job 1658] GPL Ghostscript 9.05: Set UseCIEColor for UseDeviceIndependentColor to work properly.
D [15/Jul/2012:19:30:12 +0200] [Job 1658] GPL Ghostscript 9.05: Set UseCIEColor for UseDeviceIndependentColor to work properly.
D [15/Jul/2012:19:30:12 +0200] [Job 1658] End of messages
D [15/Jul/2012:19:30:12 +0200] [Job 1658] printer-state=3(idle)
D [15/Jul/2012:19:30:12 +0200] [Job 1658] printer-state-message="/usr/libexec/cups/filter/pdftops failed"
D [15/Jul/2012:19:30:12 +0200] [Job 1658] printer-state-reasons=none

The important message is:
Before page loop - DEBUG: Wrote 0 pages...

As I said: Some web pages work with the bad combination (poppler-0.20.2), I succsessfully printed:
http://www.heise.de/newsticker/meldung/USB-Spionagekoeder-Niederlaendische-Firma-beisst-nicht-an-1641190.html?view=print
Comment 5 gringo 2012-07-16 07:31:42 UTC
(In reply to comment #1)
> poppler-0.20.2 is in tree, can you try again? which cups version do you have
> installed?

nope, same problem with 0.20.2.
cups version is the latest available in ~arch : 1.5.3.

thanks
Comment 6 octoploid 2012-07-17 20:53:59 UTC
(In reply to comment #2)
> I had the same problem with poppler-0.20.1.
> Poppler-0.20.2 fixes the issue for me.

No. I spoke too soon. Still crashes with 0.20.2.

https://bugs.gentoo.org/show_bug.cgi?id=426674 is a dup
Comment 7 James 2012-07-18 03:48:28 UTC
I'm getting this same problem with glabels pdftops crashed on signal 8!
I have had this problem with poppler-0.20.0 through 0.20.2, no difference.  I have rebuilt everything that Poppler depends on, as well as cups itself.  What can I do to further test this problem?
Thanks,
James
Comment 8 James 2012-07-18 04:05:48 UTC
I'm sorry to add to this, but I am receiving a note in my dmesg:

pdftops[21266] trap divide error ip:7fe98a1ce88a sp:7fff7dfe4a60 error:0 in libpoppler.so.26.0.0[7fe98a06d000+223000]
pdftops[3918] trap divide error ip:7f809dba588a sp:7fff07bf7b50 error:0 in libpoppler.so.26.0.0[7f809da44000+223000]
pdftops[2831] trap divide error ip:7f0d5282188a sp:7fff87b55850 error:0 in libpoppler.so.26.0.0[7f0d526c0000+223000]

I should also note that bug 426674 mentions that this has been filed upstream:  https://bugs.freedesktop.org/show_bug.cgi?id=52215
Comment 9 Ben de Groot (RETIRED) gentoo-dev 2012-07-18 11:06:27 UTC
Since bug #426674 is closer to a solution, with a patch attached, I'm closing this one as a duplicate of that issue.

*** This bug has been marked as a duplicate of bug 426674 ***