Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

-[UIApplication _terminateWithStatus:] being called forcing game to shutdown on load, unsure why

Discussion in 'iOS and tvOS' started by chillypacman, Jun 21, 2017.

  1. chillypacman

    chillypacman

    Joined:
    Oct 1, 2011
    Posts:
    71
    Only seems to happen on iPhone 6 and iPad Airs forcing exit on load. This is the log I was able to retrieve:

    0 libsystem_platform.dylib 0x18dac49fc OSAtomicAdd64Barrier + 78
    1 saisai 0x100b044e0 MemoryProfiler::UnregisterAllocation(void*, unsigned long, MemLabelId const&) (MemoryProfiler.cpp:109)
    2 saisai 0x1009e1cfc MemoryManager::Deallocate(void*) (MemoryManager.cpp:1322)
    3 saisai 0x100a23cf4 DestroyRealGfxDevice() (GfxDevice.cpp:237)
    4 saisai 0x100dae574 GfxDeviceWorker::~GfxDeviceWorker() (GfxDeviceWorker.cpp:149)
    5 saisai 0x100dae6c8 GfxDeviceWorker::~GfxDeviceWorker() (GfxDeviceWorker.cpp:141)
    6 saisai 0x100d9f870 GfxDeviceClient::~GfxDeviceClient() (GfxDeviceClient.cpp:213)
    7 saisai 0x100a23bd0 DestroyGfxDevice() (MemoryMacros.h:164)
    8 saisai 0x100d4b78c UnityCleanup (LibEntryPoint.mm:233)
    9 saisai 0x10009eac8 -[UnityAppController applicationWillTerminate:] (UnityAppController.mm:368)
    10 UIKit 0x194bbdd48 -[UIApplication _terminateWithStatus:] + 244
    11 UIKit 0x194dbc268 __102-[UIApplication _handleApplicationDeactivationWithScene:shouldForceExit:transitionContext:completion:]_block_invoke.2093 + 792
    12 UIKit 0x194dbfa18 _runAfterCACommitDeferredBlocks + 292
    13 UIKit 0x194db1ab4 _cleanUpAfterCAFlushAndRunDeferredBlocks + 528
    14 UIKit 0x194b25724 _afterCACommitHandler + 132
    15 CoreFoundation 0x18e9b89a0 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
    16 CoreFoundation 0x18e9b6628 __CFRunLoopDoObservers + 372
    17 CoreFoundation 0x18e9b6a74 __CFRunLoopRun + 956
    18 CoreFoundation 0x18e8e6d94 CFRunLoopRunSpecific + 424
    19 GraphicsServices 0x190350074 GSEventRunModal + 100
    20 UIKit 0x194b98130 UIApplicationMain + 208
    21 saisai 0x10008a37c main (main.mm:32)
    22 libdyld.dylib 0x18d8f559c start + 4

    I'm at a loss as to what's going on. My initial instinct was that it was a memory issue but the logs don't have any memory warning signals...
     
  2. alexeyzakharov

    alexeyzakharov

    Joined:
    Jul 2, 2014
    Posts:
    507
    Hi,
    It looks like a bug in the engine deinitialization sequence.
    Please file a bug with a mentioned callstack and provide a repro project if possible.

    Thanks!