Search Issue Tracker

Won't Fix

Votes

0

Found in

2021.3.39f1

Issue ID

UUM-72966

Regression

No

ObjectDisposedException is thrown when resetting the ScriptableObject Asset with the list containing at least one Element

--

-

How to reproduce:
1. Open the user-attached project “Test2021”
2. Open the “New My So” Scriptable Object Asset in the Inspector
3. In the Inspector, click the “+” button to add the Element to the list
4. Click on the three-dot menu of the Scriptable Object
5. Click “Reset” and observe the results

Expected results: No Console errors are thrown
Actual results: “ObjectDisposedException: SerializedProperty myDataList.Array.data[0].content has disappeared!” error is thrown into the Console

Reproducible with: 2021.3.39f1, 2022.1.0a12
Not reproducible with: 2022.3.30f1, 6000.0.4f1
Fixed in: 2022.1.0a13

Reproducible on: Windows 11 Pro
Not reproducible on: No other environment tested

Full error:
ObjectDisposedException: SerializedProperty myDataList.Array.data[0].content has disappeared!
UnityEditor.SerializedProperty.get_hashCodeForPropertyPathWithoutArrayIndex () (at <fe1491035895425882642e3ab9c18f22>:0)
UnityEditor.PropertyHandlerCache.GetPropertyHash (UnityEditor.SerializedProperty property) (at <fe1491035895425882642e3ab9c18f22>:0)
UnityEditor.PropertyHandlerCache.GetHandler (UnityEditor.SerializedProperty property) (at <fe1491035895425882642e3ab9c18f22>:0)
UnityEditor.ScriptAttributeUtility.GetHandler (UnityEditor.SerializedProperty property) (at <fe1491035895425882642e3ab9c18f22>:0)
UnityEditor.UIElements.PropertyField.<CreatePropertyIMGUIContainer>b__33_0 () (at <bd5356f59cd44180a2d0fb249f49b2d6>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <97e48f4f98114f40ad822341cd76c3b8>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

  1. Resolution Note:

    Thank you for bringing this issue to our attention. Unfortunately, after careful consideration, we will not be addressing your issue now, as we are committed to resolving other higher-priority issues and this one is not present in later versions of Unity. Our priority levels are determined by factors such as the severity and frequency of an issue and the number of users affected by it. However, we know each case is different, so please continue to log any issues you find and provide any general feedback on our roadmap page to help us prioritize.
    Roadmap https://unity.com/roadmap/unity-platform/

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.