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

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

Comments (4)

  1. Apoll0

    Mar 16, 2017 18:10

    5.5.2f1 still exists

  2. 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)

  3. Studiomaurer

    Dec 11, 2016 00:19

    NOT FIXED! Still getting flooded with these in 5.5.0f3
    Also when profiling for Android.

  4. VetalPav

    Dec 09, 2016 23:27

    5.5.0f3 not fixed

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.