Created attachment 722920 [details] cups error_log 2.3.3_p2-r2 Title says it: With cups-2.3.3-p2-r2 I can't print with my Samsung ML-2010 local USB printer, with cups-2.3.3-r4 I can. Steps to reproduce: emerge =net-print/cups-2.3.3-r4 /etc/init.d/cupsd start lp <somepdf.pdf> # printer LED blinks, page is printed, all fine /etc/init.d/cupsd stop emerge =net-print/cups-2.3.3_p2-r2 /etc/init.d/cupsd start lp <somepdf.pdf> # printer LED blinks, but no page comes out lp <somepdf.pdf> # printer produces some error sheet lp <somepdf.pdf> # nothing happens anymore /etc/init.d/cupsd stop Deleting the printer and adding it back doesn't help. Just going back to 2.3.3-r4 makes printing work again. Reproducible: Always In the error log of 2.3.3_p2-r2 (attached), I note some "Got USB transaction timeout during read" lines which I don't see in 2.3.3-r4. The printers error sheet, which gets triggered on 2nd printing attempt, says INTERNAL ERROR - FALSE POSITION : 0x1e167 (123239) SYSTEM: h6fwsim_mono/xl_image LINE: 132 VERSION: SPL 5.05 01-04-2006 emerge --info net-print/cups Portage 3.0.20 (python 3.9.5-final-0, default/linux/amd64/17.1, gcc-10.3.0, glibc-2.33-r1, 5.4.109-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.4.109-gentoo-x86_64-Intel-R-_Core-TM-_i5-8265U_CPU_@_1.60GHz-with-glibc2.33 KiB Mem: 16356824 total, 15432360 free KiB Swap: 16383996 total, 16383996 free Timestamp of repository gentoo: Thu, 08 Jul 2021 12:00:01 +0000 Head commit of repository gentoo: 4c495d491adc5356de170885f1e0a0428f23d59c sh bash 5.1_p8 ld GNU ld (Gentoo 2.35.2 p1) 2.35.2 app-shells/bash: 5.1_p8::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.32.1::gentoo dev-lang/python: 2.7.18_p10::gentoo, 3.9.5_p2::gentoo dev-lang/rust: 1.52.1::gentoo dev-util/cmake: 3.18.5::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1-r1::gentoo sys-apps/sandbox: 2.24::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.16.3-r1::gentoo sys-devel/binutils: 2.35.2::gentoo sys-devel/gcc: 8.4.0-r2::gentoo, 9.3.0-r2::gentoo, 10.3.0::gentoo sys-devel/gcc-config: 2.4::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r1::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: crossdev location: /usr/local/portage-crossdev masters: gentoo priority: 10 palemoon location: /var/lib/layman/palemoon masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-march=native -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=native -O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j6" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" RUSTFLAGS="-C target-cpu=native -C llvm-args=-x86-branches-within-32B-boundaries -C opt-level=3" USE="X acl alsa amd64 bzip2 cli crypt dri elogind emacs exif fortran fuse gdbm gif iconv ipv6 jpeg jpeg2k libglvnd libtirpc mp3 multilib ncurses nls nptl opengl openmp pam pcre png readline seccomp split-usr ssl tcpd threads tiff unicode vaapi xattr xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="intel i965 iris" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= net-print/cups-2.3.3-r4::gentoo was built with the following: USE="X acl pam ssl threads usb -dbus -debug -kerberos -lprng-compat (-selinux) -static-libs -systemd -xinetd -zeroconf" ABI_X86="(64) -32 (-x32)" Possibly related packages: [I] net-print/cups-filters Available versions: 1.28.3^t 1.28.7^t ~1.28.8^t ~1.28.9^t {dbus +foomatic jpeg ldap pclm pdf perl png +postscript test tiff zeroconf} Installed versions: 1.28.7^t(12:55:23 AM 06/02/2021)(foomatic jpeg png postscript tiff -dbus -ldap -pclm -pdf -perl -test -zeroconf) Homepage: https://wiki.linuxfoundation.org/openprinting/cups-filters Description: Cups filters [I] net-print/splix Available versions: 2.0.0_p20130826-r1 {+jbig} Installed versions: 2.0.0_p20130826-r1(08:32:01 AM 12/03/2020)(jbig) Homepage: http://splix.sourceforge.net/ Description: A set of CUPS printer drivers for SPL (Samsung Printer Language) printers [I] dev-libs/libusb Available versions: (1) 1.0.24-r1^t {debug doc examples split-usr static-libs test udev ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32"} Installed versions: 1.0.24-r1(1)^t(11:37:14 AM 04/30/2021)(split-usr -debug -doc -examples -static-libs -test -udev ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="64 -32 -x32") Homepage: https://libusb.info/ https://github.com/libusb/libusb Description: Userspace access to USB devices Thanks a lot, Ralph
(In reply to Gentlenoob from comment #0) > Created attachment 722920 [details] > cups error_log 2.3.3_p2-r2 > > Title says it: With cups-2.3.3-p2-r2 I can't print with my Samsung ML-2010 > local USB printer, with cups-2.3.3-r4 I can. > > Steps to reproduce: > > emerge =net-print/cups-2.3.3-r4 > /etc/init.d/cupsd start > lp <somepdf.pdf> # printer LED blinks, page is printed, all fine > /etc/init.d/cupsd stop > > emerge =net-print/cups-2.3.3_p2-r2 > /etc/init.d/cupsd start > lp <somepdf.pdf> # printer LED blinks, but no page comes out > lp <somepdf.pdf> # printer produces some error sheet > lp <somepdf.pdf> # nothing happens anymore > /etc/init.d/cupsd stop > > Deleting the printer and adding it back doesn't help. Just going back to > 2.3.3-r4 makes printing work again. Same trouble here with "driverless" setup on Brother_HL-L2340D_series. Furthermore, double sided printing no longer possible at all.
(In reply to Gentlenoob from comment #0) > Title says it: With cups-2.3.3-p2-r2 I can't print with my Samsung ML-2010 > local USB printer, with cups-2.3.3-r4 I can. > > Steps to reproduce: > > emerge =net-print/cups-2.3.3-r4 > /etc/init.d/cupsd start > lp <somepdf.pdf> # printer LED blinks, page is printed, all fine > /etc/init.d/cupsd stop > > emerge =net-print/cups-2.3.3_p2-r2 > /etc/init.d/cupsd start > lp <somepdf.pdf> # printer LED blinks, but no page comes out > lp <somepdf.pdf> # printer produces some error sheet > lp <somepdf.pdf> # nothing happens anymore > /etc/init.d/cupsd stop > > Deleting the printer and adding it back doesn't help. Just going back to > 2.3.3-r4 makes printing work again. > > Reproducible: Always The same here on Samsung ML-2010R (net-print/splix-2.0.0_p20130826-r1[jbig]). cups compiled with the usb use flag enabled, and usblp kernel module blacklisted via /etc/modprobe.d/cups.conf: blacklist usblp Works fine with net-print/cups-2.3.3-r4. With cups-2.3.3_p2-r2 the Samsung ML-2010R, when it finally prints, prints the following: INTERNAL ERROR - FALSE POSITION : 0X2e3b5 (189365) SYSTEM : h6fwsim_mono/x1_image LINE : 132 VERSION : SPL 5.05 01-04-2006 net-print/cups-2.3.3_p2-r2::gentoo was built with the following: USE="X acl dbus kerberos ssl threads usb -debug -lprng-compat -pam (-selinux) -static-libs -systemd -xinetd -zeroconf" ABI_X86="32 (64) (-x32)"
The problem is confirmed upstream: https://github.com/OpenPrinting/cups/issues/171 An this is the merged upstream PR to fix it: https://github.com/OpenPrinting/cups/pull/160 Thanks.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f6d1abb628f060426d6871edd65aa0ec70cee12 commit 8f6d1abb628f060426d6871edd65aa0ec70cee12 Author: Pacho Ramos <pacho@gentoo.org> AuthorDate: 2021-10-28 09:49:01 +0000 Commit: Pacho Ramos <pacho@gentoo.org> CommitDate: 2021-10-28 09:49:13 +0000 net-print/cups: Multiple bug fixes - Fix missing dep on avahi[dbus] (#695438) - Ensure server path is always correct (#615438) - Recommend sys-auth/nss-mdns when needed (#634048) - Fix /run paths (#685308) - Respect empty LINGUAS (#771162) - Fix empty dirs handling (#798855) - Fix printing on some Samsung devices (#801316) - Apply other upstream accepted patches widely tested on Fedora and Debian. Closes: https://bugs.gentoo.org/695438 Thanks-to: Mart Raudsepp Closes: https://bugs.gentoo.org/615438 Thanks-to: Stefan Schmid Closes: https://bugs.gentoo.org/634048 Closes: https://bugs.gentoo.org/685308 Thanks-to: Bertrand Jacquin Closes: https://bugs.gentoo.org/771162 Thanks-to: i.Dark_Templar Closes: https://bugs.gentoo.org/798855 Thanks-to: Marco Scardovi (scardracs) Closes: https://bugs.gentoo.org/801316 Thanks-to: Gentlenoob Thanks-to: mehw Thanks-to: Volkmar W. Pogatzki Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Pacho Ramos <pacho@gentoo.org> net-print/cups/cups-2.3.3_p2-r3.ebuild | 326 +++++++++++++++++++++ .../files/cups-2.3.3-enforcing-read-limits.patch | 29 ++ .../cups/files/cups-2.3.3-ipp-retry-validate.patch | 43 +++ net-print/cups/files/cups-2.3.3-manpage.patch | 23 ++ net-print/cups/files/cups-2.3.3-timeout.patch | 26 ++ net-print/cups/files/cupsd.init.d-r4 | 22 ++ 6 files changed, 469 insertions(+)