Search Issue Tracker
Duplicate
Votes
0
Found in
2019.4
2020.2
2020.2.1f1
2021.1
2021.2
Issue ID
1307900
Regression
No
Crash on 'ModuleMetadata_CUSTOM_GetModuleIncludeSettingForObject' or errors are spammed when modifying references in Asset file
How to reproduce:
1. Open the attached project (SerializedReferenceCrash.zip)
2. In the Project window, select the 'Graph' Asset
3. Open the 'Graph' Asset in a text editor
4. Change the referenced class name 'NodeA' to any non-existing class name (for example, 'NodeD') and save the file
5. Return focus to the Editor
Expected result: a single error like such 'Unknown managed type referenced: [SerializeReference.Test.Editor] SerializeRef.Test.NodeD ' is thrown in the Console
Actual result: 'Assertion failed on expression: 'm_ByteOffset < m_Data->size()'' and other errors are constantly spammed (2019.4) or the Editor crashes (2020.2 and above)
Reproducible with: 2019.4.18f1, 2020.2.2f1, 2021.1.0b3, 2021.2.0a3
Could not test with: 2018.4.31f1 (SerializeReference not introduced)
First lines of the stack trace:
0x00007ff618cb10f7 (Unity) ModuleMetadata_CUSTOM_GetModuleIncludeSettingForObject
0x000002895e4ae4e7 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.ModuleMetadata:GetModuleIncludeSettingForObject (UnityEngine.Object)
0x000002895e4ae43b (Mono JIT Code) UnityEditor.InspectorWindowUtils:IsExcludedClass (UnityEngine.Object)
0x000002895e4a53fb (Mono JIT Code) UnityEditor.UIElements.EditorElement:HeaderOnGUI ()
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
- Highlighter.Highlight does not find window when using class name as window title
- Highlighter.Highlight highlights a different component when multiple components have the same property path
- Highlighter.Highlight does not find elements in an array or list when the array or list is collapsed
- [URP][NRP] RenderPass, BeginSubPass, and EndRenderPass errors are thrown when Native RenderPass is enabled
- D3D11 swapchain error pop-up appears and the Editor shuts down when Generating Lighting with Probe Volumes present
This is a duplicate of issue #1302872