Search Issue Tracker
Fixed in 0.2.7-preview.1
Votes
0
Found in [Package]
0.2.6-preview.1
Issue ID
1292029
Regression
No
NullReferenceException thrown when recompiling scripts and Memory Profiler window is docked
Reproduction steps:
1. Open attached project "1292029"
2. Go to Window > Analysis > Memory Profiler
3. Dock the opened Memory Profiler window next to the Game window and press "Capture Editor" to create a memory snapshot
4. Enter and exit Play Mode
5. Create a new script to trigger a recompile
Expected result: No errors are thrown in the Console window
Actual result: NullReferenceException is thrown
Reproducible with: 2018.4.30f1, 2019.4.16f1, 2020.1.16f1, 2020.2.0b14, 2021.1.0a8
Reproducible with package versions: 0.2.4-preview.1, 0.2.6-preview.1
Could not test with package versions: 0.2.3-preview.2 (errors)
Note: The error doesn't seem to be reproducible when the Memory Profiler window is undocked or when it is docked and visible in the editor.
Full error:
NullReferenceException: Object reference not set to an instance of an object
Unity.MemoryProfiler.Editor.MemoryProfilerWindow.OnDisable () (at Library/PackageCache/com.unity.memoryprofiler@0.2.6-preview.1/Editor/MemoryProfilerWindow.cs:684)
Comments (2)
-
Long2904
Sep 16, 2022 11:40
This problem still exists in version 0.7.1 for Unity 2020.3.38
-
DarkSealer
Aug 28, 2022 07:54
Version 2021.3.8 still has this problem:
NullReferenceException: Object reference not set to an instance of an object
Unity.MemoryProfiler.Editor.MemoryProfilerWindow.OnDisable () (at Library/PackageCache/com.unity.memoryprofiler@0.7.1-preview.1/Editor/MemoryProfilerWindow.cs:290)
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
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
- Deleting multiple Tags throws “NullReferenceException”, and "Retrieving array element that was out of bounds" errors when holding the Enter key
Resolution Note (fix version 0.2.7-preview.1):
Fixed in 0.2.7-preview.1 that is available in 2018.4 and above