[Python-Dev] Pygtk app and hangs. (original) (raw)
jd jdsw2002 at yahoo.com
Wed Sep 19 10:40:30 CEST 2007
- Previous message: [Python-Dev] SSL certs
- Next message: [Python-Dev] Pygtk app and hangs.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi I have a non-trivial pygtk running in to hangs/freezes.
Over all here is how program looks like.
gobject.threads_init()
gtk.main within threads_enter/threads_leave
All UI operaions in main threads. Some call backs create UIWorker threads, UI worker thread does some work.. and then do gobkect.idle_add to call a function that updates the UI.
I have a timer uses gobject.timeout_add.
the idle callbacks and timeout call backs are in threads_enter/threads_leave.
I use some lib, that creates its own threads and does socket operations.
Q. Anything I missed, or any suggestions. Is there a comprehensive list/scheme on how to write a MT pygtk app?
Q. I tried to setup debug version 2.5 but it fails with
import gtk File "/usr/lib/python2.5/site-packages/gtk-2.0/gtk/init.py", line 38, in import gobject as _gobject File "/usr/lib/python2.5/site-packages/gtk-2.0/gobject/init.py", line 30, in from _gobject import * ImportError: /usr/lib/python2.5/site-packages/gtk-2.0/gobject/_gobject.so: undefined symbol: PyUnicodeUCS4_FromObject
What special switch do I need to give to the configure while building python ?
Q. I have attached thread dumps. Any input on what might be going ?
Q. Modal dialogboxes event processing happens in the main thread ?
Sorry for sending it to both the list. But the app is pygtk while stack seems fairly clean (other than main thread).
Thanks a ton, in advance. /Jd
Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/ -------------- next part -------------- A non-text attachment was scrubbed... Name: gdb_hang_problem Type: application/octet-stream Size: 18347 bytes Desc: 130815649-gdb_hang_problem Url : http://mail.python.org/pipermail/python-dev/attachments/20070919/11299660/attachment-0001.obj
- Previous message: [Python-Dev] SSL certs
- Next message: [Python-Dev] Pygtk app and hangs.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]