Search Issue Tracker
Duplicate
Votes
1
Found in
2019.3
2019.4
2019.4.4f1
2020.1
2020.2
Issue ID
1265045
Regression
No
Crash on scripting_class_is_subclass_of when trying to display corrupted data from JsonUtility when using SerializeReference
Reproduction steps:
1. Open the attached project ("1265045.zip")
2. Open scene "TestJsonRead"
3. Enter Play mode
4/5. Press the "Start" button in Game View
4/5. Select "Canvas" GameObject in The Hierarchy so it's properties would be displayed in the Inspector
(4th and 5th steps can be interchangeable)
Reproducible with: 2019.3.16f1, 2019.4.8f1, 2020.1.2f1, 2020.2.0a20
Couldn't test with: 2018.4.26f1 due to compilation errors and SerializeReference was introduced in 2019.3
First lines of the stacktrace:
0x00007ff6639834aa (Unity) scripting_class_is_subclass_of
0x00007ff662251313 (Unity) ManagedReferencesRegistry::RegisterReference
0x00007ff6639c570b (Unity) StreamedBinaryWrite::TransferWithTypeString<ArrayOfManagedReferencesTransferer>
0x00007ff6639d92f1 (Unity) Transfer_ManagedObjectRef<StreamedBinaryWrite,1>
0x00007ff6639b40ac (Unity) TransferField_LinearCollection<ReportScriptingObjectsTransfer>
Notes:
- Might crash silently
- Before the crash this assertion failure might show up in Editor logs:
"* Assertion at ..\mono\metadata\class.c:8919, condition `ac->rank' not met"
- Doesn't always crash, but consistent enough to investigate
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
- Skinned Mesh Renderer with multiple Animator Components does not render when "Optimize Game Objects" is enabled
- [iOS]Certain characters are not displayed when using iOS devices with 18 OS and newer
- Trees do not render in 'Unity Terrain - URP Demo Scene'
- Silent crash when clicking in Scene View in a specific project
- The Player renders black on a Quest headset when MSAA, Post Processing, and Spacewarm depth submission are enabled
This is a duplicate of issue #1198073