Looks pretty good, but I have a couple of crashers.

pygtk_demo.py crashes after making a GtkTextTag.  This is because
self->inst_dict wasn't set to NULL in pygobjet_new.  If you agree this
is the fix, I'll commit it.  After making this change the crash went
away.

The other crash is on shutdown if an exception occured (like
AttributeError).  If the run didn't cause an exception, it shut down
cleanly.

(gdb) r
Starting program: /usr/bin/python pygtk-demo.py
[New Thread 1024 (LWP 28763)]
Gtk-Message: YOU ARE USING THE DEVEL BRANCH 1.3.x OF GTK+ WHICH IS CURRENTLY
                UNDER HEAVY DEVELOPMENT AND FREQUENTLY INTRODUCES INSTABILITIES.       
         if you don't know why you are getting this, you probably want to              
  use the stable branch which can be retrived from
                ftp://ftp.gtk.org/pub/gtk/v1.2/ or via CVS with
                cvs checkout -r glib-1-2 glib; cvs checkout -r gtk-1-2 gtk+
Traceback (most recent call last):
  File "pygtk-demo.py", line 65, in launch_cb
    mod.main()
  File "demos/dnd.py", line 163, in main
    gtk.GDK.ACTION_COPY | gtk.GDK.ACTION_MOVE)
AttributeError: 'module' object has no attribute 'GDK'

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 28763)]
0x080a011c in _PyObject_GC_UnTrack (op=0x830b5a4) at Modules/gcmodule.c:797
797           _PyObject_GC_UNTRACK(op);
(gdb) p *op
$1 = {ob_refcnt = 0, ob_type = 0x402e6340}
(gdb) bt
#0  0x080a011c in _PyObject_GC_UnTrack (op=0x830b5a4) at Modules/gcmodule.c:797
#1  0x4001c2a3 in _dl_pagesize () at eval.c:41
#2  0x080d1871 in insertdict (mp=0x827afac, key=0x827ae08, hash=-760715656, 
    value=0x80ee510) at Objects/dictobject.c:373
#3  0x080d1c4d in PyDict_SetItem (op=0x827afac, key=0x827ae08, value=0x80ee510)
    at Objects/dictobject.c:541
#4  0x080d4f17 in _PyModule_Clear (m=0x827922c) at Objects/moduleobject.c:124
#5  0x08090a0b in PyImport_Cleanup () at Python/import.c:311
#6  0x08098c3a in Py_Finalize () at Python/pythonrun.c:220
#7  0x0805355e in Py_Main (argc=2, argv=0xbffff6a4) at Modules/main.c:377
#8  0x08052d04 in main (argc=2, argv=0xbffff6a4) at Modules/python.c:10
#9  0x400875e7 in __libc_start_main (main=0x8052cf0 <main>, argc=2, 
    ubp_av=0xbffff6a4, init=0x80520c8 <_init>, fini=0x80d9d90 <_fini>, 
    rtld_fini=0x4000db24 <_dl_fini>, stack_end=0xbffff69c)
    at ../sysdeps/generic/libc-start.c:129

I'll look at that one later...

On Sat, Sep 29, 2001 at 12:12:58PM +0800, James Henstridge wrote:
> I have just put up a tarball of pygtk-1.99.2.  This release merges in the
> python22-branch changes, and should be suitable for use with the recent
> 1.3.9 release of glib/gtk+.  It is available from (once things sync up):
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to