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
- Crash on when D3D12RenderPass::SetupDeviceResources when opening FBX animation preview
- Serialization errors are thrown when "com.unity.render-pipelines.core" is added as a custom package and Graphics window is opened
- Character Joints unexpectedly rotate when a ragdoll is created using the Ragdoll Wizard
- Crash on GfxDeviceD3D11Base::DrawBuffersBatchMode when rendering the Scene view
- The shared EditorBuildSettings.asset file of symlinked projects is not updated when changing the order of the Scenes in Build Settings in one of the projects
Resolution Note (fix version 0.2.7-preview.1):
Fixed in 0.2.7-preview.1 that is available in 2018.4 and above