Re: _NSAutoreleaseNoPool missing in Snow Leopard
Re: _NSAutoreleaseNoPool missing in Snow Leopard
- Subject: Re: _NSAutoreleaseNoPool missing in Snow Leopard
- From: Klaus Backert <email@hidden>
- Date: Mon, 31 Aug 2009 12:44:42 +0200
On 31 Aug 2009, at 03:50, Kyle Sluder wrote:
Except his previous stack trace seems to indicate that the at-fault
code is in QTKit…
When logging image and library names as they are loaded and calls to
class and category +load methods it looks like you can see below.
Interestingly -- or not interestingly? -- +[QTMovieContentView load]
is called before the autorelease error message appears.
...
Running…
Blotto(388) malloc: enabling scribbling to detect mods to free blocks
objc[388]: OBJC_PRINT_OPTIONS is set
objc[388]: OBJC_PRINT_IMAGES is set
objc[388]: OBJC_PRINT_LOAD_METHODS is set
objc[388]: OBJC_PRINT_CXX_CTORS is set
objc[388]: OBJC_DISABLE_GC is set
objc[388]: IMAGES: processing 109 newly-mapped images...
objc[388]: IMAGES: loading image for /usr/lib/libobjc.A.dylib
(supports GC)
<more image loading here>
objc[388]: IMAGES: loading image for /System/Library/Frameworks/
AppKit.framework/Versions/C/AppKit (supports GC)
objc[388]: IMAGES: loading image for /System/Library/Frameworks/
QTKit.framework/Versions/A/QTKit (supports GC)
objc[388]: IMAGES: loading image for /Volumes/C/Development/Projects/
Blotto/build/Debug/Blotto.app/Contents/MacOS/Blotto
objc[388]: GC: forcing GC OFF because OBJC_DISABLE_GC is set
objc[388]: LOAD: class 'NSObject' scheduled for +load
objc[388]: LOAD: +[NSObject load]
<more load calling here>
objc[388]: LOAD: +[NSApplication load]
<void dkt::InitializeWorld()> invoking at /Volumes/C/Development/
Projects/Demokrit/DktWorld.cpp:18
<void dkt::InitializeWorld()> initialize ODE library at /Volumes/C/
Development/Projects/Demokrit/DktWorld.cpp:21
objc[388]: LOAD: class 'QTMovieContentView' scheduled for +load
objc[388]: LOAD: +[QTMovieContentView load]
(gdb) continue
objc[388]: IMAGES: checking 1 images for compatibility...
objc[388]: IMAGES: processing 18 newly-mapped images...
2009-08-31 12:18:36.793 Blotto[388:813] *** _NSAutoreleaseNoPool():
Object 0xa0c13290 of class NSCFString autoreleased with no pool in
place - just leaking
Stack: (0x94350dac 0x9427de14 0x9134ca24 0x940bcab4 0x940bc934
0x940bb010 0x96df69d8 0x940c49b0 0x940bd4ec 0x8fe02d7c 0x8fe0f220
0x8fe0f198 0x8fe0f36c 0x8fe03848 0x8fe08144 0x8fe01774 0x8fe01048)
(gdb)
This all is on Leopard. I haven't had the opportunity of testing this
on Snow Leopard.
Klaus
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden