Mac Application crash on IKImageBrowserView clicking after running some time.

mkristain

macrumors regular
Original poster
Aug 18, 2011
115
0
Hi all,

i really dont understand what is happening ,application running perfectly fine,

but after some time of running application when i click on item of IKImageBrowserView,application crashed.

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000020
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

0x92365917 objc_msgSend + 23
0x95fb8c92 -[NSToolTipManager mouseEntered:]
0x95ed33ee -[NSApplication sendEvent:] + 6016
0x95e66ec5 -[NSApplication run] + 917
0x95e5ef01 NSApplicationMain + 574
0x00002b5c main + 30
0x00002b35 start + 53

i really dont understand where is the error occur,please help me to find out this and solved this.
 

jiminaus

macrumors 65816
Dec 16, 2010
1,449
1
Sydney
It sounds like your have a dangling pointer to an deallocated object.

Sometimes sending an message to deallocated (aka zombie) object won't crash the application immediately because the bits of the object are still intact in memory. However after time that memory gets reused by another object, then when you send a message to the deallocated object your application will crash.
 

mkristain

macrumors regular
Original poster
Aug 18, 2011
115
0
so where i can found this,on imageBrowserSelectionDidChange: or any where else.
 

jiminaus

macrumors 65816
Dec 16, 2010
1,449
1
Sydney
so where i can found this,on imageBrowserSelectionDidChange: or any where else.
Assuming your using XCode 4.2, go into the Product menu and choose Profile.

This will launch Instruments. Choose the Zombies profile and click Profile.

Your application should launch. Test is out. If you send a message to a zombie object, Instruments will popup a balloon titled Zombie Messaged. Click the white arrow on the grey circle in that balloon. The table at the bottom of Instruments will give you a history of the object including when it was allocated and released.
 

mkristain

macrumors regular
Original poster
Aug 18, 2011
115
0
my Xcode Version is 3.2.2 ,here is no Product menu to choose Profile.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.