Search Issue Tracker


Fixed in 2021.3.32f1, 2022.3.13f1, 2023.1.19f1, 2023.2.0b16, 2023.3.0a12



Found in






Issue ID




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

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 (10)

  1. cihadturhan_unity

    Jan 16, 2024 18:34

    2022.3.16f1 MacOS (Intel)

  2. Epsilon_Delta

    Dec 16, 2023 17:33

    Still happening in 2022.3.15f1

  3. RobertWebb

    Dec 08, 2023 05:10

    I still get this issue in 2022.3.14, so not fixed.

  4. RedTShirtGaming

    Nov 29, 2023 15:05

    Still occurring in 2022.3.10f1

  5. 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

  6. illumin8ed1

    Nov 20, 2023 08:10

    I am seeing this in 2023.3.0a13

  7. 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.

  8. 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.

  9. Ijisthee

    Oct 13, 2023 12:47

    Is there a version where it does not occur?

  10. semateos

    Sep 26, 2023 16:52

    I'm seeing the same issue all the time in 2022.3.9f1

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.