Search Issue Tracker
Fixed
Fixed in 1.8.0
Votes
2
Found in [Package]
1.7.7
Issue ID
UVSB-2332
Regression
No
Script graph cannot be opened and "Failed to deserialize behaviour." error is logged after deleting a custom node Script
Reproduction steps:
1. Open the user's attached project "Embeded Graph Corruption Repro.zip"
2. Open "SampleScene"
3. Select the "Embeded Graph Test" GameObject in the Hierarchy window
4. Click "Edit Graph" in the Inspector window
5. Delete DeleteMeUnit.cs from the Assets folder
Expected result: The "Delete Me Unit" node disappears
Actual result: The graph cannot be opened, an error is thrown:
"Failed to deserialize behaviour.
System.Runtime.Serialization.SerializationException: Deserialization into 'Unity.VisualScripting.FlowMachine' failed. ---> System.InvalidOperationException: Internal Deserialization Error - Object definition has not been encountered for object with id=14; have you reordered or modified the serialized data? If this is an issue with an unmodified Full Serializer implementation and unmodified serialization data, please report an issue with an included test case."
Reproducible with: 1.7.6 (2021.2.18f1), 1.7.7 (2022.1.0b14), 1.8.0-pre.1 (2022.2.0b9)
Could not test with: 2019.4.37f1, 2020.3.32f1 (Visual Scripting package not available)
Note:
1. The error will be thrown if the source of the Script Machine is "Graph" but the graph will be openable
2. "Delete Me Unit\!" needs to be connected to another unit
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
Resolution Note (fix version 1.8.0):
Nodes with missing types can now be deserialized into dummy ones to inform the user of the issue.