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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note (fix version 0.2.7-preview.1):
Fixed in 0.2.7-preview.1 that is available in 2018.4 and above