Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Android IL2CPP build crashes in MetadataCache.cpp

Discussion in 'Editor & General Support' started by brgishy, Aug 13, 2019 at 4:49 PM.

  1. brgishy

    brgishy

    Joined:
    Jul 9, 2013
    Posts:
    19
    I'm seeing a very weird crashing bug. The first time I install my app everything works great, but if I uninstall the app and install a new build, the app will crash instantly at MetadataCache.cpp line 756. Has anyone ran into this before?

    Logcat Output
    08/13 08:17:52.456 10220 10272 Fatal libc: C:\Program Files\Unity\Hub\Editor\2019.2.0f1\Editor\Data\il2cpp\libil2cpp\vm\MetadataCache.cpp:756: static Il2CppMethodPointer il2cpp::vm::MetadataCache::GetMethodPointer(const Il2CppImage *, uint32_t): assertion "rid <= image->codeGenModule->methodPointerCount" failed
    08/13 08:17:52.457 10220 10272 Error CRASH: signal 6 (SIGABRT), code -6 (?), fault addr --------
    08/13 08:17:52.457 10220 10272 Error CRASH: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    08/13 08:17:52.457 10220 10272 Error CRASH: Build type 'Development', Scripting Backend 'il2cpp', CPU 'armeabi-v7a'
    08/13 08:17:52.457 10220 10272 Error CRASH: Build fingerprint: 'google/taimen/taimen:9/PQ3A.190801.002/5670241:user/release-keys'
    08/13 08:17:52.457 10220 10272 Error CRASH: Revision: 'rev_10'
    08/13 08:17:52.457 10220 10272 Error CRASH: pid: 10220, tid: 10272, name: UnityMain >>> com.BigBlindInteractive.TienLen <<<
    08/13 08:17:52.457 10220 10272 Error CRASH: r0 00000000 r1 00002820 r2 00000006 r3 00000008
    08/13 08:17:52.457 10220 10272 Error CRASH: r4 000027ec r5 00002820 r6 d623e86c r7 0000010c
    08/13 08:17:52.457 10220 10272 Error CRASH: r8 d623f404 r9 d623f34c sl d623f388 fp d623e8b0
    08/13 08:17:52.457 10220 10272 Error CRASH: ip d623e808 sp d623e858 lr f38edfe9 pc f38e5e36 cpsr d9fe8100
     
  2. brgishy

    brgishy

    Joined:
    Jul 9, 2013
    Posts:
    19
    I did find out that if I go into my app settings and clear all storage related to the app, that will get the app running again.
     
  3. MTeaBB

    MTeaBB

    Joined:
    Sep 8, 2017
    Posts:
    1
    Yeah seeing this issue and it's stopping us from making a certification build.
     
  4. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    3,874
    @brgishy:

    Can you submit a bug report for this issue? This behavior looks to be wrong, I think there might be a bug on the Unity side here.