Search Issue Tracker
Fixed
Fixed in 2021.3.32f1, 2022.3.13f1, 2023.1.19f1, 2023.2.0b16, 2023.3.0a12
Votes
17
Found in
2021.3.7f1
2022.3.11f1
2023.1.16f1
2023.2.0b6
2023.3.0a3
Issue ID
UUM-46364
Regression
Yes
NullReferenceException is flooded when exiting Play Mode while Inspector is displaying a list whose contents are generated at runtime
Reproduction steps:
1. Open the “ListExceptionStripped“ project
2. Open the “Sample” scene
3. Enter Play Mode
4. Select the “Controller“ GameObject
5. In Inspector expand “List 1” and/or “List 2”
6. Exit Play Mode and observe Console
7. If no errors, enter and exit Play Mode once more
Expected result: No errors
Actual result: “NullReferenceException: SerializedObject of SerializedProperty has been Disposed” is flooded
Reproduced in: 2022.3.6f1, 2022.3.7f1, 2023.2.0a23, 2023.2.0b6
Not reproduced in: 2021.3.29f1, 2022.3.5f1, 2023.1.9f1, 2023.2.0a22
Reproduced on: macOS 13.4.1 (Intel), Windows 10
Not reproduced on: No other environment tested
Notes:
1. Not reproduced when the GameObject is not selected or the lists are collapsed
2. The error stops flooding after the lists are stopped being displayed in Inspector
3. The error is flooded when 2 lists are displayed and at least one is expanded
4. The error is thrown only once when only 1 list is displayed and is expanded
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Sailor904
Sep 04, 2024 20:08
NullReferenceException: SerializedObject of SerializedProperty has been deleted. UnityEditor.SerializedProperty.get_objectReferenceInstanceIDValue () (a <4ec4ffcbf9cb40b9a62b20bd9f80de36>:0) UnityEditor.EditorGUIUtility.ObjectContent (UnityEngine.Object obj, System.Type type, UnityEditor.SerializedProperty property, UnityEditor.EditorGUI+ObjectField Validator validator) (a <4ec4ffcbf9cb40b9a62b20bd9f80de36>:0 ) UnityEditor.UIElements.ObjectField+ObjectFieldDisplay.Update () (a <4ec4ffcbf9cb40b9a62b20bd9f80de36>:0) UnityEditor.UIElements.ObjectField+ObjectFieldDisplay.ShowMixedValue (System.Boolean show) (at <4ec4ffcbf9cb40b9a62b20bd9f80de36>:0) .UpdateMixedValueContent () (a <4ec4ffcbf9cb40b9a62b20bd9f80de36>:0) UnityEditor.UIElements. ObjectField.UpdateDisplay () (a <4ec4ffcbf9cb40b9a62b20bd9f80de36>:0) UnityEngine.UIElements.VisualElement+SimpleScheduledItem.PerformTimerUpdate (UnityEngine.UIElements.TimerState state) (at <5566f9e97c3b47c3802abbb5405c3a92>:0) UIElements.TimerEventScheduler.UpdateScheduledEvents () (a <5566f9e97c3b47c3802abbb5405c3a92>:0) UnityEngine. UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.UpdateSchedulers() (a <5566f9e97c3b47c3802abbb5405c3a92>:0)
UnityEngine.UIElements.UIEventRegistration.UpdateSchedulers () (at <5566f9e97c3b47c3802abbb5405c3a92>:0) UnityEditor.RetentionMode.UpdateSchedulers () (at <6b1405e82d454258a8fbde4cb0621937>:0) THE PROBLEM IS ALWAYS PRESENT, I AM USING UNITY 2023.2. 3F1 AND THIS BUG ALWAYS HAPPENS, EVEN DEACTIVATING ALL THE OBJECTS IN THE SCENE AND THE SCRIPTS THE BUG CONTINUES, ALL THIS IS ABSURD FIX THIS BUGS
KEENOY
Aug 23, 2024 12:02
I don't think it's specific for some versions. It happens every versions installed in my case.
kevindaluz
May 14, 2024 22:45
Unity, please fix t. Happening for me in 2022.3.15f1
SteamQuarterStudios
May 11, 2024 07:11
This is STILL not fixed in 2022.3.28f...
Akaimari
Apr 29, 2024 17:02
Not fixed, Still happening in 2022.3.11f1
cihadturhan_unity
Jan 16, 2024 18:34
THIS ISSUE HAS NOT BEEN FIXED.
2022.3.16f1 MacOS (Intel)
Epsilon_Delta
Dec 16, 2023 17:33
Still happening in 2022.3.15f1
RobertWebb
Dec 08, 2023 05:10
I still get this issue in 2022.3.14, so not fixed.
RedTShirtGaming
Nov 29, 2023 15:05
Still occurring in 2022.3.10f1
Wilhelm_LAS
Nov 22, 2023 21:31
I face this issue when updating an array in inspector while its showing in inspector. V2022.3.7f1