Re: [Pyobjc-dev] Crash when closing all documents
Brought to you by:
ronaldoussoren
From: Daniel M. <mil...@gm...> - 2009-11-24 03:02:02
|
> You seem to get a bus error, although the code looks fine at first > glance. Could you create a small self-contained project that suffers > from the same problem, that would make debugging a lot easier for me. Sorry for the delay in getting this to you. The example is attached. I modified the TinyTinyEdit example found in PyObjC 1.4 (and updated it slightly to use the new subclassing mechanism rather than the old NibClassBuilder.AutoBaseClass). Anyway, this little program will reproduce the error I described in the first email in this thread. Instructions to reproduce the error (execute the following at the command line after unpacking the zip file): Dependencies (This is what's on my system. Other versions may also produce the same error. 10.4 with PyObjC 1.4 did NOT produce this error to my knowlege.): Snow Leopard 10.6 Python 2.6 PyObjC 2.2b2 py2app 0.4.2 (dev?) $ cd TinyTinyEdit $ python setup.py py2app -A $ dist/TinyTinyEdit.app/Contents/MacOS/TinyTinyEdit The TinyTinyEdit window should pop up at this point. Type something in the window to make the document dirty. Then hit [Command]+Q. You should get a traceback in your terminal window. The Apple crash reporter will probably pop up as well. Context: the action you performed by following the steps outlined above simulates what would happen in my application if the user were to quit the application with unsaved documents, and then clicked "Don't Save" for each unsaved document. ~ Daniel |