Search Issue Tracker
Fixed in 2022.1.X
Votes
0
Found in
2019.4
2020.3
2020.3.15f2
2021.1
2021.2
2022.1
Issue ID
1359247
Regression
No
Crash when entering Play Mode if a ScriptableObject Resource is loaded and unloaded while being displayed in the Inspector
Reproduction steps:
1. Open the attached "Test.zip" project
2. Select the "Test" ScriptableObject in Assets > Resources
3. Enter Play Mode
Expected result: Editor does not crash
Actual result: Editor crashes
Reproducible with: 2019.4.29f1 (no crash but MissingReferenceException errors), 2020.3.17f1, 2021.1.18f1, 2021.2.0b9, 2022.1.0a5
Obtained stack frames:
#0 ModuleMetadataBindings::GetModuleIncludeSettingForObject(Object*)
#1 ModuleMetadata_CUSTOM_GetModuleIncludeSettingForObject(ScriptingBackendNativeObjectPtrOpaque*)
#2 (wrapper managed-to-native) UnityEditor.ModuleMetadata:GetModuleIncludeSettingForObject (UnityEngine.Object) {0x7fc38f7a5230} + 0x5d (0x17ad20700 0x17ad207ed) [0x152248960 - Unity Child Domain]
#3 UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool) {0x7fc33d12c940} + 0x829 (0x1784a7000 0x1784a8753) [0x152248960 - Unity Child Domain]
#4 UnityEngine.UIElements.IMGUIContainer:DoMeasure (single,UnityEngine.UIElements.VisualElement/MeasureMode,single,UnityEngine.UIElements.VisualElement/MeasureMode) {0x7fc33d12cb70} + 0x313 (0x17ad0f4f0 0x17ad0fb54) [0x152248960 - Unity Child Domain]
Comments (1)
-
falsevac
May 19, 2022 21:40
This is still an active bug in 2021.3.2f1 LTS
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
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
- Files in the target folder are deleted without a proper warning when building an iOS project
Resolution Note (fix version 2022.1):
Fixed in 2022.1.0a11