** No longer affects: weather-indicator/3.0 -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to indicator-weather in Ubuntu. https://bugs.launchpad.net/bugs/926433
Title: indicator-weather refuses to start, saying "Another instance of this program is already running" when that is not true. Status in Indicator-Weather: Fix Released Status in Weather Indicator 2.0 series: Fix Released Status in “indicator-weather” package in Ubuntu: Fix Released Status in “indicator-weather” source package in Precise: Fix Released Status in Baltix GNU/Linux: New Bug description: --- SRU Justification --- [IMPACT] When indicator-weather crashes (which is unfortunately fairly often for some users), it sometimes leaves behind a pid file in /tmp. The current pid file checking can sometimes match pids that match part of some other process number. This can cause users to not be able to restart the program after a crash. This fix requires that the pid number matches exactly. [TESTCASE] Run indicator-weather and wait for a crash. Restart indicator-weather. With the version in precise, it can sometimes not be restarted with this error: /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 With the version in precise-proposed, it will always restart. For extra points, try to start a second instance of indicator-weather. With both versions, this should fail. [Regression Potential] Very little. It is a one line change. If there was an issue, it would only display in the same circumstances as this bug, trying to restart after a crash. --- Description: Ubuntu 11.10 Release: 11.10 indicator-weather: Installed: 11.05.31-0ubuntu2.1 Candidate: 11.05.31-0ubuntu2.1 Version table: *** 11.05.31-0ubuntu2.1 0 500 http://gb.archive.ubuntu.com/ubuntu/ oneiric-updates/universe amd64 Packages 100 /var/lib/dpkg/status 11.05.31-0ubuntu2 0 500 http://gb.archive.ubuntu.com/ubuntu/ oneiric/universe amd64 Packages Expect the indicator to start when run, but it does not but gives the following error message: /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 At some stage I assume the indicator crashed and left a file in /tmp called indicator-weather-500.pid. The log file ~/.cache/indicator- weather.log shows extra messages, just that another instances is running. I checked the process list and no instance was running. Once the .pid file had been deleted, the indicator started and ran as normal. To manage notifications about this bug go to: https://bugs.launchpad.net/weather-indicator/+bug/926433/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp