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
- "Curve" window workspace doesn't update the scale to match the selected curve preset unless reopened
- StackOverflowException occurs and tests fail to load when the Test Runner window is opened while System.Windows.Forms.dll and System.Deployment.dll are present in the project
- Some UXML Template Asset foldouts appear enabled when all fields inside are disabled
- URP Terrain Demo crash on burst_signal_handler after Generating lighting
- Project window button icons are poorly visible and their shades differ in Light theme
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