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
Comments (15)
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
- WebGL Player with WebGPU Graphics API fails to render Scene when custom Render Feature is used
- “EndLayoutGroup” error thrown when changing Shader Precision Model settings in Build Profiles window > Player Settings Overrides
- Button hover state uses default theme color when a custom .uss is applied
- Samples Showcase script warning does not clear after enabling required settings until GameObject is reselected
- VFX Particles receive shadow artifacts when using ShaderGraph with enabled shadows and Face Camera Plane Orient mode
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