Reproduction steps:
1. Open the attached “repro-project“
2. In the “Enter Safe Mode?“ pop-up select “Ignore“
3. Observe the project opening with a “Fatal Error!“ pop-up
4. In the pop-up select “Quit“
5. Observe the crash
Reproducible with: 2022.3.6f1, 2022.3.17f1
Not reproducible with: 2021.3.34f1, 2022.3.5f1, 2023.1.0a1, 2023.2.5f1, 2023.3.0b2
Reproduced on: Windows 10
Not reproducible on: No other environment tested
Notes:
1. The Editor does not crash in Safe Mode
2. The “Fatal Error!“ pop-up displays a memory allocation error message, indicating a system out of memory condition (“Could not allocate memory: System out of memory! Trying to allocate: 1976818346745B with 16 alignment. MemoryLabel: TempOverflow Allocation happened at: Line:525 in C:\build\output\unity\unity\Runtime\Core\Containers\StringStorageDefault.h Memory overview“)
First few lines of the stack traces:
0x00007ff7b4c820fb (Unity) core::StringStorageDefault<char>::assign
0x00007ff7b6ee97b6 (Unity) GUIDPersistentManagerV2::PathIDToFileIdentifierInternal
0x00007ff7b6ee95fe (Unity) GUIDPersistentManagerV2::OnRegisterAssetType
0x00007ff7b5b28a43 (Unity) PersistentManager::MakeObjectsPersistent
0x00007ff7b5b284e1 (Unity) PersistentManager::MakeObjectPersistentAtFileID
0x00007FF8D1DACF19 (KERNELBASE) RaiseException
0x00007FF7EA7CA7DE (Unity) LaunchBugReporter
0x00007FF7EA196BBB (Unity) EditorMonoConsole::LogToConsoleImplementation
0x00007FF7EA19749D (Unity) EditorMonoConsole::LogToConsoleImplementation
0x00007FF7EAE4948F (Unity) DebugStringToFilePostprocessedStacktrace