Re: [Pyobjc-dev] crasher demo app
Brought to you by:
ronaldoussoren
From: Burris T. E. <bu...@gi...> - 2004-03-25 21:08:13
|
First off, I appreciate all of the help here... On Mar 25, 2004, at 12:19 PM, Ronald Oussoren wrote: > If I remove those calls the application runs longer, e.g. it didn't > crash yet :-) I don't think that's it... I tried that, holding a reference to the cell, and also retaining the application delegate that holds references to the controller objects. Still, inside the cell, the controller attribute disappears inside drawInteriorWithFrame. Here is a traceback from the full application, which is pretty much the same as the demonstration. This shouldn't be possible since the cell sets self.controller inside of init() and nowhere else is the attribute removed. Traceback (most recent call last): File "/tmp/BitTorrent.dst/Users/drue/Applications/BitTorrent.app/Contents/ Resources/__main__.py", line 16, in ? AppHelper.runEventLoop(argv=[]) File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/site-packages/PyObjC/PyObjCTools/AppHelper.py", line 50, in runEventLoop if not unexpectedErrorAlert(): File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ python2.3/site-packages/PyObjC/PyObjCTools/AppHelper.py", line 31, in unexpectedErrorAlert "Continue", "Quit", None) File "/tmp/BitTorrent.dst/Users/drue/Applications/BitTorrent.app/Contents/ Resources/DLCell.py", line 34, in drawInteriorWithFrame_inView_ self.controller.cview.unlockFocus() AttributeError: 'DLCell' object has no attribute 'controller' 2004-03-25 13:02:35.697 BitTorrent[2148] An uncaught exception was raised 2004-03-25 13:02:35.698 BitTorrent[2148] /Users/drue/wa/PyBT/BitTorrent_med/main-embedded-interpreter.m:57 pyobjc_main() PyRun_SimpleFile failed with file '/tmp/BitTorrent.dst/Users/drue/Applications/BitTorrent.app/Contents/ Resources/__main__.py'. See console for errors. 2004-03-25 13:02:35.698 BitTorrent[2148] *** Uncaught exception: <NSInternalInconsistencyException> /Users/drue/wa/PyBT/BitTorrent_med/main-embedded-interpreter.m:57 pyobjc_main() PyRun_SimpleFile failed with file '/tmp/BitTorrent.dst/Users/drue/Applications/BitTorrent.app/Contents/ Resources/__main__.py'. See console for errors. thanks, burris |