Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  URGENT: iOS Crash, Unity 2018.3.14
#1
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
Reply
#2
(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.
Reply
#3
(03-05-2019, 03:34 PM)josemendez Wrote: 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.

I sent you a PM with a link to a complete Unity project which is experiencing the issue. Let me know if you are able to reproduce it. Thanks!
Reply
#4
(03-05-2019, 03:34 PM)josemendez Wrote: 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.

I sent you a Unity project (through PM) which demonstrates the crash occurring on iOS. Were you able to reproduce it?
Reply
#5
Hi,

I am also seeing same crash in my iPhone XSMax with iOS 12.3.1. Any luck fixing this, this crash is right now show stopper for us, please help!
Note: this crash doesn't happen in my iPad Pro (9.7-inch) with iOS 12.3.1.
Reply
#6
(13-07-2019, 01:14 PM)madhu Wrote: Hi,

I am also seeing same crash in my iPhone XSMax with iOS 12.3.1. Any luck fixing this, this crash is right now show stopper for us, please help!
Note: this crash doesn't happen in my iPad Pro (9.7-inch) with iOS 12.3.1.

Hi there,

This only happens on the A12 CPU family. No other devices (iOS or otherwise) exhibit this issue. We're working to determine the cause and fix it, please bear with us in the meanwhile. More info on this asap.

kind regards,
Reply
#7
Hi,

I'm also experiencing Obi Rope crashing consistently on A12 devices. 

Is there a workaround we can use to fix this? We're supposed to deliver our game in the coming week and this is a blocking issue.

Thanks,
Austin

Also, here's my crash log if it helps
Code:
Exception Type:  EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, process-exit watchdog transgression: com.gnarcade.archergolf exhausted real (wall clock) time allowance of 5.00 seconds | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: process-exit | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 7.960 (user 7.960, system 0.000), 27% CPU", | "Elapsed application CPU time (seconds): 5.016, 17% CPU" | )
Triggered by Thread:  0

Thread 0 Crashed:
0   libsystem_kernel.dylib            0x00000002125add68 swtch_pri + 8
1   archergolf                        0x0000000105bbd4b8 0x104fec000 + 12391608
2   archergolf                        0x0000000105e694bc 0x104fec000 + 15193276
3   archergolf                        0x0000000105e97c08 0x104fec000 + 15383560
4   archergolf                        0x0000000105e97990 0x104fec000 + 15382928
5   archergolf                        0x00000001050a1674 0x104fec000 + 743028
6   archergolf                        0x0000000105b194dc 0x104fec000 + 11719900
7   archergolf                        0x0000000105548158 0x104fec000 + 5620056
8   archergolf                        0x0000000105550224 0x104fec000 + 5653028
9   archergolf                        0x000000010555a9a0 0x104fec000 + 5695904
10  archergolf                        0x00000001053ef46c 0x104fec000 + 4207724
11  archergolf                        0x00000001054b4098 0x104fec000 + 5013656
12  archergolf                        0x00000001054b40cc 0x104fec000 + 5013708
13  archergolf                        0x00000001054b42ac 0x104fec000 + 5014188
14  archergolf                        0x000000010571f73c 0x104fec000 + 7550780
15  archergolf                        0x0000000104ff8eec 0x104fec000 + 52972
16  archergolf                        0x0000000104ff8dd8 0x104fec000 + 52696
17  QuartzCore                        0x0000000216e46ea8 CA::Display::DisplayLink::dispatch_items+ 69288 (unsigned long long, unsigned long long, unsigned long long) + 632
18  QuartzCore                        0x0000000216f14858 display_timer_callback+ 911448 (__CFMachPort*, void*, long, void*) + 276
19  CoreFoundation                    0x000000021298f058 __CFMachPortPerform + 192
20  CoreFoundation                    0x00000002129b6af0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 60
21  CoreFoundation                    0x00000002129b61e8 __CFRunLoopDoSource1 + 444
22  CoreFoundation                    0x00000002129b0d80 __CFRunLoopRun + 2060
23  CoreFoundation                    0x00000002129b0254 CFRunLoopRunSpecific + 452
24  GraphicsServices                  0x0000000214befd8c GSEventRunModal + 108
25  UIKitCore                     0x000000023fcf84c0 UIApplicationMain + 216
26  archergolf                        0x0000000104ff1170 0x104fec000 + 20848
27  libdyld.dylib                 0x000000021246cfd8 start + 4
Reply
#8
(16-07-2019, 08:16 PM)austins Wrote: Hi,

I'm also experiencing Obi Rope crashing consistently on A12 devices. 

Is there a workaround we can use to fix this? We're supposed to deliver our game in the coming week and this is a blocking issue.

Thanks,
Austin

Also, here's my crash log if it helps
Code:
Exception Type:  EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, process-exit watchdog transgression: com.gnarcade.archergolf exhausted real (wall clock) time allowance of 5.00 seconds | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: process-exit | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 7.960 (user 7.960, system 0.000), 27% CPU", | "Elapsed application CPU time (seconds): 5.016, 17% CPU" | )
Triggered by Thread:  0

Thread 0 Crashed:
0   libsystem_kernel.dylib         0x00000002125add68 swtch_pri + 8
1   archergolf                     0x0000000105bbd4b8 0x104fec000 + 12391608
2   archergolf                     0x0000000105e694bc 0x104fec000 + 15193276
3   archergolf                     0x0000000105e97c08 0x104fec000 + 15383560
4   archergolf                     0x0000000105e97990 0x104fec000 + 15382928
5   archergolf                     0x00000001050a1674 0x104fec000 + 743028
6   archergolf                     0x0000000105b194dc 0x104fec000 + 11719900
7   archergolf                     0x0000000105548158 0x104fec000 + 5620056
8   archergolf                     0x0000000105550224 0x104fec000 + 5653028
9   archergolf                     0x000000010555a9a0 0x104fec000 + 5695904
10  archergolf                     0x00000001053ef46c 0x104fec000 + 4207724
11  archergolf                     0x00000001054b4098 0x104fec000 + 5013656
12  archergolf                     0x00000001054b40cc 0x104fec000 + 5013708
13  archergolf                     0x00000001054b42ac 0x104fec000 + 5014188
14  archergolf                     0x000000010571f73c 0x104fec000 + 7550780
15  archergolf                     0x0000000104ff8eec 0x104fec000 + 52972
16  archergolf                     0x0000000104ff8dd8 0x104fec000 + 52696
17  QuartzCore                     0x0000000216e46ea8 CA::Display::DisplayLink::dispatch_items+ 69288 (unsigned long long, unsigned long long, unsigned long long) + 632
18  QuartzCore                     0x0000000216f14858 display_timer_callback+ 911448 (__CFMachPort*, void*, long, void*) + 276
19  CoreFoundation                 0x000000021298f058 __CFMachPortPerform + 192
20  CoreFoundation                 0x00000002129b6af0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 60
21  CoreFoundation                 0x00000002129b61e8 __CFRunLoopDoSource1 + 444
22  CoreFoundation                 0x00000002129b0d80 __CFRunLoopRun + 2060
23  CoreFoundation                 0x00000002129b0254 CFRunLoopRunSpecific + 452
24  GraphicsServices               0x0000000214befd8c GSEventRunModal + 108
25  UIKitCore                     0x000000023fcf84c0 UIApplicationMain + 216
26  archergolf                     0x0000000104ff1170 0x104fec000 + 20848
27  libdyld.dylib                 0x000000021246cfd8 start + 4

Hi,

This particular one does not seem to be related to Obi in any way. It crashes in "archergolf" (outside of our code), with a EXC_CRASH (SIGKILL). All other stack traces we've seen crash inside the Obi physics engine (Oni), in Oni::TaskQueue::NextTask with a KERN_INVALID_ADDRESS, which is likely to be either a null ptr dereference or a memory alignment issue.
Reply
#9
(17-07-2019, 07:29 AM)josemendez Wrote: Hi,

This particular one does not seem to be related to Obi in any way. It crashes in "archergolf" (outside of our code), with a EXC_CRASH (SIGKILL). All other stack traces we've seen crash inside the Obi physics engine (Oni), in Oni::TaskQueue::NextTask with a KERN_INVALID_ADDRESS, which is likely to be either a null ptr dereference or a memory alignment issue.

Hi josemendez,

I just tested the game without Obi Rope in it and it no longer crashes. Also, in XCode it points to ObiSolver_EndFrame when it crashes. Here's a screenshot of XCode when it crashes.

Thanks,
Austin
Reply
#10
(18-07-2019, 01:15 AM)austins Wrote: Hi josemendez,

I just tested the game without Obi Rope in it and it no longer crashes. Also, in XCode it points to ObiSolver_EndFrame when it crashes. Here's a screenshot of XCode when it crashes.

Thanks,
Austin

Hi,

Thanks, the previous stack trace did not contain much information. This makes it clear the crash happens in our lib.
- Does this only happen in A12 devices? (to rule out it being an unrelated issue)
- Does this happen in the device alone, the device connected to XCode, or the simulator?
Reply