Search Issue Tracker
Fixed in 2020.2.X
Votes
0
Found in
2020.1.0a22
2020.2
Issue ID
1271005
Regression
Yes
PopupWindowContent is sometimes closed/destroyed after parent PopupWindow is destroyed causing errors in properties
Steps to reproduce:
1. Open the attached project
2. Select the Directional Light game object
3. Open up the Culling Mask drop-down (this project contains an Editor script that overrides the normal Light Editor)
4. Click anywhere in the Scene/Hierarchy while the drop-down is active
5. Observe the error in the Console
Note: this might not reproduce on every setup - I had the most success with Mac computers, but we've managed to reproduce it on Windows as well
Affected versions: 2020.1.0a22, 2020.1.3f1, 2020.2.0a21
Unaffected versions: 2018.4.26f1, 2019.4.8f1, 2020.1.0a21
Expected result: no exceptions; the PopupWindowContent does not call its OnGUI after the parent window is gone
Actual result: NullReferenceException: SerializedObject of SerializedProperty has been Disposed
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
- "InvalidOperationException: Trying to SetRenderAttachment on a texture..." exception is thrown when using the depth back buffer as an input attachment in Renderer Feature on Vulkan Graphics API
- [HDRP Wizard] Reload Window fails to reload the HDRP Wizard window
- [HDRP Wizard] Fix All button is not presented using the macOS system
- "InvalidCastException: Specified cast is not valid" is thrown when Generating Lighting with "Virtual Offset" enabled in APV, and a static Skinned Mesh Rendered with a Mesh Filter Component is in the Scene
- TMP material doesn't update when using Localized Property to change the font assets
Resolution Note (fix version 2020.2):
Fixed in: 2021.2.0a3