Search Issue Tracker
Fixed in 2020.2.X
Fixed in 2019.3.X, 2020.1.X
Votes
1
Found in
2019.3.0a9
2020.1.0a1
2020.1.0a3
Issue ID
1181306
Regression
Yes
Missing Profiler.EndSample errors appear after switching profiling target
How to reproduce:
1. Create a new Unity project
2. Build and Run with Autoconnect profiler enabled in Build Settings on an Android device
3. While Profiler window is profiling the AndroidPlayer, switch profiling target to Editor and back to AndroidPlayer
Result: Errors appear:
Missing Profiler.EndSample (BeginSample and EndSample count must match): UnityEditor.dll!::SelectMenuItemFunction.Invoke()
Previous 5 samples:
Mono.JIT
UnityEditor.dll!::SelectMenuItemFunction.Invoke()
GC.Alloc
UIElementsUtility.DoDispatch(Non Repaint Event)
Update Transform
In the scope:
UnityEditor.dll!::SelectMenuItemFunction.Invoke()
ProfilerWindow.Paint
GUIView.RepaintAll.RepaintScene
ApplicationTickTimer
EditorLoop
Reproduced with: 2019.3.0b5, 2020.1.0a7, 2019.3.1f1, 2020.1.0a22
Not reproduced with: 2017.4.32f1. 2018.4.10f1, 2019.2.7f2.
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
christopherSha
Nov 15, 2019 05:05
also found in 2020.1.0a8