Search Issue Tracker
Fixed in 5.5.0
Votes
0
Found in
5.5.0b7
Issue ID
841296
Regression
Yes
[iOS] 'Non matching Profiler.EndSample (BeginSample and EndSample count must match)' error when profiling code on iOS
BeginSample method implementation is missing on iOS builds, this results in Profiler failing to profile on iOS - 'Non matching Profiler.EndSample (BeginSample and EndSample count must match)' errors are thrown in Xcode console. BeginSample method in Classes/Native/Bulk_UnityEngine_0.cpp is empty, however, EndSample is not.
Steps to reproduce:
1) Open the attached project.
2) Build a Developmental iOS build.
3) Run on a device.
4) In Unity, open Window > Profiler.
5) Select the connected iOS device as Active Profiler target.
In Xcode console, errors show up:
Non matching Profiler.EndSample (BeginSample and EndSample count must match)
(Filename: /Users/builduser/buildslave/unity/build/Runtime/Profiler/PerThreadProfiler.cpp Line: 293)
The profiling process does not start. This happens with Mono2x and IL2cpp. Disabling Engine Code Stripping does not help as well.
Reproduced on:
5.5.0b8, 5.5.0b4
Did not reproduce:
5.5.0b3
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
- Editor crashes on StoredGraphicsBuffer::GetGfxBufferID when VFX Graph property is modified during Play Mode and Application.targetFrameRate is used to limit FPS
- Crash on NVAPI_Thunk when changing Player resolution while HDR display is used and Direct3D12 is set as the graphics API
- Only one out of multiple cameras is shown in the Play Mode while HDR display is used and Direct3D12 is set as the graphics API
- The "Paste Component as New" option is incorrectly displayed as active despite the action being prohibited
- "TLS Allocator ALLOC_TEMP_TLS" errors are thrown when unsuccessfully importing an FBX file
Apoll0
Mar 16, 2017 18:10
5.5.2f1 still exists
Maf
Dec 14, 2016 13:17
+1 getting this in 5.5.0f3
Just the occasional one or two, not getting flooded
Not even got the profiler active, in a relatively clean project (<2 weeks old)
Studiomaurer
Dec 11, 2016 00:19
NOT FIXED! Still getting flooded with these in 5.5.0f3
Also when profiling for Android.
VetalPav
Dec 09, 2016 23:27
5.5.0f3 not fixed