Search Issue Tracker

Fixed in 2018.2.X

Fixed in 2018.1.X



Found in


Issue ID




[iOS][ReplayKit] Recording with ReplayKit fails on iOS 11 latest beta



Steps to reproduce:

1. Open attached project
2. Build 'Test' scene for iOS
3. Run on a device with latest iOS 11 beta (15A5341f)
4. Click "Start Recording" and then choose "Record Screen" when the popup appears
5. Notice the recording fails with error:
'startRecordingWindowLayerContextIDs:windowSize:microphoneEnabled:cameraEnabled:broadcast:systemRecording:captureEnabled:listenerEndpoint:withHandler:', dropping incoming message and calling failure block.
Exception: accessing _cachedSystemAnimationFence requires the main thread

Doesn't reproduce with earlier iOS versions (including earlier iOS 11 betas)
Broadcasting seems to work fine.

Comments (12)

  1. mercygaleria

    Jul 28, 2020 10:06;u=245304;u=19154;u=556429;;u=245305;;u=19155;u=556432;;u=556433;u=245302;;u=556434,,,,

  2. cozyurt_unity

    Jul 11, 2020 15:08

  3. trd99

    Jul 10, 2018 17:30

    release notes on 2018.2 don't say it is fixed. any idea when it will be back ported to 5.6.*?

  4. Trungdv

    Mar 21, 2018 04:38

    I saw the status "Fixed in future release" from a long time ago (may be 2017.2?) Now they released 2017.4.0f1 and this bug has not fixed yet? What is that future release? 2020? 2030?

  5. SoerenL

    Nov 09, 2017 08:53

    Problem also exists in Unity 5.6.4p1 / Xcode 9.1 / iOS 11.1 (15B83). Severe on iPhone 6, not so bad on iPad Pro 9 inch. Seems worse on my test devices than I thought previously. Sometimes I don't get the "Error Code=-5804 "Failed during recording" UserInfo={NSLocalizedDescription=Failed during recording}" error code, but then another problem arises: videos are not always saved when we tap save in the preview window.
    In this thread:
    lupidan suggests that it is a problem with Apple and not Unity, so we should probably go here to let Apple know:

  6. SoerenL

    Oct 24, 2017 11:06

    Have also encountered this issue previously, also before iOS11. Usually it works fine on my own test devices, but once in a while a user will contact me with the issue. Sometimes a restart of the device or a re-install of the app can solve it, but not always.

  7. Serhii-Horun

    Oct 18, 2017 13:04

    Hi guys. I had the same issue (xCode 9.0, unity 2017.1.0f3). I resolved it by simple phone relaunch

  8. AdrienC

    Oct 17, 2017 15:31

    Still crashing with 2017.2 with iOs 11.

  9. hjkoenig

    Oct 14, 2017 21:40

    same problem with 2017.2

  10. Guilherme-Otranto

    Oct 10, 2017 21:39

    This seems to be open for a while now, any news?

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.