Search Issue Tracker

Active

Fixed in 2023.1.18f1, 2023.2.0b15, 2023.3.0a5

Under Consideration for 2022.3.X

Votes

1

Found in

2022.3.5f1

2023.1.4f1

2023.2.0a23

2023.3.0a1

Issue ID

UUM-43709

Regression

No

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

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.
    https://forum.unity.com/threads/android-build-project-freezes-after-5-minutes-with-playerloop-in-profiler-at-60-000-ms.863143/page-7#post-9777687

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.