Replaykit appears to fail on iOS 11. It requests permission to record, then nothing happens. Everything works fine in iOS 10. Any idea why this happens?
Hi Chris, we havenāt noticed anything unusual when testing ReplayKit on iOS 11. Could you report a bug with your project and exact steps describing what are you trying to do when it fails? Once you do that, please post the bug report number here. Thanks!
Have you tried with the last iOS 11 beta (15A5341f)??
So I tried running some tests with latest iOS 11 beta 5 and recording did fail a couple times. Then it āmagicallyā started working. Not entirely sure what caused it to fail or start working again.
I passed it along to our developers, but it will be hard tracking down what causes the issue with such inconsistent results. Would be really useful if you guys could report bugs with your projects, this might help us to track down what exactly causes the problem and fix it.
Again, if you choose to do so, post the bug # here please.
Hey sorry for the late response⦠I thought I had the forums set up to email me if there were responses. The same thing happened with me with inconsistency and now it appears to be working consistently. Iām not really sure what happened, sorry I canāt give more details!
I have the same issue; tried two 3rd party assets as well, dialog asks to use the cam and mic, then nothing. It worked half way with a previous beta of ios11 (beta5), now on beta v8 not.
Have tried both Unity 2017.1 and 2017.2, no difference.
From all I can read, a lot of reports on this.
Anyone have updated info on this issue?
Can you try the GM seed of both Xcode and iOS 11. I was told this was fixed on appleās side
Ah; I missed those releases; I will try it, hopefully it solves the issueā¦TBA
Solved - the iOS11 GM seed solved it.
Thanks for the tip!
Still not working for me. iOS 11 Release version. Error message says recording is interrupted by another application.
I have the same problem. Its been working half of the time when i had iOS11beta 6 and xcode9 beta.
I am having issues with Unity Patch 5.6.3p4, iOS11 and Xcode9.
Does it work for you every time JoMaHo? What is your secret???
No, Iām sorry to say it is very inconsistent; I do not have time to persue the issue now, just looking into this forum to see how it goes. Something is seriously wrong. 3rd party assets with Replaykit are also mailfunctioningā¦
Thank you for the reply JoMaHo!
Did anyone try prime31 replay kit? or EveryPlay?
Release note
Prime 31
Version 2.10
- iOS 11 compatibility update
Hi Everyone,
I spent the last 24 hours debugging this issue. Below is the relevant error. Iāve tested this with 5.6.3f1 and 5.6.3f4 and originally got it on 5.6.2f1. Even when you look at UnityReplayKit file in Xcode it tells you that you should be calling the function from main thread as a warning. It happens with iOS 11 GM and Xcode 9 GM. Unfortunately this error only happens about %20 so you have to try a few times.
Main Thread Checker: UI API called on a background thread: -[UIWindow initWithFrame:]
PID: 1646, TID: 582483, Thread name: (none), Queue name: com.apple.NSXPCConnection.m-user.com.apple.replayd, QoS: 0
Backtrace:
4 MYAPPNAME 0x00000001002b8288 -[UnityReplayKit createOverlayWindow] + 108
5 MYAPPNAME 0x00000001002b867c __33-[UnityReplayKit startRecording:]_block_invoke + 116
6 ReplayKit 0x000000019f90fafc + 1036
7 CoreFoundation 0x0000000184f136a0 + 144
8 CoreFoundation 0x0000000184df2820 + 292
9 ReplayKit 0x000000019f91b400 + 172
10 Foundation 0x0000000185a1dc9c + 860
11 Foundation 0x0000000185a220d4 + 520
12 libxpc.dylib 0x0000000184b71a0c + 60
13 libxpc.dylib 0x0000000184b71948 + 88
14 libdispatch.dylib 0x0000000184891758 + 16
15 libdispatch.dylib 0x00000001848a9060 + 324
16 libdispatch.dylib 0x000000018489ad00 + 200
17 libdispatch.dylib 0x000000018489b7d8 + 340
18 libdispatch.dylib 0x000000018489c200 + 400
19 libdispatch.dylib 0x00000001848a44a0 + 644
20 libsystem_pthread.dylib 0x0000000184b36fe0 _pthread_wqthread + 932
21 libsystem_pthread.dylib 0x0000000184b36c30 start_wqthread + 4
2017-09-25 16:29:51.782358-0400 MYAPPNAME[1646:582483] [reports] Main Thread Checker: UI API called on a background thread: -[UIWindow initWithFrame:]
PID: 1646, TID: 582483, Thread name: (none), Queue name: com.apple.NSXPCConnection.m-user.com.apple.replayd, QoS: 0
Backtrace:
4 MYAPPNAME 0x00000001002b8288 -[UnityReplayKit createOverlayWindow] + 108
5 MYAPPNAME 0x00000001002b867c __33-[UnityReplayKit startRecording:]_block_invoke + 116
6 ReplayKit 0x000000019f90fafc + 1036
7 CoreFoundation 0x0000000184f136a0 + 144
8 CoreFoundation 0x0000000184df2820 + 292
9 ReplayKit 0x000000019f91b400 + 172
10 Foundation 0x0000000185a1dc9c + 860
11 Foundation 0x0000000185a220d4 + 520
12 libxpc.dylib 0x0000000184b71a0c + 60
13 libxpc.dylib 0x0000000184b71948 + 88
14 libdispatch.dylib 0x0000000184891758 + 16
15 libdispatch.dylib 0x00000001848a9060 + 324
16 libdispatch.dylib 0x000000018489ad00 + 200
17 libdispatch.dylib 0x000000018489b7d8 + 340
18 libdispatch.dylib 0x000000018489c200 + 400
19 libdispatch.dylib 0x00000001848a44a0 + 644
20 libsystem_pthread.dylib 0x0000000184b36fe0 _pthread_wqthread + 932
21 libsystem_pthread.dylib 0x0000000184b36c30 start_wqthread + 4
2017-09-25 16:29:51.850471-0400 MYAPPNAME[1646:582483] *** Assertion failure in -[UIApplication _cachedSystemAnimationFenceCreatingIfNecessary:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3694.4.18/UIApplication.m:1706
2017-09-25 16:29:51.850819-0400 MYAPPNAME[1646:582483] [general] Exception caught during decoding of received reply to message āstartRecordingWindowLayerContextIDs:windowSize:microphoneEnabled:cameraEnabled:broadcast:systemRecording:captureEnabled:listenerEndpoint:withHandler:ā, dropping incoming message and calling failure block.
Exception: accessing _cachedSystemAnimationFence requires the main thread
Hey behradMan
Just wondering, are you trying to record with front camera on and mic?
I cant even get basic functionality of capturing a video w/ game audio workingā¦
Nope. Iām just recording the screen with mic(which the user can deny). I can start recording but sometimes the stop recording handler is not called with the error I pasted above. Iām also using the built-in replay kit api unity provides and not a plugin.
If anyone from Unity can take a look at the error, Iām pretty sure it should be a quick fix especially since Xcode highlights it as a warning in UnityReplayKit.mm file. Here is even the same error for another case:
hey guys, i just purchased prime31 replayKit and it worked.
we will hammer it tomorrow on a bunch of devices and will post the results
best I
I tried with Prime31 too and get the same error message.
Any update on this? I bought Prime31 and it had the same problemā¦
nope,
using Prime31 replayKit I get this error:
2017-10-02 22:52:37.526478-0700 XXXX[395:54101] screenRecorderDidChangeAvailability. is available: YES
ā applicationWillResignActive()
ā applicationDidBecomeActive()
2017-10-02 22:52:41.834835-0700 XXXX[395:54267] didStopRecordingWithError: Error Domain=com.apple.ReplayKit.RPRecordingErrorDomain Code=-5804 āFailed during recordingā UserInfo={NSLocalizedDescription=Failed during recording}
http://support.prime31.com/28859/replaykit-inconsistent-on-ios11?show=28914#c28914