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
- Light rendering artefacts appear in the Editor when assigning unsupported 3D Custom Render Texture in Camera’s Output Texture, unclearable errors and warnings spammed
- Memory leak when running a test with "GfxThreadingMode" set to "SplitJobs"
- Loading Unloaded unsaved Scene throws “ArgumentException” error in the Console
- Crash on std::__1::__tree_const_iterator when opening the Build Profiles window in a specific project
- Sub-State machine “breadcrumb trail” doesn’t fit in the window if there’s too many Sub-State machines
This is a duplicate of issue #1198073