Search Issue Tracker
Fixed
Fixed in 10.1.2
Votes
0
Found in [Package]
7.1.0
9.1.0
10.1.1
Issue ID
DANB-588
Regression
No
Calling SetBoneTransforms throws a "NullReferenceException" error when the GameObject with the Sprite Skin Component is deactivated
Reproduction steps:
1. Open the “ReproProject“ project
2. Open the “Assets/Scenes/SampleScene“ scene
3. Create a new 2D Triangle GameObject (GameObject > 2D Object > Sprites > Triangle)
4. Select the “Triangle” GameObject in the Hierarchy window
5. Deactivate the “Triangle” GameObject in the Inspector window
6. Add the “Sprite Skin” Component to the “Triangle” GameObject in the Inspector window
7. Select the “Test” GameObject in the Hierarchy window
8. Add the “Triangle“ GameObject to the “Sprite Skin” Property under the Sprite Skin Test Component in the Inspector window
9. Enter Play Mode
Expected result: No errors are thrown in the Console window
Actual result: “NullReferenceException: Object reference not set to an instance of an object” errors are thrown in the Console window
Reproducible with: 2023.2.16f1, 6000.0.0b13
Couldn’t test with: 2021.3.36f1, 2022.3.22f1 (due to SetBoneTransforms not existing)
Reproducible on: Windows 11 Pro (22H2)
Not reproducible on: No other environment tested
Note: Reproduces only when the “Triangle” GameObject is deactivated, once the “Triangle” GameObject is activated, the errors are not thrown
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
- Memory leak when a lot of UI elements are spawned and despawned
- Warnings are not logged in the Console window when using external code analyzers
- Errors “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 288“ appear constantly when Prefab is open
- Crash on PPtr<Shader>::operator or NullException errors spammed in console when calling Dispose() on null GraphicsBuffer with baked Reflection Probes
- “EndRenderPass: Not inside a Renderpass” and other Render Graph errors in the Player when Render Graph is enabled and Overlay UI is used
Resolution Note (fix version 10.1.2):
Fixed for 2D Animation 10.1.2