Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

libc++abi.dylib: terminate_handler unexpectedly threw an exception - 0 stack trace iOS7 / iOS 8

Randomly (that's why I ask the question), my application crashes when want to display data into textView.
The only error message I've got in my debug console is :

libc++abi.dylib: terminate_handler unexpectedly threw an exception

I Googled but can't get a clue to find how correct this and how this happens.

like image 580
David 'mArm' Ansermot Avatar asked Sep 19 '14 10:09

David 'mArm' Ansermot


2 Answers

This can be caused by an outlet that is no longer existing (might have been renamed or removed).

Here is a tip on how to check outlets: Select the container view of the suspected outlet, pay attention to "!" marks in the connections inspector.

check constraints

like image 113
JonSlowCN Avatar answered Oct 10 '22 21:10

JonSlowCN


I got the same error and a "clean" didn't resolve it.

It was caused by my internet testing flow, I check to see if WiFi is connected but not if that WiFi has an active internet connection that can resolve a supplied URL. It performs a dataWithContentsOfURL: that will ultimately fail. A similar thread made this suggestion to this question here by user Keith that helped me identify the problem -- which was to add breakpoints to C++ exceptions.

To enable -- click your breakpoints view and the very bottom click the '+' to add a breakpoint. Set it up as follows and the stack trance will be more meaningful. Enable C++ Breakpoints

like image 40
Sean Dev Avatar answered Oct 10 '22 21:10

Sean Dev