applet.py crashed with IOError in module>()

Bug #153610 reported by Cristian Aravena Romero
502
This bug affects 6 people
Affects Status Importance Assigned to Milestone
system-config-printer (Ubuntu)
Fix Released
Low
Till Kamppeter
Nominated for Jaunty by Ryan

Bug Description

Binary package hint: system-config-printer

write in console -> $apport-cli anb report problem.

ProblemType: Crash
Architecture: i386
Date: Wed Oct 17 08:57:47 2007
DistroRelease: Ubuntu 7.10
ExecutablePath: /usr/share/system-config-printer/applet.py
InterpreterPath: /usr/bin/python2.5
Package: system-config-printer 0.7.75+svn1653-0ubuntu2
PackageArchitecture: all
ProcCmdline: python /usr/share/system-config-printer/applet.py
ProcCwd: /home/caravena
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=es_CL.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/share/system-config-printer/applet.py']
SourcePackage: system-config-printer
Title: applet.py crashed with IOError in <module>()
Traceback:
 Traceback (most recent call last):
   File "/usr/share/system-config-printer/applet.py", line 865, in <module>
     PROGRAM_NAME)
 IOError: [Errno 32] Tubería rota
Uname: Linux zeus 2.6.22-12-rt #1 SMP PREEMPT RT Sun Sep 23 20:27:57 GMT 2007 i686 GNU/Linux

Tags: apport-crash
Revision history for this message
Cristian Aravena Romero (caravena) wrote :
Revision history for this message
Iulian Udrea (iulian) wrote :

Thanks for your report. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Can you try to reproduce with latest version of system-config-printer?

Thank you,

Iulian

Changed in system-config-printer:
status: New → Incomplete
Revision history for this message
Alex Ruddick (alexrudd0) wrote :

I can confirm. Extra information, including the automatic info added by apport, in this bug which I have marked as duplicate:
https://bugs.launchpad.net/ubuntu/+source/system-config-printer/+bug/194516

Changed in system-config-printer:
status: Incomplete → Confirmed
Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

alexrudd, bug #194516 is marked as private automatically by apport which prevents other people from viewing it (Not allowed here: Sorry, you don't have permission to access this page). If it doesn't contain sensitive information please mark it as public or otherwise subscribe the Ubuntu Printing Team (ubuntu-printing).

Revision history for this message
Jesse Burt (avsa242) wrote :

Confirmed with 0.7.81+svn1976-0ubuntu2

Revision history for this message
Bigbiz (markozz) wrote :

today with hardy and I haven't gnome with all feature running

Revision history for this message
Robert Bernecky (bernecky) wrote :

2008-04-10

I've seen this failure a few times on new updates of Hardy for the past week(?) or
so.

If it helps at all, the local printer and other hosts are generally powered off when
I boot this system.

The failure seems to happen more or less spontaneously, shortly after I login
to gnome.

Revision history for this message
Robert Bernecky (bernecky) wrote :

Here's the data from /var/crash/_usr_share_system-config-printer_applet.py.1000.crash

Revision history for this message
lall (martin-lall) wrote :

Absolutely the same problem here.

Revision history for this message
Matt Zimmerman (mdz) wrote :

I'm seeing this on Intrepid as well, with the same backtrace

Changed in system-config-printer:
assignee: nobody → till-kamppeter
importance: Undecided → Medium
status: Confirmed → Triaged
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

What did you exactly do to reproduce this crash?

Changed in system-config-printer:
status: Triaged → Incomplete
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Tim, can you have a look into this?

Revision history for this message
Tim Waugh (twaugh) wrote :

Seems clear to me what the problem is: it's trying to write to stdout but there's no file descriptor for it. Seems like an environment bug to me.

Revision history for this message
Matt Zimmerman (mdz) wrote :

In my case, it was during login. At the time, I was having trouble with gnome-session crashing (bug 257250), so it's possible that its stdout disappeared while it was running. At any rate, it probably shouldn't crash if it can't write to stdout.

Revision history for this message
Robert Bernecky (bernecky) wrote :

I have not seen a recurrence of this fault (unlike the 972 other gnome-related faults I've hit
in Intrepid), but here are a few notes:

- the other two Ubuntu boxes are running Hardy, of some flavor.

- the printer is on a USB connect on one of the other boxes. It MAY have
  been connected locally to the failing box via parallel port for the above failure.

- Like the comment above, my printers are generally kept powered off until
  needed.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

When I look through the /usr/share/system-config-printer/applet.py file PROGRAM_NAME is only used for error messages going to stderr. Perhaps applet.py has no possibility to send anything to stderr.

Tim, can you change the error output that it goes to syslog (like in hal-cups-utils) or that the availability of stderr is checked and then decided whether error messages should go to stderr or syslog?

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Anyone has an idea on how we should fix this problem? Can it perhaps also be a problem of th XDG stuff or the GNOME desktop?

Revision history for this message
Tim Waugh (twaugh) wrote :

