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

App Crashes on Startup

Discussion in 'iOS and tvOS' started by lblast, Nov 30, 2018.

  1. lblast

    lblast

    Joined:
    Dec 1, 2016
    Posts:
    68
    Hi there,

    I've been having a problem with one of our Unity builds running on iOS. As soon as I launch the app it crashes. Our app does work on Android.

    I made a development build and logged the crash with XCode, as well as using XCode instruments to get a log.

    From the crash log I get:

    Exception Type: EXC_BAD_ACCESS (SIGILL)
    Exception Subtype: KERN_PROTECTION_FAILURE at 0x02340fec
    Termination Signal: Illegal instruction: 4
    Termination Reason: Namespace SIGNAL, Code 0x4
    Terminating Process: myapplication[318]
    Triggered by Thread: 0

    Thread 0 Crashed:
    0 myapplication 0x00b03f76 TypeManager::Builder::TraverseDepthFirst(TypeManager::Builder::Node const&, unsigned int) + 10764150 (TypeInfoManager.cpp:296)
    1 myapplication 0x00b03fa4 TypeManager::Builder::TraverseDepthFirst(TypeManager::Builder::Node const&, unsigned int) + 10764196 (TypeInfoManager.cpp:298)

    When looking at the Instrument log I see:
    ClassID 100000 (int) conflicts with that of another class (int). Please resolve the conflict.
    (Filename: /Users/builduser/buildslave/unity/build/Runtime/BaseClasses/TypeInfoManager.cpp Line:243)

    This continues for every class in our game such as Texture2D, Sprite, AnimatorController, etc...

    I have added the full crash log, but not the XCode Instrument log.
     

    Attached Files:

    Last edited: Nov 30, 2018
    wavekeyboard likes this.
  2. lblast

    lblast

    Joined:
    Dec 1, 2016
    Posts:
    68
    Any insights?
     
  3. lblast

    lblast

    Joined:
    Dec 1, 2016
    Posts:
    68
    I have resolved this issue. It was introduced to our iOS builds when we imported an SDK. The SDK contained some native code that inherited from UnityAppController; this conflicted with some of our own native code that also inherited from UnityAppController.
     
  4. francopenizzotto

    francopenizzotto

    Joined:
    Feb 2, 2020
    Posts:
    5
    I have the same issue with two different apps built with Unity. How did not catch the idea way in which you solve it?
     
    LowPoly42Games likes this.
  5. LowPoly42Games

    LowPoly42Games

    Joined:
    Jul 22, 2019
    Posts:
    2
    Same issue. Any one have some ideas?
     
  6. sgoncharme

    sgoncharme

    Joined:
    Apr 16, 2017
    Posts:
    2
    You just register your types twice. See the code how your unity runtime inits