Search Unity

Unity Allocation 0x0xc00002d0 Already Registered

Discussion in 'Android' started by Adam_Weesner, May 23, 2021.

  1. Adam_Weesner

    Adam_Weesner

    Joined:
    Aug 6, 2020
    Posts:
    18
    I'm using Unity 2020.1.17f1. Occasionally, upon either booting into the game or playing around for a few minutes, I'm greeted with a hard crash and this error message:

    Code (CSharp):
    1. 2021/05/23 00:31:30.926 31768 31833 Error Unity allocation 0x0xc00002d0 already registered @ ./Runtime/GfxDevice/opengles/DataBuffersGLES.cpp:l229 size 8192; now calling from ./Runtime/GfxDevice/opengles/DataBuffersGLES.cpp:l229 size 4096?
    2. 2021/05/23 00:31:30.926 31768 31833 Error Unity (Filename: ./Runtime/Allocator/MemoryManager.cpp Line: 1943)
    Those two lines are repeated continuously in the log. This does not happen in the editor, only on my Android device (an LG v35). Couldn't find documentation on the error code, but I assume this is a memory leak? Just asking for confirmation and possible explanation. Attached is an image of my memory map.

    Let me know if you require any additional information. Cheers!
     

    Attached Files:

  2. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    479
    This error means that Unity‘s OpenGL ES backend is trying to register (tell the memory manager about an „external“ allocation) a buffer allocation multiple times.
    This is not necessarily a leak (i.e. we forgot to free a buffer) but it‘s an inconsistency and a bug. If you report one then we can have a look.
     
  3. trooper

    trooper

    Joined:
    Aug 21, 2009
    Posts:
    748
    @Adam_Weesner does this happen on Mono or IL2CPP? I've got it happening on a build we are trying to lower memory usage but seems to only happen in Mono builds frequently.
     
  4. chenjien

    chenjien

    Joined:
    Jul 28, 2021
    Posts:
    2
    [./Runtime/Allocator/MemoryManager.cpp line -781419768]
    2022-07-28 16:43:55.593 29049-29124/ E/Unity: allocation 0x0xc000000000000332 already registered @ ./Runtime/GfxDevice/opengles/DataBuffersGLES.cpp:233 size 80; now calling from ./Runtime/GfxDevice/opengles/DataBuffersGLES.cpp:233 size 4096?
    UnityEngine.Rendering.Universal.UniversalRenderPipeline:RenderSingleCamera(ScriptableRenderContext, CameraData, Boolean)
    UnityEngine.Rendering.Universal.UniversalRenderPipeline:RenderCameraStack(ScriptableRenderContext, Camera)
    UnityEngine.Rendering.Universal.UniversalRenderPipeline:Render(ScriptableRenderContext, List`1)
    UnityEngine.Rendering.RenderPipelineManager:DoRenderLoop_Internal(RenderPipelineAsset, IntPtr, List`1)

    URP unity 2021
    Is there a solution?
     
  5. ZenTeapot

    ZenTeapot

    Joined:
    Oct 19, 2014
    Posts:
    65
    2023/02/01 15:53:40.171 22332 22405 Error Unity allocation 0x0xc000000000000000 already registered @ ./Runtime/GfxDevice/opengles/DataBuffersGLES.cpp:233 size 4096; now calling from ./Runtime/GfxDevice/opengles/DataBuffersGLES.cpp:233 size 18240?
    2023/02/01 15:53:40.173 22332 22405 Error Unity allocation 0x0xc000000000000000 already registered @ ./Runtime/GfxDevice/opengles/DataBuffersGLES.cpp:233 size 4096; now calling from ./Runtime/GfxDevice/opengles/DataBuffersGLES.cpp:233 size 4096?

    Getting this with 2021.3.15f after prolonged spawning of a large number of game objects. Any news?