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
- Any small change in UI Builder Inspector refreshes Editor Inspector
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- Global Scenes are not included in the Build when building multiple Build Profiles at the same time
Resolution Note (fix version 2.4.0-pre.2 - Collections):
Fixed in com.unity.collections@2.4.1-pre.2