Search Issue Tracker

Fixed in 2021.2.X

Fixed in 2021.1.X

Votes

0

Found in

2021.1.0a7

2021.1.0b6

Issue ID

1293257

Regression

Yes

[Profiler] Window breaks after switching threads

Profiling

-

Profiler window breaks after switching treads

To reproduce:
1. Enable Editor Profiling.
2. Enter Playmode, profile a bit,
3. Stop Profiling.
4. Exit Playmode.
5. In (Raw) Hierarchy select e.g. Profiler.DataDeserializer.
6. Enable profiling again.

Actual result:
Profiler window is blank and error fall in log:

NullReferenceException: Object reference not set to an instance of an object
UnityEditorInternal.Profiling.CPUProfilerModule.ApplySelection (System.Boolean viewChanged, System.Boolean frameSelection) (at <c04d3eff6b2847bb9c702bb4f59bb144>:0)
UnityEditorInternal.Profiling.CPUOrGPUProfilerModule.TryRestoringSelection () (at <c04d3eff6b2847bb9c702bb4f59bb144>:0)
UnityEditorInternal.Profiling.CPUOrGPUProfilerModule.OnEnable () (at <c04d3eff6b2847bb9c702bb4f59bb144>:0)
UnityEditorInternal.Profiling.CPUProfilerModule.OnEnable () (at <c04d3eff6b2847bb9c702bb4f59bb144>:0)
UnityEditor.ProfilerWindow.OnEnable () (at <c04d3eff6b2847bb9c702bb4f59bb144>:0)
UnityEditor.ProfilerWindow:ShowProfilerWindow()

Expected result: Profiled works.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.