Re: [Pyobjc-dev] crasher demo app
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2004-03-25 20:19:39
|
On 25-mrt-04, at 7:18, Burris T. Ewell wrote: > Okay, here is a bare bones implementation of what I was describing. > > http://www.gigagig.org/BT/mcfoo.tgz > > Start this up. It helps to click on the cells, try to drag them. > Sometimes it will hang. Sometimes it will crash like this: > > *** malloc[1540]: Deallocation of a pointer not malloced: 0x726df0; > This could be a double free(), or free() called with the middle of an > allocated block; Try setting environment variable MallocHelp to see > tools to help debug > *** malloc_zone_malloc[1540]: argument too large: 4294967292 > > mcfoo has exited due to signal 10 (SIGBUS). > I noticed one odd thing in the source code class Worker.py contains: class Worker (NibClassBuilder.AutoBaseClass): def init(self): self.cview = IBOutlet("cview") self.field = IBOutlet("field") self.progress = IBOutlet("progress") self.resized = 1 NSBundle.loadNibNamed_owner_("cview", self) return self The three calls to IBOutlet are bogus as the create a descriptor. Calls to IBOutlet should be at class level, and when you use AutoBaseClass you don't need them at all (as long as the outlets are defined in the NIB file). If I remove those calls the application runs longer, e.g. it didn't crash yet :-) Ronald -- X|support bv http://www.xsupport.nl/ T: +31 610271479 F: +31 204416173 |