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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
Resolution Note (fix version 0.2.7-preview.1):
Fixed in 0.2.7-preview.1 that is available in 2018.4 and above