Search Unity

Help Wanted (Native Crash - MemoryManager::VirtualAllocator::GetBlockInfoFromPointer(void const*))

Discussion in 'Unity Cloud Diagnostics' started by Flamez_Gamez, Jul 10, 2021.

  1. Flamez_Gamez

    Flamez_Gamez

    Joined:
    Jul 10, 2021
    Posts:
    2
    Help Needed.

    My Game is Crashing.
    only in Android OS 11

    I can't figure it out ... why this crash happens


    Native Crash - MemoryManager::VirtualAllocator::GetBlockInfoFromPointer(void const*)

    Native StackTrace:

    Thread 0 (crashed)
    0 libunity.so 0x0000007004d94fc0 MemoryManager::VirtualAllocator::GetBlockInfoFromPointer(void const*)
    1 libunity.so 0x0000007004d9aab4 ThreadsafeLinearAllocator::Contains(void const*) const
    2 libunity.so 0x0000007004d9a810 ThreadsafeLinearAllocator::TryDeallocate(void*)
    3 libunity.so 0x0000007004d94694 MemoryManager:: Deallocate(void*, MemLabelId, char const*, int)
    4 libunity.so 0x0000007004d94650 MemoryManager:: Deallocate(void*, MemLabelId, char const*, int)
    5 libunity.so 0x0000007004c9fc28 dynamic_array<unsigned char, 0ul>::~dynamic_array()
    6 libunity.so 0x0000007004f87338 gles::UploadTexture(ApiGLES*, GLESTexture&, GraphicsFormat, void const*, unsigned long, int, int, int, int, unsigned int, TextureUsageMode)
    7 libunity.so 0x00000070053dc000 GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&)
    8 libunity.so 0x00000070053e1a14 GfxDeviceWorker::RunExt(ThreadedStreamBuffer&)
    9 libunity.so 0x00000070053d8e10 GfxDeviceWorker::RunGfxDeviceWorker(void*)
    10 libunity.so 0x0000007004ea5950 Thread::RunThreadWrapper(void*)
    11 libc.so 0x00000070f93a4188 <system symbols missing>
    12 libc.so 0x00000070f93439d0 <system symbols missing>



    Unity Version
    2019.4.12f1

    OS Version
    Android OS 11 / API-30


    CPU
    ARM64 FP ASIMD AES





     
    Last edited: Jul 12, 2021
  2. LokoSolo

    LokoSolo

    Joined:
    Aug 3, 2018
    Posts:
    4
  3. Flamez_Gamez

    Flamez_Gamez

    Joined:
    Jul 10, 2021
    Posts:
    2
  4. wanorde23

    wanorde23

    Joined:
    Jan 31, 2019
    Posts:
    10
    Did you ever figure this out?
     
  5. benjamin_thegoodevil

    benjamin_thegoodevil

    Joined:
    Aug 5, 2020
    Posts:
    20
    Gonna bump this one.

    We had to update one of our apps due to the new google API standards.
    Since the update the amount of crashes happening because of this issue is skyrocketing.
    Especially on android 13.

    Code (CSharp):
    1. backtrace:
    2.   #00  pc 0x00000000003ab9c8  */lib/arm64/libunity.so (MemoryManager::VirtualAllocator::GetBlockInfoFromPointer(void const*)) (BuildId: 7c57581316f71041)
    3.   #01  pc 0x00000000003a8c98  */lib/arm64/libunity.so (DualThreadAllocator<DynamicHeapAllocator>::Contains(void const*) const) (BuildId: 7c57581316f71041)
    4.   #02  pc 0x00000000003a8a88  */lib/arm64/libunity.so (DualThreadAllocator<DynamicHeapAllocator>::TryDeallocate(void*)) (BuildId: 7c57581316f71041)
    5.   #03  pc 0x00000000003aafb8  */lib/arm64/libunity.so (MemoryManager::Deallocate(void*, MemLabelId, char const*, int)) (BuildId: 7c57581316f71041)
    6.   #04  pc 0x000000000213a824  */lib/arm64/libil2cpp.so (AnimationCurve_Finalize_m803AC16166EE497C4DFA996B15692D91F4D04C3C) (BuildId: 2072d0e803493918)
    7.   #05  pc 0x0000000000ef84f0  */lib/arm64/libil2cpp.so (il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**)) (BuildId: 2072d0e803493918)
    8.   #06  pc 0x0000000000ef843c  */lib/arm64/libil2cpp.so (il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**)) (BuildId: 2072d0e803493918)
    9.   #07  pc 0x0000000000f65d1c  */lib/arm64/libil2cpp.so (il2cpp::gc::GarbageCollector::RunFinalizer(void*, void*)) (BuildId: 2072d0e803493918)
    10.   #08  pc 0x0000000000f9db64  */lib/arm64/libil2cpp.so (GC_invoke_finalizers) (BuildId: 2072d0e803493918)
    11.   #09  pc 0x0000000000f65c64  */lib/arm64/libil2cpp.so (il2cpp::gc::FinalizerThread(void*)) (BuildId: 2072d0e803493918)
    12.   #10  pc 0x0000000000f57dd8  */lib/arm64/libil2cpp.so (il2cpp::os::Thread::RunWrapper(void*)) (BuildId: 2072d0e803493918)
    13.   #11  pc 0x0000000000f53fc8  */lib/arm64/libil2cpp.so (il2cpp::os::ThreadImpl::ThreadStartWrapper(void*)) (BuildId: 2072d0e803493918)
    14.   #12  pc 0x00000000000eb828  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64)
    15.   #13  pc 0x000000000008ba48  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
    Does anyone here/@Unity have an idea what we should do? Sadly we can't repdroduce this problem.

    I'll go through unity patchnotes and hopefully find something there...
    Here are some additional informations:

    Unity-Version: 2022.3.2f1
    API-Levels: 22+
    Target SDK: 33
     

    Attached Files:

    Last edited: Oct 24, 2023