Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift crash "EXC_BREAKPOINT 0x0000000... "

I do have three different crashes in my iOS app; different code locations, but all three with "exc_breakpoint 0x000000...". I cannot reproduce them, they happen on different devices and different iOS versions.

As mentioned, I cannot reproduce them, none of our testers had a crash like that, but according to crashlytics they happen too often to ignore.

Above all I'm generally interested in what this EXC_BREAKPOINT 0x0000... means, e.g. unwrapping nil-optional, cast error, ...

first one:

enter image description here

second one: enter image description here

third one: enter image description here

like image 437
swalkner Avatar asked Mar 30 '16 05:03

swalkner


1 Answers

I am also struggling with the similar Crash Log ie. EXC_BREAKPOINT 0x000000010006a4d4. As stated, non of our QA were also able to replicate it but happened only few times. In my case, I found a pattern on all the crashes where it occurred. It occurred on iPhone 6S and iPhone 6 devices and both have only 2% to 4% RAM Free when crash occurred.

I believe it is due to low memory issue. Crash only happened after few instructions on app delegate pointing to random instructions. Crashlytics already stated that the issue lies within Xcode. You can read answer from here for that.

Somewhere I read that EXC_BREAKPOINT occurs when swift has no idea of what happened with the Memory i.e. I guess in my case memory issue due to lower memory.

I have upgraded my Xcode to 7.3 along with swift and I am testing with new builds to replicate the crash. Let's see what will happen. I will post the result after testing and see if crash will be replicated or not.

Hope this helps someone.

like image 127
Rajan Maharjan Avatar answered Nov 02 '22 11:11

Rajan Maharjan