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
- Skinned Mesh Renderer with multiple Animator Components does not render when "Optimize Game Objects" is enabled
- [iOS]Certain characters are not displayed when using iOS devices with 18 OS and newer
- Trees do not render in 'Unity Terrain - URP Demo Scene'
- Silent crash when clicking in Scene View in a specific project
- The Player renders black on a Quest headset when MSAA, Post Processing, and Spacewarm depth submission are enabled
Resolution Note (fix version 2.4.0-pre.2 - Collections):
Fixed in com.unity.collections@2.4.1-pre.2