Leeuw van der, Tim wrote:
Hi,

I have a reproducible recipe for crashing the python interpreter with PyGtk. I 
don't know of the error is in PyGtk, or in Gtk (although I tend to suspect the 
former).

The recipe is:

st_list = dir(gtk) for st in st_list: print 'Found string:', st print 'Object:', getattr(gtk, st) # This will crash somewhere in GTK dll

The object at which it crashes is BUTTON_IGNORED

The platform is:
- WinXP (sp1),
- Python 2.4 / Python 2.3.4 / Python 2.3.5rc1
- PyGtk 2.4.1
- Gtk 2.6.1

I didn't yet try testing with Gtk 2.4.14! Testing with that Gtk version will 
cost me even more time and I'm very glad that I now found a simple reproduction 
recipe!
Hopefully will manage to make time to install gtk 2.4.14 too, but I'd first 
like to get reactions from the list here.

I can send a full drwatson log, but again, I'd first like to get a reaction 
from the list.
The most relevant snippet from the crashlog seems to be this:

msvcrt!strlen+0x20
libglib-2.0-0!g_win32_error_message+0x1cd8
libglib-2.0-0!g_vasprintf+0x1b
libglib-2.0-0!g_strdup_printf+0x1e
gobject+0x6237
python24!PyObject_Str+0x37


However, drwatson doesn't find any symbol-information for many things so perhaps someone can help me with that?


Although the crashlog looks slightly different when I trigger this error from pydev, it always involves the same top-5 lines (always the actual crash is in strlen, which is called by g_win32_error_message, from g_vasprintf, etc)


Any help or pointer what to try next is appreciated.

Cheers,

--Tim

PS: I'm resending this now that I'm subscribed; my first post hasn't appeared 
yet in the mailing-list archives but when I sent that message I wasn't yet 
subscribed (and the subscription-page gave me 500 error). If this mail reaches 
your inbox twice, my apologies.

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


did you connect a callback on the clicked event of both buttons ? can you send me your glade file ?

Yann

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to