Search Issue Tracker

Won't Fix

Votes

0

Found in [Package]

3.0.0-pre.7

Issue ID

CMCL-1494

Regression

No

NullReferenceException is thrown after exiting PlayMode if FOV Presets or Channel Names were created during PlayMode

Package: Cinemachine

-

How to reproduce:
1. Open any project with Cinemachine installed
2. Add a "Cinemachine Camera" Component to a GameObject
3. In the Component, on the right of the field "Output Channel" click the gear icon and create a channel names Asset
4. Enter PlayMode
5. In the Asset, fill the list with new channels
6. Exit PlayMode and observe the Console

Reproducible with: 3.0.0-pre.7

Error message:
"NullReferenceException: SerializedObject of SerializedProperty has been Disposed.
UnityEditor.SerializedProperty.get_intValue () (at <d6d088ded9754d9790b4a803014a22a0>:0)
UnityEditor.UIElements.Bindings.ListViewSerializedObjectBinding.UnbindListViewItem (UnityEngine.UIElements.VisualElement ve, System.Int32 index) (at <64210cec33d842e79cef3cc945cf345e>:0)
UnityEngine.UIElements.ListViewController.UnbindItem (UnityEngine.UIElements.VisualElement element, System.Int32 index) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.CollectionViewController.InvokeUnbindItem (UnityEngine.UIElements.ReusableCollectionItem reusableItem, System.Int32 index) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.VerticalVirtualizationController`1[T].ReleaseItem (System.Int32 activeItemsIndex) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.DynamicHeightVirtualizationController`1[T].ReleaseItem (System.Int32 activeItemsIndex) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.VerticalVirtualizationController`1[T].Refresh (System.Boolean rebuild) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.DynamicHeightVirtualizationController`1[T].Refresh (System.Boolean rebuild) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.BaseVerticalCollectionView.RefreshItems () (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.CollectionViewController.set_itemsSource (System.Collections.IList value) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.BaseVerticalCollectionView.set_itemsSource (System.Collections.IList value) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEditor.UIElements.Bindings.ListViewSerializedObjectBinding.ClearListView () (at <64210cec33d842e79cef3cc945cf345e>:0)
UnityEditor.UIElements.Bindings.ListViewSerializedObjectBinding.Release () (at <64210cec33d842e79cef3cc945cf345e>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.RemoveBinding (UnityEngine.UIElements.IBindable bindable, System.Boolean forceRemove) (at <64210cec33d842e79cef3cc945cf345e>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.Unbind (UnityEngine.UIElements.VisualElement element) (at <64210cec33d842e79cef3cc945cf345e>:0)
UnityEditor.UIElements.Bindings.DefaultSerializedObjectBindingImplementation.UnbindTree (UnityEngine.UIElements.VisualElement element) (at <64210cec33d842e79cef3cc945cf345e>:0)
UnityEditor.UIElements.Bindings.DefaultSerializedObjectBindingImplementation.Unbind (UnityEngine.UIElements.VisualElement element) (at <64210cec33d842e79cef3cc945cf345e>:0)
UnityEditor.UIElements.BindingExtensions.Unbind (UnityEngine.UIElements.VisualElement element) (at <d6d088ded9754d9790b4a803014a22a0>:0)
UnityEditor.UIElements.PropertyField.Reset (UnityEditor.SerializedProperty newProperty) (at <d6d088ded9754d9790b4a803014a22a0>:0)
UnityEditor.UIElements.PropertyField.Reset (UnityEditor.UIElements.SerializedPropertyBindEvent evt) (at <d6d088ded9754d9790b4a803014a22a0>:0)
UnityEditor.UIElements.PropertyField.ExecuteDefaultActionAtTarget (UnityEngine.UIElements.EventBase evt) (at <d6d088ded9754d9790b4a803014a22a0>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtCurrentTargetAndPhase (UnityEngine.UIElements.EventBase evt) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetAndDefaultPhase (UnityEngine.UIElements.EventBase evt) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.SendBindingEvent[TEventType] (TEventType evt, UnityEngine.UIElements.VisualElement target) (at <64210cec33d842e79cef3cc945cf345e>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.BindPropertyRelative (UnityEngine.UIElements.IBindable field, UnityEditor.SerializedProperty parentProperty) (at <64210cec33d842e79cef3cc945cf345e>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.BindTree (UnityEngine.UIElements.VisualElement element, UnityEditor.SerializedProperty parentProperty) (at <64210cec33d842e79cef3cc945cf345e>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.BindTree (UnityEngine.UIElements.VisualElement element, UnityEditor.SerializedProperty parentProperty) (at <64210cec33d842e79cef3cc945cf345e>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.BindTree (UnityEngine.UIElements.VisualElement element, UnityEditor.SerializedProperty parentProperty) (at <64210cec33d842e79cef3cc945cf345e>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.ContinueBinding (UnityEngine.UIElements.VisualElement element, UnityEditor.SerializedProperty parentProperty) (at <64210cec33d842e79cef3cc945cf345e>:0)
UnityEditor.UIElements.Bindings.SerializedObjectBindingContext.Bind (UnityEngine.UIElements.VisualElement element) (at <64210cec33d842e79cef3cc945cf345e>:0)
UnityEditor.UIElements.Bindings.DefaultSerializedObjectBindingImplementation.Bind (UnityEngine.UIElements.VisualElement element, UnityEditor.SerializedObject obj) (at <64210cec33d842e79cef3cc945cf345e>:0)
UnityEditor.UIElements.BindingExtensions.Bind (UnityEngine.UIElements.VisualElement element, UnityEditor.SerializedObject obj) (at <d6d088ded9754d9790b4a803014a22a0>:0)
UnityEditor.UIElements.InspectorElement.SetEditor (UnityEditor.Editor value) (at <d6d088ded9754d9790b4a803014a22a0>:0)
UnityEditor.UIElements.EditorElement.Reinit (System.Int32 editorIndex) (at <d6d088ded9754d9790b4a803014a22a0>:0)
UnityEditor.PropertyEditor.ProcessEditorElementsToRebuild (UnityEditor.Editor[] editors) (at <d6d088ded9754d9790b4a803014a22a0>:0)
UnityEditor.PropertyEditor.DrawEditors (UnityEditor.Editor[] editors) (at <d6d088ded9754d9790b4a803014a22a0>:0)
UnityEditor.PropertyEditor.RebuildContentsContainers () (at <d6d088ded9754d9790b4a803014a22a0>:0)
UnityEditor.InspectorWindow.RedrawFromNative () (at <d6d088ded9754d9790b4a803014a22a0>:0)"

  1. Resolution Note:

    Cannot repro using windows 2022.3.5f1 and CM main branch

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.