← Back to team overview

epoptes team mailing list archive

[Bug 943598] Re: Twisted/GTK programs don't close properly on Ubuntu 12.04

 

*** This bug is a duplicate of bug 935756 ***
    https://bugs.launchpad.net/bugs/935756

** Description changed:

  I've been experiencing this with our www.epoptes.org application, but I've been able to reproduce the problem with http://twistedmatrix.com/documents/current/core/examples/pbgtk2.py too.
  I.e. when I run one of those apps from a console, and then close the application window, the window does close, but my console prompt doesn't return. Sometimes the app closes after 20-30 seconds, sometimes it just sits there forever waiting. An strace tells me it's waiting at some poll() call.
  
  The same programs run fine in previous versions of Ubuntu.
  Also, if I put a `reactor.crash()` just before `reactor.stop()`, then those programs terminate immediately.
+ 
+ == SRU (I know this bug is a duplicate, but we need to tie this SRU to epoptes) ==
+ [rational]
+ A workaround for this bug was added to epoptes:
+ reactor.crash()
+ 
+ Now that the underlying bug was properly fixed, this should be removed
+ as it was just an ugly workaround that might lead to other problems.
+ 
+ [test case]
+ 1) Run epoptes from the console
+ 2) Close it
+ 
+ Check that the console returns immediately without errror.
+ 
+ [regression potential]
+ Just removing an hack, don't expect any regression.
+ Worst case scenario the twisted bug reappears and closing epoptes will hang again, leaving an extra process running on the machine. As ubuntuone was also affected by that bug, it's very unlikely it could reappear in the stable release without us noticing.

-- 
You received this bug notification because you are a member of Epoptes
Developers, which is subscribed to epoptes in Ubuntu.
https://bugs.launchpad.net/bugs/943598

Title:
  Twisted/GTK programs don't close properly on Ubuntu 12.04

Status in Twisted:
  New
Status in “epoptes” package in Ubuntu:
  New
Status in “twisted” package in Ubuntu:
  New
Status in “epoptes” source package in Precise:
  In Progress

Bug description:
  I've been experiencing this with our www.epoptes.org application, but I've been able to reproduce the problem with http://twistedmatrix.com/documents/current/core/examples/pbgtk2.py too.
  I.e. when I run one of those apps from a console, and then close the application window, the window does close, but my console prompt doesn't return. Sometimes the app closes after 20-30 seconds, sometimes it just sits there forever waiting. An strace tells me it's waiting at some poll() call.

  The same programs run fine in previous versions of Ubuntu.
  Also, if I put a `reactor.crash()` just before `reactor.stop()`, then those programs terminate immediately.

  == SRU (I know this bug is a duplicate, but we need to tie this SRU to epoptes) ==
  [rational]
  A workaround for this bug was added to epoptes:
  reactor.crash()

  Now that the underlying bug was properly fixed, this should be removed
  as it was just an ugly workaround that might lead to other problems.

  [test case]
  1) Run epoptes from the console
  2) Close it

  Check that the console returns immediately without errror.

  [regression potential]
  Just removing an hack, don't expect any regression.
  Worst case scenario the twisted bug reappears and closing epoptes will hang again, leaving an extra process running on the machine. As ubuntuone was also affected by that bug, it's very unlikely it could reappear in the stable release without us noticing.

To manage notifications about this bug go to:
https://bugs.launchpad.net/twisted/+bug/943598/+subscriptions