Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302617 - net-print/cups-1.4.2-r1 stopped to print because it can't allocate memory
Summary: net-print/cups-1.4.2-r1 stopped to print because it can't allocate memory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: cups-1.4
  Show dependency tree
 
Reported: 2010-01-28 12:08 UTC by Juergen Rose
Modified: 2011-06-06 21:34 UTC (History)
5 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 Juergen Rose 2010-01-28 12:08:25 UTC
Under http://localhost:631/jobs/ I see my jobs in the print queue but the printer does not show any reaction.
In /var/log/cups/error_log I find the following lines:
E [26/Jan/2010:17:54:17 +0100] Returning IPP client-error-not-possible for Cancel-Job (ipp://localhost/jobs/97) from localhost
E [27/Jan/2010:20:24:42 +0100] Unable to fork /usr/libexec/cups/filter/pstops - Cannot allocate memory.
E [27/Jan/2010:20:24:42 +0100] [Job 109] Unable to start filter "pstops" - Cannot allocate memory.
E [27/Jan/2010:20:24:42 +0100] [Job 109] Stopping job because the scheduler could not execute a filter.
E [28/Jan/2010:12:35:23 +0100] Unable to fork /usr/libexec/cups/backend/ipp - Cannot allocate memory.
E [28/Jan/2010:12:35:23 +0100] [Job 109] Stopping job because the sheduler could not execute the backend.
E [28/Jan/2010:12:35:23 +0100] Unable to fork /usr/libexec/cups/filter/pstops - Cannot allocate memory.
E [28/Jan/2010:12:35:23 +0100] [Job 110] Unable to start filter "pstops" - Cannot allocate memory.
E [28/Jan/2010:12:35:23 +0100] [Job 110] Stopping job because the scheduler could not execute a filter.
E [28/Jan/2010:12:43:12 +0100] Returning HTTP Forbidden for Cancel-Job (ipp://127.0.0.1/printers/hplj_p3005n) from localhost
E [28/Jan/2010:12:44:06 +0100] Returning IPP client-error-not-possible for Cancel-Job (ipp://localhost/jobs/110) from localhost

Reemerging cups and restarting cups did not help.  Any hints?


Reproducible: Always
Comment 1 Juergen Rose 2010-01-28 12:09:13 UTC
root@moose:/root(135)# emerge --info
Portage 2.1.7.16 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9650_@_3.00GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 28 Jan 2010 10:00:01 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/cmake:      2.8.0-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
FFLAGS="-march=nocona -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="de fr"
MAKEOPTS="-j1"
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="/var/lib/layman/science /var/lib/layman/x11 /var/lib/layman/n4g /var/lib/layman/java-overlay /var/lib/layman/zugaina /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit X Xaw3d a52 aac acl acpi administrator afs alsa amd64 ao aotuv apache2 asf aspell atlas audacious audiofile automount bash-completion beagle berkdb blas bluetooth boo boost branding bzip2 c++ cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli consolekit corba cracklib crypt cups curl cxx daap dbus device-mapper dga dia djvu doc dri ds2490 dts dv dvb dvd dvdr dvi dxr3 eds elf emacs emboss encode epiphany evo examples exif expat extensions extra extras fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran fpx fts3 fuse galago garmin gd gdal gdbm geolocation geos gif gimp ginac git glade glib glitz gml gmp gnokii gnome gnome-keyring gnuplot gnutls gphoto2 gpm graphics graphtft graphviz gs gsl gsm gstreamer gtk guile hal harness hddtemp hdf hdf5 hlapi http httpd hvm iconv icq icu id3 ide imagemagick imap innodb ipod ipv6 irda ithreads jabber jadetex java java5 java6 jbig john jpeg jpeg2k kde kerberos kexi kpathsea kvm ladspa lame lapack latex lcms ldap libffi libgda libnotify libsamplerate lirc lm_sensors lua lzo mad mail maildir mailwrapper math matroska mikmod mmx mmxext mng modules mono motif mozdevelop mozilla mp3 mp4 mpeg mpi mplayer mtp mudflap multilib musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networking networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs ntp numarray numeric nvidia obex objc ocaml octave odbc ogdi ogg ole openexr opengl openmp overview pae pam pcre pda pdf perl plotutils plugins png podcast policykit posix postgres postscript ppds pppd preview-latex proj projectx pstricks pulseaudio pymol python qhull qt3support qt4 quicktime readline reflection reiserfs rle romio rpc rrdcgi rrdtool samba sasl science sdl semantic-desktop server session slang slp smbclient smp sndfile snmp soup sox speex spell spl sql sqlite sse sse2 ssl startup-notification stlport subtitles subversion suexec svg swig sysfs szip t1lib tcl tcpd tex tex4ht texmacs theora threads thunar thunderbird tidy tiff tk tntc tools truetype udev unicode usb userlocales utempter v4l2 virtualbox vorbis wav webdav webdav-serf webkit wifi wmf wxwidgets x264 xattr xcb xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="intel8x0" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse                evdev               " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler ruby websvccommon xml" QEMU_SOFTMMU_TARGETS="i386 ppc ppc64 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18 jruby" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 2 Paul de Vrieze (RETIRED) gentoo-dev 2010-02-19 16:38:23 UTC
Another point of info, manually running the ipp backend with the postscript file piped on the input, and the output of ps -ef as parameters works perfectly.
Comment 3 Matt 2010-03-30 17:10:54 UTC
any news on this one ?

I just ran into this while installing a new ~x86 gentoo system :(
Comment 4 Marcio H Zuchini 2010-04-15 03:41:54 UTC
This bug seems to delay system shutdown too, because de cupsd can't be stopped properly.
Comment 5 Sergey 2010-06-09 06:42:20 UTC
Cups seems to start as normal. On shutdown it uses 100% cpu for a while and logs the same error messages. And it do not print on my hp lj 1300 since some update of my system.
cups-1.4.3
Comment 6 Attila Fazekas 2010-06-19 18:52:24 UTC
I had similar issue.

I found this in the error_log at debug2 level:
D [19/Jun/2010:19:28:09 +0200] [Job 100] Failed to set configuration 1 for 04f9:01ce
D [19/Jun/2010:19:28:09 +0200] [Job 100] Failed to claim interface 0 for 04f9:01ce: Operation not permitted


I realized the cups does not using the usblp module and /dev/usb/lp0 anymore.
You must unload it and add to the blacklist or exclude from your kernel build.
Cups using libusb.

You need to grant rw rights to the /dev/usb/your/printer for cups.
Recommended to set an udev-rule for this. But for quick testing you can set all /dev/usb mode to 666.

After the above changes recommended to delete and add again your printer.
Hopefully cups now is able to auto-detect it. 

Looks like the error messages in this case are very confusing.
I suggest to add some notice to the ebuild about, do not use usblp with this cups version.
Comment 7 Attila Fazekas 2010-06-20 06:12:20 UTC
(In reply to comment #6)

Sorry, forget the "bus"  part from the path.

You need to grant rw rights to the /dev/bus/usb/your/printer for cups.
Recommended to set an udev-rule for this. But for quick testing you can set all
/dev/bus/usb mode to 666.


Comment 8 Sergey 2010-06-21 09:57:11 UTC
The source of problem seems to be here #285166
Comment 9 Andreas K. Hüttel archtester gentoo-dev 2011-06-05 15:46:29 UTC
Do you still have this problem with current cups 1.4.6-r1 ?!
Comment 10 Sergey 2011-06-06 03:03:38 UTC
The last cups in my package.mask is 1.4.5. After that it seems to work fine for me. And now it prints error message about kernel config.
Comment 11 Marcio H Zuchini 2011-06-06 17:16:28 UTC
Hi, folks. I'm currently running CUPS-1.4.6.
As far as I could notice, the problem doesn't show up anymore.
Comment 12 Andreas K. Hüttel archtester gentoo-dev 2011-06-06 21:34:37 UTC
OK great, resolving this then as of comments #10 and #11. Please protest if you disagree... :)