- Home /
Unity 4.2 IOS Exception Handling
Hey Folks,
I'm having trouble getting Unity to catch null pointer exceptions on IOS - even with explicit try/catch exceptions. Here's a rough sketch of my code
https://gist.github.com/jmcguirk/6553120
Each of these functions are called as a callback handler from a simple TK2dButton (Which is just a coroutine looking for input up).
In the editor, the errors are either uncaught (and logged to the console) or caught (and logged by my code).
Running this on device (IOS 6 on iphone, IOS 7 on ipad mini) produces the following hard crash
# Binary Image Name Address Symbol
0 honorbound 0x00eced06 testflight_backtrace
1 honorbound 0x00ecf954 TFSignalHandler
2 libsystem_platform.dylib 0x3914d062 _sigtramp
3 honorbound 0x00173d5f m_11ba
4 honorbound 0x00173d5f m_11ba
5 honorbound 0x00d6756b m_4513
6 honorbound 0x0142518f mono_jit_runtime_invoke
7 honorbound 0x014c71c7 mono_runtime_invoke
8 honorbound 0x011819f3 scripting_method_invoke in ScriptingBackendApi_Mono.cpp on Line 176
9 honorbound 0x011815e7 in ScriptingInvocationNoArgs.cpp on Line 94
10 honorbound 0x011815a3 in ScriptingInvocationNoArgs.cpp on Line 78
11 honorbound 0x011770c3 in MonoBehaviour.cpp on Line 533
12 honorbound 0x011770db in MonoBehaviour.cpp on Line 620
13 honorbound 0x010b7973 in Behaviour.cpp on Line 178
14 honorbound 0x010b7ccb in Behaviour.cpp on Line 173
15 honorbound 0x01154297 PlayerLoop in Player.cpp on Line 1853
16 honorbound 0x00efb3c7 UnityPlayerLoop in LibEntryPoint.mm on Line 377
17 honorbound 0x00ea9467 -[UnityAppController repaintDisplayLink] in UnityAppController.m
This is with Stripping Level "strip byte code" and Call Optimization set to "Slow and Safe"
Comment