How to reproduce:
- Open the attached project “IN-148540”
- Ensure that the new Hierarchy is enabled in Preferences
- Open the Test Runner window (Window → General → Test Runner)
- Run the “Entities Workspace → Unity.Entities.Editor.PerformanceTests.dll” tests
- Observe the crash
Reproducible with: 6000.5.0a7, 6000.5.7f1, 6000.6.0b7, 6000.7.0a4
Not reproducible with: 6000.3.21f1, 6000.5.0a6
Could not test with: 6000.0.81f1 (New Hierarchy is not available)
Reproducible on: macOS 26.5.2 (M4 Max)
Not reproducible on: No other environments tested
First few lines of the stack trace:
#0 0x00000103822ba0 in void HierarchyStream::WriteAll<Command, HierarchyNode, core::basic_string_ref<char>>(Command const&, HierarchyNode const&, core::basic_string_ref<char> const&)
#1 0x00000103822b28 in HierarchyCommandStream::SetName(HierarchyNode const&, core::basic_string_ref<char> const&, ScriptingExceptionPtr*)
#2 0x0000010383f4a8 in HierarchyCommandList_CUSTOM_SetName(void*, HierarchyNode const&, BindingsManagedSpan*)
#3 0x0000045df2cc60 in (wrapper managed-to-native) Unity.Hierarchy.HierarchyCommandList:SetName_Injected (intptr,Unity.Hierarchy.HierarchyNode&,UnityEngine.Bindings.ManagedSpanWrapper&) [
{0xa6e585d40}
+ 0x70] (0x45df2cbf0 0x45df2ccc4) [0x159c0aa80 - Unity Child Domain]
#4 0x0000045df2cad0 in Unity.Hierarchy.HierarchyCommandList:SetName (Unity.Hierarchy.HierarchyNode&,string) [
{0xa78171cf8}
+ 0x1c8] (0x45df2c908 0x45df2cb2c) [0x159c0aa80 - Unity Child Domain]