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
- Assets are created in the Package folders when creating assets via custom buttons in the Inspector window or other windows
- “Select” windows are named differently on Windows and macOS
- [Windows] No minimum “Select” window size
- Enabling “Editor Extension Authoring” in UI Builder doesn’t dirty the document and saving with shortcut doesn’t persist the state
- WebRequest.Create() function fails with "URI prefix is not recognized" errors when the project is built for Linux Standalone or Windows Dedicated Server
This is a duplicate of issue #1302872