Search Unity

IPhone 7 Crash (Incremental GC?) - KERN_INVALID_ADDRESS at 0x0000000000000000

Discussion in 'iOS and tvOS' started by RaventurnPatrick, Sep 11, 2019 at 11:32 PM.

  1. RaventurnPatrick

    RaventurnPatrick

    Joined:
    Aug 9, 2011
    Posts:
    34
    We get random crashes on iPhone 7 in our game:

    Exception Type: EXC_BAD_ACCESS (SIGSEGV)
    Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
    VM Region Info: 0 is not in any region. Bytes before following region: 4328701952
    REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
    UNUSED SPACE AT START
    --->
    __TEXT 000000010202c000-0000000102030000 [ 16K] r-x/r-x SM=COW ...p/realcoaster


    main thread: (same in all crashes)
    0 libsystem_kernel.dylib 0x00000001b8a78718 swtch_pri + 8
    1 libsystem_pthread.dylib 0x00000001b8cb3d98 sched_yield + 16 (pthread.c:1973)
    2 --------------- 0x0000000102c2012c GC_lock + 204 (pthread_support.c:2099)
    3 --------------- 0x0000000102c201e0 GC_gcj_malloc + 84 (gcj_mlc.c:210)
    4 --------------- 0x0000000102c5511c il2cpp::vm::Object::NewAllocSpecific(Il2CppClass*) + 88 (Object.cpp:77)

    Thread xx Crashed:
    0 realcoaster 0x0000000102c4a75c il2cpp::eek:s::FastMutex::Lock() + 0 (Mutex.cpp:64)
    1 realcoaster 0x0000000102c67a44 il2cpp::vm::Thread::SetState(Il2CppThread*, il2cpp::vm::ThreadState) + 40 (Mutex.h:78)
    2 realcoaster 0x0000000102c68140 il2cpp::vm::ThreadStart(void*) + 72 (Thread.cpp:692)
    3 realcoaster 0x0000000102c4a1f0 il2cpp::eek:s::Thread::RunWrapper(void*) + 88 (Thread.cpp:175)
    4 realcoaster 0x0000000102c4bb5c il2cpp::eek:s::ThreadImpl::ThreadStartWrapper(void*) + 36 (ThreadImpl.cpp:104)
    5 libsystem_pthread.dylib 0x00000001b8cb3164 _pthread_start + 128 (pthread.c:900)
    6 libsystem_pthread.dylib 0x00000001b8cb6aac thread_start + 8

    So it seems to crash on a new object allocation? We have the new incremental gc enabled, this seems related? Can anyone tell us more about this crash, should we disable incremental gc, or could it have a different reason?