Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 197639
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Linux Gnome Desktop Team <gnome@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: oRo <oorochimaru@mac.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
gtkcupsutils_type_fix.diff Patch file for printing in gtk applications patch oRo 2007-11-05 16:01 0000 663 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 197639 depends on: Show dependency tree
Bug 197639 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-10-31 14:51 0000
I just wanted to print some files in Gimp 2.4.0_rc3 and nothing happened (no
message but no printing)
In Sylpheed 2.4.7, when I want to print a mail I've got this error message :
Too many failed attempts


Reproducible: Always

Steps to Reproduce:
1. In Sylpheed, opening a mail
2. Click menu File, select Print...
3. Selecting a real printer (not to a file), and click Print
4. "Too many failed attempts"

In Gimp, no message but not printing
Actual Results:  
Not printing


After setting Cups-1.2.12-r1 to debug2 level, I can see the con->data_remaining
is set to 0, which is not possible

It's probably a bug from gtk+ 
Here's my error_log from cups

d [31/Oct/2007:12:56:02 +0100] cupsdAcceptClient(lis=0x100623f0) 4 Clients = 0
D [31/Oct/2007:12:56:02 +0100] cupsdAcceptClient: 8 from localhost (Domain)
d [31/Oct/2007:12:56:02 +0100] cupsdAcceptClient: 8 connected to server on
localhost:631
d [31/Oct/2007:12:56:02 +0100] cupsdAcceptClient: Adding fd 8 to InputSet...
d [31/Oct/2007:12:56:03 +0100] cupsdReadClient: 8, used=0, file=-1 state=0
D [31/Oct/2007:12:56:03 +0100] cupsdReadClient: 8 POST
/printers/HP-LaserJet-1100A HTTP/1.1
d [31/Oct/2007:12:56:03 +0100] cupsdFindBest: uri =
"/printers/HP-LaserJet-1100A"...
d [31/Oct/2007:12:56:03 +0100] cupsdFindBest: Location CUPS_INTERNAL_BROWSE_ACL
Limit 0
d [31/Oct/2007:12:56:03 +0100] cupsdFindBest: Location /admin/conf Limit 7f
d [31/Oct/2007:12:56:03 +0100] cupsdFindBest: Location /admin Limit 7f
d [31/Oct/2007:12:56:03 +0100] cupsdFindBest: Location / Limit 7f
d [31/Oct/2007:12:56:03 +0100] cupsdFindBest: best = /
d [31/Oct/2007:12:56:03 +0100] cupsdAuthorize:
con->uri="/printers/HP-LaserJet-1100A", con->best=0x10062890(/)
d [31/Oct/2007:12:56:03 +0100] cupsdAuthorize: Authorization=""
D [31/Oct/2007:12:56:03 +0100] cupsdAuthorize: No authentication data provided.
d [31/Oct/2007:12:56:03 +0100] cupsdIsAuthorized:
con->uri="/printers/HP-LaserJet-1100A", con->best=0x10062890(/)
d [31/Oct/2007:12:56:03 +0100] cupsdIsAuthorized: level=AUTH_ANON,
type=AUTH_NONE, satisfy=AUTH_SATISFY_ALL, num_names=0
d [31/Oct/2007:12:56:03 +0100] cupsdIsAuthorized: auth=AUTH_ALLOW...
d [31/Oct/2007:12:56:03 +0100] POST /printers/HP-LaserJet-1100A
d [31/Oct/2007:12:56:03 +0100] CONTENT_TYPE = application/ipp
d [31/Oct/2007:12:56:03 +0100] cupsdReadClient: 8
con->data_encoding=HTTP_ENCODE_LENGTH, con->data_remaining=0, con->file=-1
E [31/Oct/2007:12:56:03 +0100] cupsdReadClient: 8 IPP Read Error!
D [31/Oct/2007:12:56:03 +0100] cupsdSendError: 8 code=400 (Bad Request)
D [31/Oct/2007:12:56:03 +0100] cupsdCloseClient: 8
d [31/Oct/2007:12:56:03 +0100] cupsdCloseClient: Removing fd 8 from InputSet
and OutputSet...
d [31/Oct/2007:12:56:04 +0100] select_timeout: 295 seconds to browse timeout a
printer

------- Comment #1 From oRo 2007-10-31 14:53:25 0000 -------
~ $ emerge --info
Portage 2.1.3.16 (default-linux/ppc/ppc32/2007.0/G4, gcc-4.1.2, glibc-2.6.1-r0,
2.6.22-gentoo-r5 ppc)
=================================================================
System uname: 2.6.22-gentoo-r5 ppc 7455, altivec supported
Timestamp of tree: Wed, 31 Oct 2007 01:47:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.2-r1
dev-lang/python:     2.4.4-r5, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23
ACCEPT_KEYWORDS="ppc ~ppc"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing
-pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf
/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing
-pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans
userfetch"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ "
LANG="fr_FR.UTF-8"
LINGUAS="fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/xeffects"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl alsa altivec berkdb bitmap-fonts bluetooth bogofilter
bzip2 cdr cli cracklib crypt cups dbus dri dvd esd ffmpeg flac fortran gdbm
gnome gpm gtk gtk2 iconv ipv6 isdnlog jpeg jpg live mad midi mp3 mudflap
ncurses nls nptl nptlonly opengl openmp pam pcre perl png ppc pppd python
readline reflection session spl ssl svg tcpd tiff truetype-fonts type1-fonts
unicode vorbis wavpack wma x264 xcb xinerama xorg xv xvid zlib" ALSA_CARDS="aoa
aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie
powermac usb-audio via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare
dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw
multi null plug rate route share shm softvol" ELIBC="glibc"
INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz
cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr"
USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #2 From oRo 2007-10-31 15:05:50 0000 -------
https://bugs.launchpad.net/ubuntu/+source/gtk+2.0/+bug/145278
http://bugzilla.gnome.org/show_bug.cgi?id=485662

Somebody seems to report the same bug

------- Comment #3 From Daniel Gryniewicz 2007-11-03 13:56:55 0000 -------
Does the patch in that bug fix your problem?  None of us have PPC64, so we
can't test (and on amd64, sizeof(long) == 8)

------- Comment #4 From oRo 2007-11-05 16:01:02 0000 -------
Created an attachment (id=135254) [details]
Patch file for printing in gtk applications

It solved the problem

------- Comment #5 From Daniel Gryniewicz 2007-11-05 18:24:32 0000 -------
Okay, fixed in 2.12.1-r1.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug