Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 361527 - app-text/ghostscript-gpl - printing images in landscape plus scaling crashes
Summary: app-text/ghostscript-gpl - printing images in landscape plus scaling crashes
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-31 21:27 UTC by sphakka
Modified: 2011-07-02 17:15 UTC (History)
1 user (show)

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


Attachments
undersized test image (05052011767-scaled.jpg,22.42 KB, text/plain)
2011-07-02 17:15 UTC, sphakka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sphakka 2011-03-31 21:27:06 UTC
Hi there,

trying to print an *image* (tried jpegs and gifs) in *landscape* orientation plus *scaling* via KDE applications (tried okular end gwenview) crashes pstoraster:

[/var/log/cups/error_log]
-------------------------------------------------------------------
E [31/Mar/2011:22:44:08 +0200] PID 22974 (/usr/libexec/cups/filter/pstoraster) crashed on signal 11!
D [31/Mar/2011:22:44:08 +0200] [Job 49] Can't open CUPS raster file.DEBUG: Wrote 1 pages...
D [31/Mar/2011:22:44:08 +0200] [Job 49] PID 22979 (pstops) exited with no errors.
D [31/Mar/2011:22:44:08 +0200] [Job 49] PID 22977 (pdftops) exited with no errors.
D [31/Mar/2011:22:44:08 +0200] cupsdCloseClient: 15
D [31/Mar/2011:22:44:08 +0200] PID 22973 (/usr/libexec/cups/filter/pdftops) exited with no errors.
E [31/Mar/2011:22:44:08 +0200] PID 22975 (/usr/libexec/cups/filter/epson-escpr-wrapper) stopped with status 1!
D [31/Mar/2011:22:44:13 +0200] PID 22976 (/usr/libexec/cups/backend/socket) exited with no errors.
D [31/Mar/2011:22:44:13 +0200] [Job 49] File 0 is complete.
E [31/Mar/2011:22:44:13 +0200] [Job 49] Job stopped due to filter errors.
D [31/Mar/2011:22:44:13 +0200] Discarding unused printer-state-changed event...
D [31/Mar/2011:22:44:13 +0200] Discarding unused job-stopped event...
D [31/Mar/2011:22:44:14 +0200] [Job 49] Unloading...
-------------------------------------------------------------------

and 

[dmesg]
-------------------------------------------------------------------
gs[22974] general protection ip:5c5d8c sp:7fff1868d9b0 error:0 in gs[400000+5de000]
-------------------------------------------------------------------

The image get instead correctly printed in the following scenarios:
* landscape, no scaling, image fitting the page;
* with non-KDE apps (f.i. gimp), whatever setting.

My setup is:

  * net-print/epson-inkjet-printer-escpr 1.0.2 (testing on ~amd64 from <http://bugs.gentoo.org/show_bug.cgi?id=337953>)
  * app-text/ghostscript-gpl 8.71-r6
  * kde 4.4.5
  * net-print/cups 1.3.11-r4

This might be related to bug <http://bugs.gentoo.org/show_bug.cgi?id=312927>.

Cheers,

  ^s


Reproducible: Always

Steps to Reproduce:
1. open a jpeg file with okular
2. open print menu -> "properties", set "orientation" to "landscape" and click OK
3. expand "Options" -> "image settings", set "scaling" to "fit image to page" plus "enlarge smaller image"
4. print
Actual Results:  
pstoraster crahses and the print job is stopped

Expected Results:  
The image should get rotated, scaled down to paper size and printed.

Portage 2.1.9.42 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.5, glibc-2.11.3-r0, 2.6.36-gentoo-r8 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r8-x86_64-AMD_Turion-tm-_64_X2-with-gentoo-2.0.2
Timestamp of tree: Thu, 31 Mar 2011 17:15:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.0
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13::<unknown repository>, 2.65-r1
sys-devel/automake:  1.4_p6-r1, 1.7.9-r1::<unknown repository>, 1.8.5-r3::<unknown repository>, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo http://gentoo.mirror.solnet.ch"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/unsupported"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 bash-completion berkdb bittorrent bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups curl cvs cxx dbus directfb dri dts dvd dvdr emacs embedded emboss encode exif fam fbcon firefox flac gdbm gdu gif git gnutls gpm iconv ipv6 jabber jack jpeg kde ladspa lame laptop lcms ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mplayer mudflap multilib musepack mysql ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 quicktime readline samba sdl seamonkey semantic-desktop session spell sql sqlite sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb v4l v4l2 vorbis webkit wifi x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel usb-audio" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" 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" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson2" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev vga vesa" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2011-04-30 15:07:25 UTC
The bug itself is in ghostscript-gpl
Comment 2 Timo Gurr (RETIRED) gentoo-dev 2011-05-10 18:58:16 UTC
Please test ghostscript-9.02 which includes a fix for landscape printing, I couldn't reproduce it with the following versions when printing from gwenview:

* net-print/cups-1.4.6-r1
* app-text/ghostscript-gpl-9.02
* net-print/hplip-3.11.3a
* KDE SC 4.6.3
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2011-05-13 09:33:18 UTC
Yeah landscape now works correctly.

Closing the bug as fixed.
Comment 4 sphakka 2011-07-02 17:14:23 UTC
(In reply to comment #3)
> Yeah landscape now works correctly.
> 

Nope, sorry, it doesn't for me, gs still crashes with 
- landscape + shrink-to-fit oversized images
- landscape + scale up undersized images

  Jul 02 18:50:59 [kernel] gs[13733]: segfault at 2db3f ip 0000000000504d3f sp 00007fff9a319540 error 4 in gs[400000+4bb000]
  Jul 02 18:51:59 [kernel] gs[13787] general protection ip:5b8c93 sp:7fffbfccb5d0 error:0 in gs[400000+4bb000]

and the print job hangs. My setup is now

  * net-print/cups-1.4.6-r2
  * app-text/ghostscript-gpl-9.02
  * KDE SC 4.6.3

What's your setup? Please, make sure you test landscape plus up/down scaling -- landscape alone works with undersized images (see the attached one).

> Closing the bug as fixed.

I reset the bug's status to test-request, but I think it should be reopened.

Cheers,

  ^s
Comment 5 sphakka 2011-07-02 17:15:36 UTC
Created attachment 278869 [details]
undersized test image

to trigger the bug, please, print in a KDE application in landscape + scale up.