Search Issue Tracker
Fixed
Fixed in 2.4.0-pre.2 - Collections
Votes
0
Found in [Package]
2.4.X
Issue ID
ECSB-753
Regression
No
Crash on block_remove when using a custom allocator and Native Collections
Reproduction steps:
1. Open the attached “Allocator Crash Example” project
2. Open “SampleScene”
3. Enter Play Mode
4. Observe the crash
Reproducible with: 2.1.4, 2.2.1, 2.3.0-pre.3 (2023.1.20f1, 2023.2.0f1)
Reproducible on: macOS Sonoma 14.0 (Intel), Windows 10 (by the reporter)
Not reproducible on: no other environment tested
Notes:
- Crash happens in “CrashExample.cs” script
- Also reproducible in Standalone Player
first few lines of Stack Trace:
{{0x00007FF83E9D9992 (Unity) block_remove }}
{{0x00007FF83E9D9DF4 (Unity) tlsf_free }}
{{0x00007FF83C7A86B5 (Unity) DynamicHeapAllocator::Deallocate }}
{{0x00007FF83C7B969F (Unity) DualThreadAllocator<DynamicHeapAllocator>::TryDeallocate }}
{{0x00007FF83C7A8D58 (Unity) MemoryManager::Deallocate}}
{{#0 0x0000010b03efe0 in block_merge_next }}
{{#1 0x0000010b03eebf in tlsf_free }}
{{#2 0x00000108a23112 in DynamicHeapAllocator::Deallocate(void*) }}
{{#3 0x00000108a31ab1 in DelayedPointerDeletionManager::CleanupPendingMainThreadPointers() }}
{{#4 0x00000108a31ee8 in DualThreadAllocator<DynamicHeapAllocator>::Allocate(unsigned long, int)}}
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
- [VFX] Missing Expand Toggle with Output Slot
- [OpenGLES][XR] Zooming in on the camera's URP opaque texture causes "double vision" on Quest in OpenGLES3
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
Resolution Note (fix version 2.4.0-pre.2 - Collections):
Fixed in com.unity.collections@2.4.1-pre.2