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
- [iOS] WebCamDevice.availableResolutions returns a single resolution with width and height both 0 on some iOS devices
- Editor freezes when selecting a GameObject in Play Mode with a script containing a public byte array
- Saving moves Toggle Button Group buttons to the wrong place in hierarchy
- [iOS] Visual artifacts are visible when the camera's feed is rendered to a texture
- Error "cannot map expression to ps_4_0 instruction set" in Shader Graph preview when using the GATHER_RED_TEXTURE2D macro in custom hlsl function
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