python bindings & gmainloop

John (J5) Palmieri johnp at redhat.com
Fri Sep 16 10:44:36 PDT 2005


Oh, also, what version of d-bus are you using? Versions previous to 0.50
could crash when using threads because of a problem with the way Pyrex
handles the GIL.

On Thu, 2005-09-15 at 15:01 -0700, Sean Meiners wrote:

> Ok, so I finally figured out how to get gmainloop to play nice with other 
> threads, only to expose an even more interesting problem.  When my test 
> script is run (attached) it causes a 'Fatal Python error: PyThreadState_Get: 
> no current thread' as soon as the gmainloop is entered, but only if threading 
> has been initialized and you actually connect to a bus (system or session, it 
> makes no difference). Now here's the really interesting part: it all works 
> fine if I undo your EmptyMessage patch (diff attached).
> 

-- 
John (J5) Palmieri <johnp at redhat.com>



More information about the dbus mailing list