ACPIBatteryScreenlet.py crashed with OSError in __create_tempfile()

Bug #197712 reported by Aymeric
336
Affects Status Importance Assigned to Milestone
Screenlets
Fix Released
Medium
Unassigned
screenlets (Ubuntu)
Fix Released
Medium
Kjell Braden

Bug Description

Binary package hint: screenlets

I have restart all screenlets. I am on Ubuntu Hardy.

ProblemType: Crash
Architecture: i386
Date: Sun Mar 2 18:31:58 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/share/screenlets/ACPIBattery/ACPIBatteryScreenlet.py
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: ath_hal
Package: screenlets 0.0.12-0ubuntu1
PackageArchitecture: all
ProcCmdline: python /usr/share/screenlets/ACPIBattery/ACPIBatteryScreenlet.py > /dev/null
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/share/screenlets/ACPIBattery/ACPIBatteryScreenlet.py', '>', '/dev/null']
SourcePackage: screenlets
Title: ACPIBatteryScreenlet.py crashed with OSError in __create_tempfile()
Uname: Linux 2.6.24-10-generic i686
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin netdev plugdev powerdev sambashare scanner video

Tags: apport-crash
Revision history for this message
Aymeric (mulx) wrote :
Revision history for this message
Julien Lavergne (gilir) wrote :

Thanks for you bug report.
It seems that it's the same problem than the #188427 bug. Feel free to reopen if not.

Revision history for this message
Julien Lavergne (gilir) wrote :

After a better look at it, it's probably not the same bug.
According to this (http://forum.compiz-fusion.org/showthread.php?t=6962), this patch should fix the problem, but you need to delete the screenlets with its preferences and recreate it.
If you can test it, please tell me if it work.

Changed in screenlets:
assignee: nobody → gilir
status: New → In Progress
Revision history for this message
Aymeric (mulx) wrote :

Hi,
I have try to restart all screenlets before patching screenlets-manager.py then apport report a crash (I have close).
I have applied the patch to screenlets-manager.py (found in /usr/share/screenlets-manager/) rename $HOME/.screenlets to $HOME/(dot)screenlets and reseting all screenlets config (and also restarted screenlets).
I have try to restart all screenlets and it look like that bug is corrected :)

I have reported a bug ID:197710 probaly a duplicate of this one. The other screenlets crash with the same restart exactly the same time.

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

This bug was fixed in the package screenlets - 0.0.12-0ubuntu2

