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
- Select Preset "None" icon changes after switching tabs
- [Android] Crash when using xxHash3 and targeting the ARMv7 Architecture with IL2CPP Scripting Backend
- GameObject reference in a Script Component becomes missing when unpacking a variant of another Prefab variant
- Project Settings vertical separator position is not synchronized with the mouse position when dragging it horizontally
- Crash on PhysicsDebugDraw::SelectFiltering::Update when entering play mode with Physics Debug window docked and unfocused
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