Search Issue Tracker


Fixed in 2022.3.32f1, 2023.1.18f1, 2023.2.0b15, 2023.3.0a5



Found in





Issue ID




High memory usage and crash on DynamicHeapAllocator::CreateTLSFBlock when opening project with Sprite Atlas V2 enabled



Reproduction steps:
1. Open the attached project “CrashRepro“
2. Observe memory usage

Expected result: Memory usage is normal
Actual result: Almost all of the memory gets used up at some point and can crash

Reproducible with: 2021.2.0b1, 2022.1.0a1, 2022.1.24f1, 2022.3.5f1, 2023.1.4f1, 2023.2.0a23
Not reproducible with: 2021.3.28f1

Reproducible on: Windows 10

Note: The crash is very inconsistent, but memory consumption always increases about halfway through the project loading

First few lines of stack trace:

{noformat}[00] DynamicHeapAllocator::CreateTLSFBlock
[01] DynamicHeapAllocator::Allocate
[02] DualThreadAllocator<DynamicHeapAllocator>::Allocate
[03] MemoryManager::Allocate
[04] malloc{noformat}

  1. Resolution Note (fix version 2023.3.0a5):

    Fix for this issue will be available on Unity 2023.3.0a5 and above

  2. Resolution Note (fix version 2023.2.0b15):

    Fix for this issue is available on Unity 2023.2.0b15 and above

  3. Resolution Note (fix version 2023.1.18f1):

    Fix for this issue is available on Unity 2023.1.18f1 and above

  4. Resolution Note (fix version 2022.3.32f1):

    Fix for this issue is available on Unity 2022.3.32f1 and above

Comments (1)

  1. wanxingame

    Apr 18, 2024 02:02

    2022.3.24f1 not fixed,but it's not crashing when opening. it's running on android device for a few of hours. this is the same problem.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.