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
- Memory leak when a lot of UI elements are spawned and despawned
- Warnings are not logged in the Console window when using external code analyzers
- Errors “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 288“ appear constantly when Prefab is open
- Crash on PPtr<Shader>::operator or NullException errors spammed in console when calling Dispose() on null GraphicsBuffer with baked Reflection Probes
- “EndRenderPass: Not inside a Renderpass” and other Render Graph errors in the Player when Render Graph is enabled and Overlay UI is used
Resolution Note (fix version 2020.2):
Fixed in 2020.2.6f1