Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CoreFoundation Trap error "Thread1:EXC_BREAKPOINT (code=EXC_ARM_BREAKPOINT, subcode=0xdefe)"

i need your help i've got this frustrating "random" error.

The app is compose of one Mapviewcontroller and a collectionview on the second controller.

Sometimes when I return to the map from the second controller the app suddenly crash with this error on the the "trap" line. The crash report doesn't point to any of my lines of code.

EXC_BREAKPOINT (code=EXC_ARM_BREAKPOINT, subcode=0xdefe)

enter image description here

I said "random error" because the same version of the same app could be build and run smooth for days, then suddenly it stuck. The only way to regain control of the app is to delete manually from the iPad and rebuild.

For your information the app uses Coredata.

Any ideas? Some method to figure out where the error come from?

Any help is appreciated, thanks!

like image 956
Dodgson86 Avatar asked Aug 27 '13 13:08

Dodgson86


2 Answers

I had this error on line like that

NSLog(@"%@: tutorial view retain count = %ld",self.class,CFGetRetainCount(CFTypeRef(tutorialView)));

where tutorialView equals nil

like image 99
fnc12 Avatar answered Nov 14 '22 05:11

fnc12


Restart your iOS device - that worked for me. You can also try restarting Xcode.

I was getting the crash where I had a breakpoint set, but I had breakpoints turned off. I think that there are glitches in how Xcode handles breakpoints that can cause this issue even if there aren't issues in the code itself.

like image 44
user1021430 Avatar answered Nov 14 '22 06:11

user1021430