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)
-
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
- Silent crash when clicking in Scene View in a specific project
- The Player renders black on a Quest headset when MSAA, Post Processing, and Spacewarm depth submission are enabled
- Graphics Compositor breaks Unity rendering when the "Output Camera" is changed to a scene Camera and one Camera SubLayer is active
- The Editor freezes on RenderGraphViewer.Repaint when entering too many characters in search fields without character limits
- Adding a new SubLayer in Graphics Compositor renders BaseLayer darker and makes it flicker
Resolution Note (fix version 0.2.7-preview.1):
Fixed in 0.2.7-preview.1 that is available in 2018.4 and above