Search Unity

Crash On App Start

Discussion in 'iOS and tvOS' started by lblast, Oct 18, 2017.

  1. lblast

    lblast

    Joined:
    Dec 1, 2016
    Posts:
    68
    I have an app that works on some devices (iOS 10.3.3, iPhone 5c) but not on others (iOS 10.3.2, iPhone 7). The project was built using Unity 5.6.3p1

    On the working device it starts up just fine and works as expected, but on the other devices it crashes on app start (a brief flicker of a black screen then returns back to iOS).

    I used XCode and my dSYM to symbolicate the crash log (with these sections being the most relevant):


    Exception Type: EXC_CRASH (SIGABRT)
    Exception Codes: 0x0000000000000000, 0x0000000000000000
    Exception Note: EXC_CORPSE_NOTIFY
    Triggered by Thread: 11


    Thread 11 name: UnityGfxDeviceWorker
    Thread 11 Crashed:
    0 libsystem_kernel.dylib 0x0000000181f45014 __pthread_kill + 8
    1 libsystem_pthread.dylib 0x000000018200f264 pthread_kill + 112
    2 libsystem_c.dylib 0x0000000181eb99c4 abort + 140
    3 libsystem_c.dylib 0x0000000181e8e4dc __assert_rtn + 220
    4 Metal 0x0000000185542fc0 MTLReportFailure + 780
    5 Metal 0x000000018551f814 -[MTLTextureDescriptorInternal validateWithDevice:] + 1652
    6 AGXMetalA8 0x000000019d530760 0x19d4e6000 + 304992
    7 theappname 0x0000000100dc9784 UploadTexture(TextureID, TextureDimension, TextureFormat, unsigned char const*, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned int, TextureColorSpace) (TexturesMetal.mm:166)
    8 theappname 0x0000000100a9b630 UploadTexture2DData(UploadTextureDataParams const&) (Texture.cpp:583)
    9 theappname 0x0000000100a667b4 AsyncUploadManager::AsyncResourceUpload(GfxDevice&, int, int, TextureID) (AsyncUploadManager.cpp:433)
    10 theappname 0x0000000100a61498 GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&) (GfxDeviceWorker.cpp:810)
    11 theappname 0x0000000100dc0e90 GfxDeviceWorkerAutoreleasePoolProxy (GfxDeviceMetal.mm:2848)
    12 theappname 0x0000000100a62510 GfxDeviceWorker::Run() (GfxDeviceWorker.cpp:355)
    13 theappname 0x0000000100a5c89c GfxDeviceWorker::RunGfxDeviceWorker(void*) (GfxDeviceWorker.cpp:329)
    14 theappname 0x0000000100c5ee1c Thread::RunThreadWrapper(void*) (Thread.cpp:35)
    15 libsystem_pthread.dylib 0x000000018200d68c _pthread_body + 240
    16 libsystem_pthread.dylib 0x000000018200d59c _pthread_body + 0
    17 libsystem_pthread.dylib 0x000000018200acb4 thread_start + 4


    As far as I can tell these are Unity compiled files. Any idea what would cause this crash?

    Thanks!