[wxPython] "UNREF Invalid Object" and "GC object already in linked list"

Well I've been beating my head against this one for a while. As our
software has gotten more complex and dynamic, two fatal python errors have
become more and more prevalent. The first being "GC object already in
list". Given this, I built a debug version of Python, and thus the debug
version of wxPython. Now I am getting the prior error, in addition to
"UNREF Invalid Object". Researching the both of these errors suggests that
the error would come out of an extension to Python, and not necessarily
Python itself. The debug investigation goes on, but I'm not quite sure what
I'm looking for. And so, I turn to the knowledgable and expierienced in
hopes of some gem. =)

A few things you should know about the application is that we made our own
main loop, very similar to demoMainLoop.py, found in the demos. Secondly
our application is "built" in a UI sense, from what it can gather from the
system, although the application does not crash during this process very
often. Finally, we are swapping bitmaps in and out of wxStaticBitmaps and
wxBitmapButtons to do a "poor-mans" version of animation. Other than that,
I cannot think of anything we are doing that is too far distant from any
so-called normal wxPython application.

Any thoughts, hints, etc?

Thanks,
-Shane Holloway
ICCE Technologies

Well I've been beating my head against this one for a while. As our
software has gotten more complex and dynamic, two fatal python errors have
become more and more prevalent. The first being "GC object already in
list". Given this, I built a debug version of Python, and thus the debug
version of wxPython. Now I am getting the prior error, in addition to
"UNREF Invalid Object". Researching the both of these errors suggests

that

the error would come out of an extension to Python, and not necessarily
Python itself. The debug investigation goes on, but I'm not quite sure

what

I'm looking for. And so, I turn to the knowledgable and expierienced in
hopes of some gem. =)

I would find where Python is generating these messages and then in the
debugger put a breakpoint there. When the error happens you can then do a
backtrace to see how it got there and then you will know what part of
wxPython (or whatever) to look closer at.

ยทยทยท

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!