Search Issue Tracker
Duplicate
Votes
0
Found in
2018.2.0a5
2018.2.0a7
Issue ID
1018545
Regression
Yes
[Profiler] Error thrown when Profiling the Editor while in Play mode
Error is thrown when Profiling the Editor while in Play mode
Steps to Repro:
1) Open any Unity project (even a new one)
2) Open the Profiler window
3) Enter Play mode
4) Hit "Profile Editor" in the Profiler
Observe the error in console window.
Reproducible on : 2018.2.0a8, 2018.2.0a7, 2018.2.0a5
Working fine on:2018.2.0a4, 2018.2.0a1, 2018.1.0b13.
Environment:
Occurring on Windows 10, Windows 7, Mac 10.13.
Stack trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.ProfilerWindow.DrawMainToolbar () (at C:/buildslave/unity/build/Modules/ProfilerEditor/ProfilerWindow/ProfilerWindow.cs:1303)
UnityEditor.ProfilerWindow.OnGUI () (at C:/buildslave/unity/build/Modules/ProfilerEditor/ProfilerWindow/ProfilerWindow.cs:1473)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:295)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:288)
UnityEditor.HostView.InvokeOnGUI (Rect onGUIPosition) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:255)
Repro on latest trunk 4b1d8bb28b31
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
This is a duplicate of issue #1022688