Search Issue Tracker

Duplicate

Votes

0

Found in

2020.2.0a17

2020.2.2f1

2021.1.0a1

Issue ID

1328344

Regression

Yes

Crash on ModuleMetadataBindings::GetModuleIncludeSettingForObject when Removing/Adding SerializeField from script

Scene Management

-

Full title: Crash on ModuleMetadataBindings::GetModuleIncludeSettingForObject when Removing/Adding SerializeField from script attached to Prefab that is shown in Inspector

Reproduction steps:
1. Open the user's attached project
2. Focus the Prefabs/Player prefab in the Inspector
3. Click on "Edit Script" in the "Player_Setup" component
4. Add the following lines to line 9 in the "Player_Setup" script:
[SerializeField]
float testFloat = 5f;
5. Save the script, then click on "Player" prefab in the Editor to go back into the editor with the prefab still open in the Inspector

Expected result: Script compiles and Editor is focused
Actual result: Script compiles and Editor crashes

Reproducible with: 2020.2.0a17, 2020.2.5f1, 2021.1.0a1, 2021.1.0b7
Not reproducible with: 2018.4.34f1, 2019.4.25f1, 2020.2.0a16, 2020.2.6f1, 2020.3.5f1, 2021.1.0b8, 2021.2.0a5, 2021.2.0a14
Could not test with: 2021.2.0a1, 2021.2.0a4 (Scripts are missing after attaching them to objects)

Stack trace:
#0 0x00000106be42a2 in ModuleMetadataBindings::GetModuleIncludeSettingForObject(Object*)
#1 0x00000108242021 in ModuleMetadata_CUSTOM_GetModuleIncludeSettingForObject(ScriptingBackendNativeObjectPtrOpaque*)
#2 0x0000018f11ff2d in (wrapper managed-to-native) UnityEditor.ModuleMetadata:GetModuleIncludeSettingForObject (UnityEngine.Object) {0x7fd4e4796bf8} + 0x5d (0x18f11fed0 0x18f11ffbd) [0x15e348960 - Unity Child Domain]
#3 0x0000018efc6cf9 in UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool) {0x7fd4ea70bc88} + 0x829 (0x18efc64d0 0x18efc7c23) [0x15e348960 - Unity Child Domain]
#4 0x0000018fa64d23 in UnityEngine.UIElements.IMGUIContainer:DoMeasure (single,UnityEngine.UIElements.VisualElement/MeasureMode,single,UnityEngine.UIElements.VisualElement/MeasureMode) {0x7fd4ea70beb8} + 0x313 (0x18fa64a10 0x18fa65074) [0x15e348960 - Unity Child Domain]
#5 0x0000018fa648e6 in UnityEngine.UIElements.VisualElement:Measure (UnityEngine.Yoga.YogaNode,single,UnityEngine.Yoga.YogaMeasureMode,single,UnityEngine.Yoga.YogaMeasureMode) {0x7fd4ea72b740} + 0x96 (0x18fa64850 0x18fa649f4) [0x15e348960 - Unity Child Domain]

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.