Use of threads causes hangs in Ubuntu Lucid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
BloGTK |
New
|
Undecided
|
Unassigned |
Bug Description
In the current version in Bazaar (I checked out the recent updates this evening), any function that uses threads, marked by @threaded and including calls to gtk.gdk.
I couldn't figure out how to fix the problem, but in my investigative work to find out where it's coming from in doIntrospection (one of several places this problem manifests), I found the following:
* The hang can be prevented by commenting out the "@threaded" directive, along with the threads_enter() and threads_leave() calls.
* The hang can also be prevented if a "threads_leave()" followed by "return False" is put in anywhere before winProgress.
* If winProgress.
My workaround for the time being has been to disable threading in all except the main method, but this may cause its own problems.