My app has a single window with a single view and I call: NSImage* theImage = [[[NSImage alloc] initWithContentsOfFile:mapImagePath] autorelease]; [window orderFront:self]; [imageView setImage:theImage]; [imageView setNeedsDisplay:YES];
The file that this image comes from will be deleted later on, but once initWithContentsOfFile is called, it no longer needs the file, right? I assume the autorelease is ok since theImage will be retained by imageView. Thoughts? I can't reproduce this but have a few users getting it occasionally - no steps to reproduce, but always on wake from sleep. Thread 0 Crashed: 0 com.apple.CoreGraphics 0x95f91ac0 CGSConvertBGR888toRGBA8888 + 160 1 com.apple.CoreGraphics 0x95eea94b argb32_image + 5611 2 libRIP.A.dylib 0x912b46f9 ripd_Mark + 326 3 libRIP.A.dylib 0x912ae977 ripl_BltImage + 1307 4 libRIP.A.dylib 0x91298549 ripc_RenderImage + 273 5 libRIP.A.dylib 0x912a8e6a ripc_DrawImage + 5102 6 com.apple.CoreGraphics 0x95edd32d CGContextDrawImage + 397 7 com.apple.AppKit 0x90b264b0 -[NSBitmapImageRep _drawFromRect:toRect:operation:alpha:compositing:flipped:ignoreContext:] + 2621 8 com.apple.AppKit 0x90b2570b -[NSImage drawInRect:fromRect:operation:fraction:] + 5109 9 com.apple.AppKit 0x90f6ad2a -[NSImage _drawMappingAlignmentRectToRect:withState:backgroundStyle:operation:fraction :flip:] + 1041 10 com.apple.AppKit 0x90bc221b -[NSImageCell drawInteriorWithFrame:inView:] + 751 11 com.apple.AppKit 0x90bc1f1f -[NSImageCell drawWithFrame:inView:] + 2230 12 com.apple.AppKit 0x90b054a7 -[NSControl drawRect:] + 378 13 com.apple.AppKit 0x90b9922c -[NSView _drawRect:clip:] + 3853 14 com.apple.AppKit 0x90b97d23 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1050 15 com.apple.AppKit 0x90b980ba -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1969 16 com.apple.AppKit 0x90b980ba -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1969 17 com.apple.AppKit 0x90b96679 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRect ForView:topView:] + 759 18 com.apple.AppKit 0x90c7e929 -[NSNextStepFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRect ForView:topView:] + 340 19 com.apple.AppKit 0x90b92adf -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 3090 20 com.apple.AppKit 0x90ad34b3 -[NSView displayIfNeeded] + 933 21 com.apple.AppKit 0x90ad3061 -[NSWindow displayIfNeeded] + 189 22 com.apple.AppKit 0x90ad2e84 _handleWindowNeedsDisplay + 436 23 com.apple.CoreFoundation 0x95cc3942 __CFRunLoopDoObservers + 466 24 com.apple.CoreFoundation 0x95cc4c9c CFRunLoopRunSpecific + 844 25 com.apple.CoreFoundation 0x95cc5c78 CFRunLoopRunInMode + 88 26 com.apple.HIToolbox 0x9236928c RunCurrentEventLoopInMode + 283 27 com.apple.HIToolbox 0x923690a5 ReceiveNextEventCommon + 374 28 com.apple.HIToolbox 0x92368f19 BlockUntilNextEventMatchingListInMode + 106 29 com.apple.AppKit 0x90ad0d0d _DPSNextEvent + 657 30 com.apple.AppKit 0x90ad05c0 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128 31 com.apple.AppKit 0x90ac95fb -[NSApplication run] + 795 32 com.apple.AppKit 0x90a96834 NSApplicationMain + 574 33 com.xericdesign.earthdesk.core 0x00002246 0x1000 + 4678 _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com