No, stderr output should be sent to .xsession-errors as with other applications in the session.

Revision history for this message
Matt Zimmerman (mdz) wrote : Re: [Bug 153610] Re: applet.py crashed with IOError in module>()

On Tue, Aug 12, 2008 at 10:10:32PM -0000, Tim Waugh wrote:
> No, stderr output should be sent to .xsession-errors as with other
> applications in the session.

In our default session in Ubuntu, stdout and stderr are a pipe to gdm, which
buffers the data over to .xsession-errors. In this case, gdm had likely
closed the pipe as the session was over, but this applet was still running
and tried to write to it.

Definitely a case of an error condition which could be handled more
gracefully, rather than a functional bug.

--
 - mdz

Changed in system-config-printer:
importance: Medium → Low
status: Incomplete → Triaged
Revision history for this message
mattismyname (mattismyname) wrote :

I'm sorry I don't have more info but I just experienced this in Intrepid after a reboot. I just logged in and the program crashed.

Revision history for this message
daniel (daniel-marth93) wrote :

> I'm sorry I don't have more info but I just experienced this in Intrepid after a reboot. I just logged in and the program
> crashed.

Same to me. Logged in and suddenly it crashed.

Revision history for this message
Rocko (rockorequin) wrote :

It affects Jaunty too (applet.py crashed during login).

Revision history for this message
Dave Stroud (bigdavesr) wrote :

happened on login in jaunty

Revision history for this message
Ryan (ubuntu-draziw) wrote :

Likewise on jaunty - entered a report and tagged it as dupe. (has logs etc)

Revision history for this message
Francesco Duraccio (odo.) wrote :

just a bit after the login in jaunty

Revision history for this message
pitwalker (pitwalker) wrote :

"a bit after the login" because the crash is not happened during login? happen during the last session?
When anyone using Jaunty not a bad idea to reset gnome settings. (delete the files under /home/username/.gconf /home/username/.gnome2 ...)

Revision history for this message
Martin Olsson (mnemo) wrote :

I just hit this bug with jaunty feb 23rd bits.

I had just installed the lm_sensors thing on ubuntu, and I had also installed the GNOME applet in sensors-applet package. After the reboot, then this bug happened. I've never had a printer attached or installed or anything on this machine.

Revision history for this message
Hellsgator (hellsgate) wrote :

crashed once after doing setup of git-compiz.

works like a charm after i rebooted.

Revision history for this message
Erick Brunzell (lbsolost) wrote :

Crashed while downloading (not yet installing) Enlightenment 17. No big deal! I questioned whether or not to even report this!

At this point I just consider it an Alpha thing!

Revision history for this message
epv (epvubuntu) wrote :

happened on login for me.

Revision history for this message
Ian Corne (icorne) wrote :

Happened for me in Jaunty

 2.6.28-8-generic #26-Ubuntu SMP Wed Feb 25 04:28:54 UTC 2009 i686 GNU/Linux

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package system-config-printer - 1.1.3+git20090218-0ubuntu5

---------------
system-config-printer (1.1.3+git20090218-0ubuntu5) jaunty; urgency=low

  * debian/patches/01_delay_autostart.patch: Redirect stdout of the system
    tray applet to /dev/null, as otherwise it comes to crashes (LP: #153610).

  * debian/patches/30_new-printer-unboundlocalerror.patch: Upstream fix
    for crash when adding new printer (LP: #333727).

 -- Till Kamppeter <email address hidden> Mon, 9 Mar 2009 10:10:47 +0100

Changed in system-config-printer:
status: Triaged → Fix Released
Revision history for this message
d1bro (d1bro) wrote :

still happened on me after login

Revision history for this message
Florent (florent.x) wrote :

still happens on Jaunty.

Package: system-config-printer-gnome 1.1.3+git20090218-0ubuntu7

Revision history for this message
nullack (nullack) wrote :

Moved status to new, as this is still occurring for me and other Jaunty testers.

Changed in system-config-printer:
status: Fix Released → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package system-config-printer - 1.1.3+git20090218-0ubuntu8

---------------
system-config-printer (1.1.3+git20090218-0ubuntu8) jaunty; urgency=low

  * debian/patches/01_delay_autostart.patch: Redirect also stderr of the system
    tray applet to /dev/null, as a second approach to fix LP: #153610.

  * debian/patches/40_ppds-py-improved-printer-identification.patch: Upstream
    patch to improve identification of printers, especially for the situation
    of incomplete device IDs reported for network printers. Also made the list
    of printer models more readable for PPDs of HPLIP 3.9.2 and of Turboprint.

  * debian/patches/43_do-not-show-firewall-dialog.patch: Do not pop up the
    dialog to remember to deactivate the firewall when activating printer
    sharing. The dialog is Red Hat/Fedora-specific (LP: #274179).

 -- Till Kamppeter <email address hidden> Tue, 17 Mar 2009 09:52:47 +0100

Changed in system-config-printer:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.