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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
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
illumin8ed1
Nov 20, 2023 08:10
I am seeing this in 2023.3.0a13
Kristina_B
Oct 14, 2023 00:42
Sorry, the last part of my comment " but deleting the object stopped the issue" is not true.
Also, the issue occurs when entering a Play mode while having a GameObject with a script attached selected in the Inspector.
Kristina_B
Oct 14, 2023 00:18
Could it be connected to UUM-39898 ? I started seeing this issue when added a scriptable object in Unity2022.3.7f1 , but deleting the object stopped the issue.
Ijisthee
Oct 13, 2023 12:47
Is there a version where it does not occur?
semateos
Sep 26, 2023 16:52
I'm seeing the same issue all the time in 2022.3.9f1