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
- [Android] The Player screen turns black when playing a video under certain conditions
- Search window icons at the bottom are cut off when Search window is resized vertically
- "Try something else?" text label is cut off when searching for a long text in the Search window
- Rendering Debugger window sections do not have a minimum width set when resizing with the slider in the middle of the window
- Last segment of a Sprite Shape Spline is affected by other segments' Sprite Variant change when no edge Sprite is selected
This is a duplicate of issue #1302872