Search Issue Tracker
Fixed
Votes
0
Found in [Package]
2.5.2
Issue ID
REC-535
Regression
No
[Recorder] NullReferenceException is thrown on trying to record an animation clip if no GameObject is assigned
https://fogbugz.unity3d.com/f/cases/edit/1310154/
NullReferenceException is thrown on trying to record an animation clip if Animation GameObject is not assigned under Capture dropdown. Refer the attached video
Steps to reproduce:
1) Create a new project
2) Window > Package Manager > Install Unity Recorder
3) Window > General > Recorder Window
4) Add Recorder > Animation clip > Start recording
Actual result: Recording fails with a NullReferenceException thrown in console
Expected result: No exceptions should be thrown in console
Occurring in: 2021.2.0a3, 2021.1.0b5, 2021.1.0a1, 2020.2.2f1, 2020.1.13f1, 2019.4.9f1
Environment: Both Windows and Mac
Stack trace:
NullReferenceException: srcGO
UnityEditor.Recorder.Input.AnimationInput.BeginRecording (UnityEditor.Recorder.RecordingSession session) (at Library/PackageCache/com.unity.recorder@2.5.2/Editor/Sources/Recorders/_Inputs/Animation/AnimationInput.cs:34)
UnityEditor.Recorder.Recorder.SignalInputsOfStage (UnityEditor.Recorder.ERecordingSessionStage stage, UnityEditor.Recorder.RecordingSession session) (at Library/PackageCache/com.unity.recorder@2.5.2/Editor/Sources/Recorder.cs:196)
UnityEditor.Recorder.RecordingSession.BeginRecording () (at Library/PackageCache/com.unity.recorder@2.5.2/Editor/Sources/RecordingSession.cs:112)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
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:
https://github.cds.internal.unity3d.com/unity/com.unity.recorder/commit/ec4930f4222cbff4aa18ca7ae551533955230335