Search Issue Tracker
Fixed
Votes
0
Found in
2022.3.12f1
2023.1.19f1
2023.2.0b16
2023.3.0a12
Issue ID
UUM-54961
Regression
Yes
Crash on block_remove when continuously instantiating and destroying a prefab
Reproduction steps:
1. Open the attached “repro-project”
2. Open the “Assets/Scenes/SampleScene.unity“ scene
3. Enter Play Mode
4. Observe the crash
Reproducible with: 2022.2.9f1, 2022.3.12f1, 2023.1.19f1, 2023.2.0b16, 2023.3.0a12
Not reproducible with: 2021.3.32f1, 2022.2.8f1
Reproduced on: Windows 10 Pro
Not reproducible on: No other environment tested
Note: The script causing the crash repeatedly creates a GameObject, pauses for 0.2 seconds, and then destroys it
First few lines of the stack traces:
0x00007FF658687192 (Unity) block_remove
0x00007FF6586870E8 (Unity) block_merge_next
0x00007FF6586878BC (Unity) tlsf_realloc_align_inplace
0x00007FF65645720E (Unity) DynamicHeapAllocator::Reallocate
0x00007FF656460BE5 (Unity) DualThreadAllocator<DynamicHeapAllocator>::Reallocate
0x00007FFE1695936A (Unity) remove_free_block
0x00007FFE169590B3 (Unity) block_locate_free
0x00007FFE1695977C (Unity) tlsf_memalign
0x00007FFE145DC08B (Unity) DynamicHeapAllocator::Allocate
0x00007FFE145E2B40 (Unity) DynamicHeapAllocator::Reallocate
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Memory leak when a lot of UI elements are spawned and despawned
- Warnings are not logged in the Console window when using external code analyzers
- Errors “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 288“ appear constantly when Prefab is open
- Crash on PPtr<Shader>::operator or NullException errors spammed in console when calling Dispose() on null GraphicsBuffer with baked Reflection Probes
- “EndRenderPass: Not inside a Renderpass” and other Render Graph errors in the Player when Render Graph is enabled and Overlay UI is used
Resolution Note:
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-54962