Search Issue Tracker
Fixed in 2023.2.7f1
Fixed in 2023.2.X, 2023.3.X, 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
- “FocusController has unprocessed focus events.” warnings are thrown after adding iOS, tvOS or visionOS Build Profiles
- Holes and different colors appear on default Tree Materials after applying them to the Tree GameObject and undoing changes
- Error indicating that the Text Asset Importer hasn't been disposed properly is logged when switching Importer Type in a Focused Inspector
- Documentation installation shows "Install failed: Validation Failed" when installing Android Build Support module
- Error indicating that the Package Manifest Importer hasn't been disposed properly is logged when switching Importer Type in a Focused Inspector
Resolution Note (fix version 2023.3):
Editor crash if a compilation error happened during import from code altering compilation assets during activate
Resolution Note (fix version 2023.2):
Editor crash if a compilation error happened during import from code altering compilation assets during activate