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
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
This is a duplicate of issue #1198073