Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Nominations have been announced for this years Unity Awards. Celebrate the wonderful projects made by your peers this year and get voting! Vote here!
    Dismiss Notice
  5. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    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:
    41
    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
  2. lblast

    lblast

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

    lblast

    Joined:
    Dec 1, 2016
    Posts:
    41
    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.