gtg crashed with RuntimeError in <module>()

Bug #537885 reported by John
554
This bug affects 110 people
Affects Status Importance Assigned to Milestone
GTG
Fix Released
High
Luca Falavigna
gtg (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: gtg

Just started it up on ubuntu 10.04 alpha 3 and got this i kept running but hey might as well file a report because it might help someone

ProblemType: Crash
Architecture: i386
Date: Fri Mar 12 00:31:22 2010
DistroRelease: Ubuntu 10.04
ExecutablePath: /usr/share/gtg/gtg
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20100224.1)
InterpreterPath: /usr/bin/python2.6
Package: gtg 0.2.3-1
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/gtg
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-16.25-generic
PythonArgs: ['/usr/bin/gtg']
SourcePackage: gtg
Title: gtg crashed with RuntimeError in <module>()
Traceback:
 Traceback (most recent call last):
   File "/usr/bin/gtg", line 51, in <module>
     import GTG.gtg
 RuntimeError: not holding the import lock
Uname: Linux 2.6.32-16-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Related branches

Revision history for this message
John (john-kitsu) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Daniel Holbach (dholbach) wrote :

Happens to me too.

visibility: private → public
Changed in gtg (Ubuntu):
status: New → Confirmed
Revision history for this message
Alberto Milone (albertomilone) wrote :

It could be this python bug:
http://bugs.python.org/issue7242

Changed in gtg (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Daniel Dolinov (imlad) wrote :

While it seems to happen to me as well, it does not seem to be actually crashing any more. I get the crash notification, but gtg continues to run.

Revision history for this message
ccc_Avalon (avalonccc) wrote :

as above . I get the crash notification, but gtg continues to run.

Revision history for this message
rdubz (satan-420) wrote :

Same here as well, just installed, and ran first time. Got the crash advisory, but program continues to run. Just restarted after apt-get upgrade as well.

Revision history for this message
XFACT (avinandan) wrote :

I am using Lucid Beta one and still this problem is happening :\

Revision history for this message
Paul Natsuo Kishimoto (khaeru) wrote :

The issue Alberto links was apparently solved in 2.6.5, but I'm running that and also experiencing the error.

$ apt-cache policy python
python:
  Installed: 2.6.5-0ubuntu1
  Candidate: 2.6.5-0ubuntu1
  Version table:
 *** 2.6.5-0ubuntu1 0
        500 http://mirror.csclub.uwaterloo.ca/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status

I also found http://bugs.python.org/issue6380 and pushed a branch that seems to fix the issue. Testing appreciated.

Changed in gtg:
importance: Undecided → High
milestone: none → 0.3
status: New → Confirmed
Revision history for this message
Morgan Collett (morgan) wrote :

The problem is happening in GTG/tools/openurl.py where it forks a process to check if xdg-open or exo-open are available on the system.

If I make the following change, the crash is prevented (but we lose the ability to detect these programs - so only works on a gnome desktop):

--- openurl.py.old 2010-04-13 11:18:30.000000000 +0200
+++ openurl.py 2010-04-13 11:18:59.000000000 +0200
@@ -56,8 +56,8 @@
 def _spawn_quiet(*args):
     return _spawn_executable(True, False, *args)

-_has_xdg = _test_executable('xdg-open', '--help')
-_has_exo = _test_executable('exo-open', '--help')
+_has_xdg = False
+_has_exo = False

 def openurl(url):
     if _has_xdg: # freedesktop is the best choice :p

I don't know how to fix it (don't have time to experiment further) but this seems to be where the problem lies.

Revision history for this message
Jerry mcdermand (jmcdermand) wrote :

using lucid beta 2, get the crash report, but keeps working as reported above

Revision history for this message
innervision (dguaraglia) wrote :

Can confirm GTG goes on working even after the crash report. I'm on Lucid beta 2.

Revision history for this message
Flemming Christensen (laoshi) wrote :

lucid beta2 - gtg works ok but crash report recurrent

Revision history for this message
Luca Falavigna (dktrkranz) wrote :
Changed in gtg:
assignee: nobody → Luca Falavigna (dktrkranz)
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gtg - 0.2.4-1ubuntu1

---------------
gtg (0.2.4-1ubuntu1) lucid; urgency=low

  * debian/patches/test_executable.patch:
    - Do not launch program to see if it is available, check if it is
      installed and has executable bit enable instead (LP: #537885).
 -- Luca Falavigna <email address hidden> Thu, 15 Apr 2010 00:11:07 +0200

Changed in gtg (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
David Murphy (schwuk) wrote :

Encountered on an up-to-date installation of Lucid with package version 0.2.4-1.

tags: added: bugpattern-needed
Revision history for this message
Yura Tolstik (yltsrc) wrote :
Changed in gtg:
milestone: 0.3 → 0.2.9
Izidor Matušov (izidor)
Changed in gtg:
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.