Applet fails to load if pid file present in /tmp

Bug #1253445 reported by Ken Sharp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
indicator-weather (Ubuntu)
New
Undecided
Unassigned

Bug Description

indicator-weather refuses to start claiming that "Another instance of this program is already running" when run in a terminal.

/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
Another instance of this program is already running

It isn't running.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: indicator-weather 11.11.28-0ubuntu1.3
ProcVersionSignature: Ubuntu 3.8.0-33.48~precise1-generic 3.8.13.11
Uname: Linux 3.8.0-33-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.0.1-0ubuntu17.6
Architecture: amd64
Date: Wed Nov 20 21:47:58 2013
InstallationMedia: Ubuntu 12.04.3 LTS "Precise Pangolin" - Release amd64 (20130820.1)
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_GB:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: indicator-weather
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Ken Sharp (kennybobs) wrote :
Revision history for this message
Ken Sharp (kennybobs) wrote :

Clearly the application is crashing, possibly during a suspend/resume, and it is leaving its "presence" somewhere. The application simply is not running.

$ pgrep weather
$ indicator-weather
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
Another instance of this program is already running

Revision history for this message
Ken Sharp (kennybobs) wrote :

Finally worked out the workaround:

$ rm /tmp/indicator-weather-1000.pid

So it is crashing and leaving behind its .pid file, and simply cannot recover.

Revision history for this message
Ken Sharp (kennybobs) wrote :

indicator-weath[2255]: segfault at 7f94c07e1918 ip 00007f94ccb90f08 sp 00007fff418252c0 error 7 in libglib-2.0.so.0.3200.4[7f94ccb74000+f2000]

Probably has something to do with it.

Revision history for this message
Ken Sharp (kennybobs) wrote :

Okay so this applet will fail after every reboot if you have a machine that doesn't clear /tmp on every boot. The application doesn't have the sense to remove this file itself it would appear.

Ken Sharp (kennybobs)
summary: - "Another instance of this program is already running"
+ Applet fails to load if file present in /tmp
Revision history for this message
Ken Sharp (kennybobs) wrote :
summary: - Applet fails to load if file present in /tmp
+ Applet fails to load if pid file present in /tmp
tags: added: i386
Ken Sharp (kennybobs)
tags: added: trusty
Revision history for this message
Ken Sharp (kennybobs) wrote :

Package doesn't even exist in Xenial.

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.