Steps to reproduce:
- Create a new 3D URP project
- Install the Entities package (com.unity.entities)
- Go to Unity > Settings > Preferences > General
- Change the "Editor Font" property to a different option
- Observe the Console
Actual results: A "Leak Detected: Persistent allocates N individual allocations" log is thrown in the Console
Expected results: No leak occurs
Reproducible with versions: 6000.6.0b1, 6000.6.0b4, 6000.7.0a2
Not reproducible with versions: 6000.5.4f1, 6000.6.0a7
Tested on (OS): macOS 26.5
Notes:
- The same leak callstack (SceneSectionStreamingSystem.CreateStreamWorld → EntityNameStoreAccess) was also observed via an unrelated trigger (entering Play Mode after a SubScene), suggesting the root cause is a general issue with disposing/recreating Entities stream worlds rather than something specific to the Editor Font code path
- Some of the callstacks: Unity.Entities.EntityNameStoreAccess:.ctor (Unity.Entities.EntityComponentStore*)
Unity.Entities.EntityComponentStore:Create (...)
Unity.Scenes.SceneSectionStreamingSystem:CreateStreamWorld (int)
Unity.Scenes.SceneSectionStreamingSystem:OnCreate ()