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
- SystemInfo.get_graphicsDeviceName() is generating garbage GC Alloc when using Metal graphics API
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
This is a duplicate of issue #1198073