Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Memory Overflow - MemoryLabel: Texture - No global Fix available

Discussion in 'General Graphics' started by TrickShotMLG, Jun 15, 2020.

  1. TrickShotMLG

    TrickShotMLG

    Joined:
    Jun 3, 2018
    Posts:
    28
    I have a problem with my game. In the editor everything works fine, but when I start the build it will crash and shows me this log:

    Could not allocate memory: System out of memory!
    Trying to allocate: 33570820B with 16 alignment. MemoryLabel: Texture
    Allocation happened at: Line:77 in C:\buildslave\unity\build\Runtime/Utilities/dynamic_array.h
    Memory overview

    [ ALLOC_DEFAULT ] used: 1153183385B | peak: 0B | reserved: 1209677337B
    [ ALLOC_TEMP_JOB_1_FRAME ] used: 0B | peak: 0B | reserved: 1048576B
    [ ALLOC_TEMP_JOB_2_FRAMES ] used: 0B | peak: 0B | reserved: 1048576B
    [ ALLOC_TEMP_JOB_4_FRAMES ] used: 2919726B | peak: 0B | reserved: 9437184B
    [ ALLOC_TEMP_JOB_ASYNC ] used: 0B | peak: 0B | reserved: 1048576B
    [ ALLOC_GFX ] used: 1873288341B | peak: 0B | reserved: 1885108389B
    [ ALLOC_CACHEOBJECTS ] used: 339412112B | peak: 0B | reserved: 367461092B
    [ ALLOC_TYPETREE ] used: 18780B | peak: 0B | reserved: 4194304B
    [ ALLOC_TEMP_THREAD ] used: 32768B | peak: 0B | reserved: 5537792B

    How can I fix this?
     
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,864
    Hi!
    On which platform does this happen?
    Your game seems to eat 1.2GB (ALLOC_DEFAULT) + 1.8GB (ALLOC_GFX) + 0.35GB (ALLOC_CACHEDOBJECTS) of memory at the point of crash, which might be too much if you're e.g. on mobile.
     
  3. TrickShotMLG

    TrickShotMLG

    Joined:
    Jun 3, 2018
    Posts:
    28
    I am on a windows desktop with about 32GB of Ram

    (Build is also for Windows)
     
  4. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,864
    hmmm
    how much video memory do you have?
     
  5. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,864
    also, does this happen with Editor open?
    what if you close it and run the build manually?
     
  6. TrickShotMLG

    TrickShotMLG

    Joined:
    Jun 3, 2018
    Posts:
    28
    I have 2x Asus Rog Strix GTX 1080 8GB (SLI)
     
  7. TrickShotMLG

    TrickShotMLG

    Joined:
    Jun 3, 2018
    Posts:
    28
    It happens only, when I run the build version of the game. In the editor everything works fine.
    This problem also persits on another computer
     
  8. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,864
    Then it sounds worth a bug report :)
     
  9. TrickShotMLG

    TrickShotMLG

    Joined:
    Jun 3, 2018
    Posts:
    28
    Is this correct now?
     
  10. Shaunyowns

    Shaunyowns

    Unity Technologies

    Joined:
    Nov 4, 2019
    Posts:
    328
    Hey, did you file a bug report in the end?
     
  11. TrickShotMLG

    TrickShotMLG

    Joined:
    Jun 3, 2018
    Posts:
    28
    I didnt know that. Thanks for your info. I will do this as soon as possible
     
  12. TrickShotMLG

    TrickShotMLG

    Joined:
    Jun 3, 2018
    Posts:
    28
    What should i write to reproduce my problem?
     
    BrandyStarbrite likes this.