Search Issue Tracker
Active
Votes
0
Found in [Package]
1.4.2 - Entities
Issue ID
ECSB-1801
Regression
No
Crash on DomainUnloadAutoFree::Forget when allocating or disposing certain-sized nested UnsafeList collections
How to reproduce:
1. Open the attached “CrashRepro“ project
2. Enter Play Mode
3. Leave Play Mode
Reproducible with: 1.4.0-pre.4 (6000.0.61f1), 1.4.2 (6000.0.61f1, 6000.2.10f1, 6000.3.0b8, 6000.4.0a3)
Reproducible on: macOS 15.6.1 Sequoia (Intel), Windows 10 (by user)
Not reproducible on: No other environment tested
Note: In the “TstCrash” Script, changing the size variable from “64 * 64 * 16“ to “128 * 128 * 16”, will cause Unity to crash when calling “OnCreate“ instead of “OnDestroy“
First few lines of the stack trace:
#0 0x00000107322018 in DomainUnloadAutoFree::Forget(void)
#1 0x00000107cf644e in UnsafeUtility::Free(void, NativeCollection::Allocator, ScriptingExceptionPtr)
#2 0x00000107cf52b3 in UnsafeUtility_CUSTOM_FreeTracked(void, NativeCollection::Allocator)
#3 0x000001ef407220 in Unity.Collections.AllocatorManager, Unity.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.FreeBlock<Unity.Collections.AllocatorManager+AllocatorHandle, Unity.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null>(Unity.Collections.AllocatorManager+AllocatorHandle&, Unity.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null t, Unity.Collections.AllocatorManager+Block&, Unity.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null block) -> System.Void, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089_d8a28626764aa8c00b5c3f7ed60e2592 from Unity.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
#4 0x000001ef406772 in TstCrash.__codegen__OnDestroy(System.IntPtr self, System.IntPtr state) -> void_7240d4da432ce60841c1e72afc88f407 from Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android] Stage information is not logged when Log Shader Compilation is enabled
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
- [macOS] Library folder of the opened project can be deleted which leads to the crash
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
Add comment