03-05-2019, 03:34 PM
(02-05-2019, 08:32 PM)jlanis Wrote: Crash occurs on iOS (iPhone X, iOS 12.2) device shortly after the app starts. Note that this crash does not occur in the Unity editor or on Android. Using the latest version of ObiRope and Unity 2018.3.14. Crash log is pasted below:
Code:Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0xe000000000000010
VM Region Info: 0xe000000000000010 is not in any region. Bytes after previous region: 16140901053221568529
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
MALLOC_NANO 0000000280000000-00000002a0000000 [512.0M] rw-/rwx SM=PRV
--->
UNUSED SPACE AT END
Triggered by Thread: 0
Thread 0 Crashed:
0 ProductName 0x0000000103425750 Oni::TaskQueue::NextTask+ 21026640 (std::__1::shared_ptr<Oni::Task>*) + 156
1 ProductName 0x00000001034257fc Oni::TaskManager::DoTask+ 21026812 () + 44
2 ProductName 0x0000000103419d1c Oni::Solver::ApplyPositionInterpolation+ 20978972 (unsigned int, float) + 6188
3 ProductName 0x00000001039f68d0 Oni_ApplyPositionInterpolation_m3B1DC6EDDB01EBAED38CBCD4062D222EC2245707 + 27125968 (Bulk_Obi_3.cpp:29919)
4 ProductName 0x00000001039f60ac ObiSolver_EndFrame_m24D9FA67575A13419D43443C1A7E4406F3930C43 + 27123884 (Bulk_Obi_3.cpp:17306)
5 ProductName 0x00000001039fa7d4 ObiSolver_LateUpdate_m65353C862A1A9B63EB63D9AD9163FF7D0D9973F5 + 27142100 (Bulk_Obi_3.cpp:18852)
6 ProductName 0x0000000102309330 RuntimeInvoker_TrueVoid_t22962CB4C05B1D89B55A6E1139F0E87A90987017(void (*)(), MethodInfo const*, void*, void**) + 3085104 (Il2CppInvokerTable.cpp:24647)
7 ProductName 0x00000001033abe1c il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) + 20528668 (Runtime.cpp:539)
8 ProductName 0x0000000102caa854 scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool) + 13183060 (ScriptingApi_Il2Cpp.cpp:246)
9 ProductName 0x0000000102cb4e54 ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool) + 13225556 (ScriptingInvocation.cpp:347)
10 ProductName 0x0000000102cc05e4 MonoBehaviour::CallUpdateMethod(int) + 13272548 (MonoBehaviour.cpp:578)
11 ProductName 0x00000001028e6520 void BaseBehaviourManager::CommonUpdate<LateBehaviourManager>() + 9233696 (Behaviour.cpp:156)
12 ProductName 0x00000001028e6494 LateBehaviourManager::Update() + 9233556 (Behaviour.cpp:207)
13 ProductName 0x0000000102a9b2c4 InitPlayerLoopCallbacks()::PreLateUpdateScriptRunBehaviourLateUpdateRegistrator::Forward() + 11023044 (Player.cpp:1530)
14 ProductName 0x0000000102a938bc ExecutePlayerLoop(NativePlayerLoopSystem*) + 10991804 (PlayerLoop.cpp:347)
15 ProductName 0x0000000102a93918 ExecutePlayerLoop(NativePlayerLoopSystem*) + 10991896 (PlayerLoop.cpp:365)
16 ProductName 0x0000000102a93b34 PlayerLoop() + 10992436 (PlayerLoop.cpp:419)
17 ProductName 0x0000000102fb2248 UnityPlayerLoopImpl(bool) + 16360008 (LibEntryPoint.mm:269)
18 ProductName 0x000000010202ba7c UnityRepaint + 80508 (UnityAppController+Rendering.mm:276)
19 ProductName 0x000000010202ba30 -[UnityAppController(Rendering) repaint] + 80432 (UnityAppController+Rendering.mm:90)
20 ProductName 0x000000010202b978 -[UnityAppController(Rendering) repaintDisplayLink] + 80248 (UnityAppController+Rendering.mm:71)
21 QuartzCore 0x000000020d87f668 CA::Display::DisplayLink::dispatch_items+ 71272 (unsigned long long, unsigned long long, unsigned long long) + 632
22 QuartzCore 0x000000020d94c4a0 display_timer_callback+ 910496 (__CFMachPort*, void*, long, void*) + 276
23 CoreFoundation 0x00000002093f4604 __CFMachPortPerform + 192
24 CoreFoundation 0x000000020941c000 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 60
25 CoreFoundation 0x000000020941b6f8 __CFRunLoopDoSource1 + 444
26 CoreFoundation 0x0000000209416290 __CFRunLoopRun + 2060
27 CoreFoundation 0x0000000209415764 CFRunLoopRunSpecific + 452
28 GraphicsServices 0x000000020b651dd4 GSEventRunModal + 108
29 UIKitCore 0x000000023636c00c UIApplicationMain + 216
30 ProductName 0x000000010201cfa4 main + 20388 (main.mm:41)
31 libdyld.dylib 0x0000000208ed4ffc start + 4
Hi
We've been unable to reproduce this in iOS9 and iOS 11. We're looking for a device to test on iOS12, we'll get back as soon as we have more info.