Reproduction steps:
1. Create a new project
2. Install Entities package (Window > Package Management > Package Manager)
3. Window > Entities > Systems
4. Click on kebab menu and enable "Show All Worlds" option in the Systems window
5. Click on any item in the Systems window tree view
6. Trigger domain reload (e.g. Create > MonoBehaviour Script)
7. Click on any item in the Systems window tree view again
8. Observe the Console
Actual result: "ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection." error is thrown on every click
Expected result: No errors or warnings are thrown
Reproducible with: 6.5.0 (6000.6.0a7), 6.6.0 (6000.6.0b7), 6.7.0 (6000.7.0a4)
Not reproducible with: 1.4.8 (6000.0.81f1, 6000.3.21f1), 6.5.0 (6000.5.7f1, 6000.6.0a6)
Reproduced on: macOS Tahoe 26.5 (M4)
Note:
- Issue is not reproducible with “Show Player Loop” enabled but is reproducible with “Show Full Player Loop” enabled in versions that don’t have "Show All Worlds" option