Search Unity

Bug iOS 17 + xcode15.2 Thread 1: signal SIGABRT Crash

Discussion in 'iOS and tvOS' started by lriley3, Feb 13, 2024.

  1. lriley3


    Feb 10, 2019
    Hi Everyone!

    I’ve been banging my head on my desk for the last few weeks as I try to figure out what’s going wrong with my game. Long story short my game was originally built with Unity 2020.3.12f1 and used Xcode 14 to build to my iPhone (13 pro). Last month, in order to build to iOS 17 I had to update to Xcode 15.2. Once I did that, my game began crashing when I tap a button that simply loads my "main menu” scene. The only function attached to that button is: SceneManager.LoadScene("Main Menu”);.

    Code (CSharp):
    1. SceneManager.LoadScene("Main Menu”);
    It’s also worth noting that this only happens on my iOS build and does not happen at all in the Unity editor. Everything works perfectly in the editor and worked perfectly on my iPhone until I updated to Xcode 15. There are also no errors in the unity console.

    So to troubleshoot, I updated my Unity version to 2022.3.18f1 and attempted to build using Xcode 15.2 again, and the same crash happens. When that button is tapped, my game freezes and the Xcode console only reads:

    libc++abi: terminating due to uncaught exception of type Il2CppExceptionWrapper

    Once the error pops up in Xcode I get the following:

    UnityFramework`-[UnityFramework runUIApplicationMainWithArgc:argv:]:
    0x11364e3b4 <+0>: sub sp, sp, #0x60
    0x11364e3b8 <+4>: stp x29, x30, [sp, #0x50]
    0x11364e3bc <+8>: add x29, sp, #0x50
    0x11364e3c0 <+12>: mov x8, x1
    0x11364e3c4 <+16>: stur x0, [x29, #-0x8]
    0x11364e3c8 <+20>: stur x8, [x29, #-0x10]
    0x11364e3cc <+24>: stur w2, [x29, #-0x14]
    0x11364e3d0 <+28>: stur x3, [x29, #-0x20]
    0x11364e3d4 <+32>: ldur x9, [x29, #-0x8]
    0x11364e3d8 <+36>: ldr w8, [x9, #0x8]
    0x11364e3dc <+40>: add w8, w8, #0x1
    0x11364e3e0 <+44>: str w8, [x9, #0x8]
    0x11364e3e4 <+48>: ldur x0, [x29, #-0x8]
    0x11364e3e8 <+52>: ldur w2, [x29, #-0x14]
    0x11364e3ec <+56>: ldur x3, [x29, #-0x20]
    0x11364e3f0 <+60>: bl 0x119bb4138 ; objc_msgSend$frameworkWarmup:argv:
    0x11364e3f4 <+64>: ldr x1, [sp]
    0x11364e3f8 <+68>: ldur w8, [x29, #-0x14]
    0x11364e3fc <+72>: str w8, [sp, #0x14]
    0x11364e400 <+76>: ldur x8, [x29, #-0x20]
    0x11364e404 <+80>: str x8, [sp, #0x8]
    0x11364e408 <+84>: adrp x8, 29433
    0x11364e40c <+88>: ldr x0, [x8, #0x8d0]
    0x11364e410 <+92>: adrp x8, 29437
    0x11364e414 <+96>: ldr x2, [x8, #0x6d0]
    0x11364e418 <+100>: bl 0x119bba878 ; objc_msgSend$stringWithUTF8String:
    0x11364e41c <+104>: mov x29, x29
    0x11364e420 <+108>: bl 0x119badcf0 ; symbol stub for: objc_retainAutoreleasedReturnValue
    0x11364e424 <+112>: ldr x1, [sp, #0x8]
    0x11364e428 <+116>: mov x3, x0
    0x11364e42c <+120>: ldr w0, [sp, #0x14]
    0x11364e430 <+124>: str x3, [sp, #0x18]
    0x11364e434 <+128>: mov x2, #0x0
    0x11364e438 <+132>: bl 0x119bae2cc ; symbol stub for: UIApplicationMain
    -> 0x11364e43c <+136>: b 0x11364e440 ; <+140> at THREAD 1: Thread 1: signal SIGABRT
    0x11364e440 <+140>: ldr x0, [sp, #0x18]
    0x11364e444 <+144>: bl 0x119badc78 ; symbol stub for: objc_release
    0x11364e448 <+148>: ldp x29, x30, [sp, #0x50]
    0x11364e44c <+152>: add sp, sp, #0x60
    0x11364e450 <+156>: ret
    0x11364e454 <+160>: mov x8, x0
    0x11364e458 <+164>: ldr x0, [sp, #0x18]
    0x11364e45c <+168>: str x8, [sp, #0x28]
    0x11364e460 <+172>: mov x8, x1
    0x11364e464 <+176>: str w8, [sp, #0x24]
    0x11364e468 <+180>: bl 0x119badc78 ; symbol stub for: objc_release
    0x11364e46c <+184>: b 0x11364e470 ; <+188> at
    0x11364e470 <+188>: ldr x0, [sp, #0x28]
    0x11364e474 <+192>: bl 0x119baf4f0 ; symbol stub for: _Unwind_Resume

    When I attempt to stacktrace in Xcode I get the following:

    * thread #1, queue = '', stop reason = signal SIGABRT
    frame #0: 0x00000001e0435fbc libsystem_kernel.dylib`__pthread_kill + 8
    frame #1: 0x0000000202dd3680 libsystem_pthread.dylib`pthread_kill + 268
    frame #2: 0x00000001a0d56b90 libsystem_c.dylib`abort + 180
    frame #3: 0x0000000202cfdff8 libc++abi.dylib`abort_message + 132
    frame #4: 0x0000000202cedf90 libc++abi.dylib`demangling_terminate_handler() + 348
    frame #5: 0x0000000191032db4 libobjc.A.dylib`_objc_terminate() + 160
    frame #6: 0x0000000202cfd3bc libc++abi.dylib`std::__terminate(void (*)()) + 16
    frame #7: 0x0000000202cfd360 libc++abi.dylib`std::terminate() + 108
    frame #8: 0x0000000191040cd4 libobjc.A.dylib`objc_terminate + 16
    frame #9: 0x00000001a0c9e314 libdispatch.dylib`_dispatch_client_callout + 40
    frame #10: 0x00000001a0cac998 libdispatch.dylib`_dispatch_main_queue_drain + 984
    frame #11: 0x00000001a0cac5b0 libdispatch.dylib`_dispatch_main_queue_callback_4CF + 44
    frame #12: 0x0000000198cd4f9c CoreFoundation`__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
    frame #13: 0x0000000198cd1ca8 CoreFoundation`__CFRunLoopRun + 1996
    frame #14: 0x0000000198cd13f8 CoreFoundation`CFRunLoopRunSpecific + 608
    frame #15: 0x00000001dc27f4f8 GraphicsServices`GSEventRunModal + 164
    frame #16: 0x000000019b0f78a0 UIKitCore`-[UIApplication _run] + 888
    frame #17: 0x000000019b0f6edc UIKitCore`UIApplicationMain + 340
    * frame #18: 0x000000010e6fe43c UnityFramework`-[UnityFramework runUIApplicationMainWithArgc:argv:](self=0x00000002820442a0, _cmd="runUIApplicationMainWithArgc:argv:", argc=1, argv=0x000000016f4175d0) at
    frame #19: 0x00000001009ec1d0 InYourHead`main(argc=1, argv=0x000000016f4175d0) at
    frame #20: 0x00000001bba32dcc dyld`start + 2240

    I can’t figure out for the life of me what’s causing this crash. Can anyone help me troubleshoot this so I can figure what is causing this crash and hopefully solve it?

    Thank you!