[Pythonmac-SIG] Problem with a py2app bundle

Quentin DECAVEL qdecavel at nordnet.fr
Fri May 6 22:45:57 CEST 2005


Hi,

I've tried py2app to create a bundle of the application I'm working on right
now. I had no problem during the creation, and the bundle loads fine, but each
time I try to quit, I get the same nasty quit and the pop-up from the system
to tell me that the application unexpectedly quit.
Here is the log that I receive (Greenhouse.creash.log in ~Library/Logs):

Host Name:
Date/Time:      2005-05-06 22:16:26 +0200
OS Version:     10.3.9 (Build 7W98)
Report Version: 2

Command: Greenhouse
Path:    ./dist/Greenhouse.app/Contents/MacOS/Greenhouse
Version: 0.0 (0.0)
PID:     1209
Thread:  Unknown

Link (dyld) error:

dyld: ./dist/Greenhouse.app/Contents/MacOS/Greenhouse NSLookupSymbolInImage()
dynamic library:
/System/Library/Frameworks/Python.framework/Versions/2.3/Python does not
define symbol: _Py_DecRef


I tried to launch the app directly with the command line
(./dist/Greenhouse.app/Contents/MacOS/Greenhouse) and I could trace the
problem a little better:

test
test2
test3
objc: FREED(id): message release sent to freed object=0x1a588a0
Trace/BPT trap


Since "test" happens before the end of the pygame loop and "test3" after the
application main loop, I assume that pygame is not at fault, but then the
test3 is really the last instruction to be evaluated in the main application
file, so I really don't see how this "double free" could happen. Does anybody
have an idea on how to solve the problem ?
I understand that the logs do not tell much, so if you know some other outputs
that I haven't already used, please tell me.

Thanks in advance




More information about the Pythonmac-SIG mailing list