Deadlock/Freeze



Hi all,
I'm working on an application used for displaying news (taken
from internet) and spot-movies (using gstreamer).

In the short term usage, everything is ok, but when I leave the
application running for several hours, it ends freezing.

How is it possible to create deadlock? In theory everything should
be serialized in the gtk main loop, so there would not be any
concurrency at all.

The only thing that leaves me in doubts, is the interaction with gstreamer,
even thought I called gobject.threads_init() before the gtk.main_loop()
callback.

From the FAQ entry [1] it seems I need to enter/leave threads inside each
timeout callback. Could the procedure described be a valid solution
for my problem?

Thanks in advance.

[1] http://faq.pygtk.org/index.py?req=edit&file=faq20.015.htp

-- 
Matteo Landi
http://www.matteolandi.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]