Search Issue Tracker
Fixed in 2020.2.X
Votes
2
Found in
2020.2.0a17
2020.2.0a18
Issue ID
1266041
Regression
Yes
Crash on ModuleMetadata_CUSTOM_GetModuleIncludeSettingForObject when redrawing a serialized property on a Prefab in Inspector
Reproduction steps:
1. Open the attached project ("1266041.zip")
2. Open "CrashScript.cs"
3. Select "CrashPrefab" in Assets so that its properties would be shown in the Inspector Window
4. In "CrashScript.cs" comment/uncomment "public" access modifier before "anyVariable"
5. Click on "CrashPrefab" once again to initiate recompilation and redraw Inspector Window
Reproducible with: 2020.2.0a17, 2020.2.0a20, 2020.2.5f1
Not reproducible with: 2018.4.26f1, 2019.4.7f1, 2020.1.1f1, 2020.2.0a16
First lines of the stacktrace:
0x00007ff68b357295 (Unity) ModuleMetadata_CUSTOM_GetModuleIncludeSettingForObject
0x000001fde73b5e77 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.ModuleMetadata:GetModuleIncludeSettingForObject (UnityEngine.Object)
0x000001fde73b5dab (Mono JIT Code) UnityEditor.InspectorWindowUtils:IsExcludedClass (UnityEngine.Object)
0x000001fde73a9c7b (Mono JIT Code) UnityEditor.UIElements.EditorElement:HeaderOnGUI ()
0x000001fde53f5850 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
Notes:
- Doesn't reproduce on a GameObject
- Doesn't reproduce on any redraw, seems like it has to add or remove a serialized property. For example if a Debug.Log line would be included somewhere in the script, it would have no issue redrawing the Inspector Window
- Reproducible on Windows, OSX
Comments (1)
-
KevinDW
Aug 07, 2020 14:54
I'm having this quite regularly (couple of times per day)
I am able to reproduce it when renaming a serlialized property which is used on a prefab which has some variants (not sure if this is relevant)
It only occurs when the inspector has the prefab opened, it does not happen when the inspector does not have the prefab opened.
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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note (fix version 2020.2):
Fixed in 2020.2.6f1