How to reproduce:
1. Open the attached “IN-144320” project
2. Open the “NPCScene”
3. Enter Play mode
4. Close the Editor
5. Observe the crash
Reproducible with: 6000.0.43f1, 6000.0.76f1, 6000.3.17f1, 6000.4.10f1, 6000.5.0b11, 6000.6.0a6
Could not test with: 6000.0.42f1 (could not solve errors from downgrading)
Reproduced on: Windows 11
Not reproduced on: No other environment tested
Note: Sometimes the crash also occurs when entering Play mode
First few lines of the stack trace:
0x00007FFE4FBC746D (Unity) MemoryManager::TryDeallocateWithLabel
0x00007FFE4FBC8D23 (Unity) free_alloc_internal
0x00007FFE50B8790C (Unity) core::hash_map<UnityGUID,core::hash_set<EntityId,core::hash<EntityId>,std::equal_to<EntityId> >,core::hash<UnityGUID>,std::equal_to<UnityGUID> >::~hash_map<UnityGUID,core::hash_set<EntityId,core::hash<EntityId>,std::equal_to<EntityId> >,core::hash<UnityGUID>,std::equal_to<UnityGUID> >
0x00007FFE519726A2 (Unity) `eh vector destructor iterator'
0x00007FFE50B87993 (Unity) LoadedAssetObjectsTracker::~LoadedAssetObjectsTracker
or:
0x00007FFE4FC8746D (Unity) MemoryManager::TryDeallocateWithLabel
0x00007FFE4FC88D23 (Unity) free_alloc_internal
0x00007FFE4FF5DB6A (Unity) b2Free
0x00007FFE4FF94367 (Unity) b2DestroyBitSet
0x00007FFE4FF728FE (Unity) b2DestroyWorld
or:
0x00007FFAFCF6E740 (Unity) MemoryManager::TryDeallocateWithLabel
0x00007FFAFCF70003 (Unity) free_alloc_internal
0x00007FFAFC0EA10A (Unity) dense_hashtable<std::pair<ShaderLab::Program::LocalKeywordStateAndHash const ,ShaderLab::Program::SubProgramLookupEntry>,ShaderLab::Program::LocalKeywordStateAndHash,ShaderLab::Program::LocalKeywordStateHashFunctor,dense_hash_map…
0x00007FFAFC0EA2C7 (Unity) ShaderLab::Program::~Program
0x00007FFAFC0F2FF6 (Unity) ShaderLab::ShaderState::~ShaderState