Search Issue Tracker
Fixed
Fixed in 2023.2.7f1, 2023.3.0b3
Votes
0
Found in
2023.2.4f1
2023.3.0a18
Issue ID
UUM-58299
Regression
Yes
Crash on TryToRegisterMonoScriptToHashMap when importing a specific .unitypackage
Reproduction steps:
1. Create a new project
2. Import the attached .unitypackage “ReproPackage”
Expected result: The package is imported
Actual result: The Editor crashes
Reproducible with: 2023.2.0a14, 2023.2.4f1, 2023.3.0a18
Not reproducible with: 2021.3.33f1, 2022.3.15f1, 2023.2.0a13
Reproducible on: macOS 14.1.1 (M1 Max), Windows 10
Not reproducible on: No other environment tested
First few lines of stack trace:
#0 0x000001052cdd84 in TryToRegisterMonoScriptToHashMap(core::hash_map<MonoScriptKey, PPtr<MonoScript>, core::hash<MonoScriptKey>, std::__1::equal_to<MonoScriptKey>>&, MonoScript)
#1 0x000001052cdd0c in MonoScriptManager::UpdateMonoScriptHashMap()
#2 0x000001066f4e90 in ScriptingInitializer::FinalizeReload()
#3 0x0000010673a8cc in RefreshInternalV2(AssetDatabase::UpdateAssetOptions, ScanFilter const&, InternalRefreshFlagsV2)
#4 0x0000010671d5f4 in StopAssetImportingV2Internal(AssetDatabase::UpdateAssetOptions, InternalRefreshFlagsV2, ScanFilter const, char const*)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note (fix version 2023.3.0b3):
Editor crash if a compilation error happened during import from code altering compilation assets during activate
Resolution Note (fix version 2023.2.7f1):
Editor crash if a compilation error happened during import from code altering compilation assets during activate