---------------
screenlets (0.0.12-0ubuntu2) hardy; urgency=low

  * debian/patches/10-problem-on-create-tmpfile.patch (LP: #197712)
   - Fix crash when creating tempory file.
  * debian/patches/11-mono-channel-fix.patch, thanks Kjell Braden (LP: #192334)
   - Fix crash when the selected mixer control is a mono control.
   - The patch also provides a more reasonable support for multiple channels.
  * debian/rules
   - Remove the rmdir for /usr/lib, not necessary.

 -- Julien Lavergne <email address hidden> Mon, 10 Mar 2008 23:00:37 +0100

Changed in screenlets:
status: In Progress → Fix Released
Revision history for this message
Julien Lavergne (gilir) wrote :

Also fixed in 0.0.14

Changed in screenlets:
status: New → Fix Released
Revision history for this message
sojourner (itsmealso2) wrote :

I am up to date as of 3/28/08 AM easten US time , this crash occured on the first reboot after update. MY sys is 64bit.

Revision history for this message
Kjell Braden (afflux) wrote :

sojourner, what version of screenlets are you using? You can check this by entering "apt-cache policy screenlets".

Revision history for this message
Kjell Braden (afflux) wrote :

This bug still exists when run with -u (0.0.12-0ubuntu2), as seen in bug 206930 and bug 208989 (and maybe others, I'm searching now).

Changed in screenlets:
status: Fix Released → New
status: Fix Released → Confirmed
assignee: gilir → nobody
Revision history for this message
Rolando Blanco (rolando) wrote :

rolando@defiant:~$ apt-cache policy screenlets
screenlets:
  Instalados: 0.0.12-0ubuntu2
  Candidato: 0.0.12-0ubuntu2
  Tabla de versión:
 *** 0.0.12-0ubuntu2 0
        500 http://ve.archive.ubuntu.com hardy/universe Packages
        100 /var/lib/dpkg/status
rolando@defiant:~$

Revision history for this message
Julien Lavergne (gilir) wrote :

Could you try to delete the screenlets and recreate it to see if the problem is still here ?
Thanks.

Revision history for this message
Mahyar (www-mahyar) wrote : Re: [Bug 197712] Re: ACPIBatteryScreenlet.py crashed with OSError in __create_tempfile()
  • unnamed Edit (892 bytes, text/html; charset=ISO-8859-1)

I've re-loaded Hardy and the screenlets, and they are better. I think it
might have to do with the widget plugin for Compiz, which needs to be
activated.

On 01/04/2008, Julien Lavergne <email address hidden> wrote:
>
> Could you try to delete the screenlets and recreate it to see if the
> problem is still here ?
> Thanks.
>
>
> --
> ACPIBatteryScreenlet.py crashed with OSError in __create_tempfile()
> https://bugs.launchpad.net/bugs/197712
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>

Kjell Braden (afflux)
Changed in screenlets:
importance: Undecided → Medium
Revision history for this message
Kjell Braden (afflux) wrote :

bug 212175 looks similar, but I'm not sure. Opinions from the devs?

Revision history for this message
Helder Fraga (whise) wrote :

fixed since 0.0.14

Changed in screenlets:
status: New → Fix Released
Revision history for this message
Helder Fraga (whise) wrote :

its not a duplicate of bug 212175

Revision history for this message
Kjell Braden (afflux) wrote :

Whise, looking at the code, I don't see any hint on how this got fixed. Could you please provide a patch or tell me in which revision this was fixed?

Revision history for this message
Helder Fraga (whise) wrote :

im sorry , i fixed this localy and somehow i didnt commit , and it got lost ... dont i feel dumb..

Changed in screenlets:
importance: Undecided → Medium
status: Fix Released → Triaged
Revision history for this message
Helder Fraga (whise) wrote :

fixed in revision 259

Changed in screenlets:
status: Triaged → Fix Committed
Kjell Braden (afflux)
Changed in screenlets:
assignee: nobody → afflux
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package screenlets - 0.0.12-0ubuntu4

---------------
screenlets (0.0.12-0ubuntu4) hardy; urgency=low

  * This is a bugfix upload. (LP: #213385)
  * debian/patches/10-problem-on-create-tmpfile.patch: dropped, didn't fix the
    issue
  * new patches from upstream:
    - debian/patches/15_better-daemon-running-check.patch: fix daemon starting
      multiple times (LP: #205526)
    - debian/patches/16_fix-option-theme-dialog-crashing.patch: fix a crash
      occuring in some theme dialogues (LP: #195036)
    - debian/patches/17_fix-crash-on-invalid-archive.patch: fix a crash
      occuring when trying to open broken screenlet packages (LP: #205526)
  * new patches from ubuntu:
    - debian/patches/14_no-unnecessary-updates-when-unmapped.patch: don't
      update the screenlets when they are not mapped, thanks criser
      (LP: #211525)
    - debian/patches/18_fix-crashing-on-invalid-sensor-type.patch: fix a crash
      occuring in the sensor applet when a bad device was selected for
      monitoring (LP: #198675)
    - debian/patches/19_fix-creating-tempfile.patch: improve the error
      handling when initializing the tempfile (LP: #197712, #212175)

 -- Kjell Braden <email address hidden> Mon, 07 Apr 2008 17:05:29 +0200

Changed in screenlets:
status: In Progress → Fix Released
Helder Fraga (whise)
Changed in screenlets:
status: Fix Committed → 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.