13 Replies
      Latest reply on Mar 17, 2019 4:01 AM by Johnabre
      oxigenator Level 1 Level 1 (0 points)

        When I start the screen recording in ReplayKit, it throws an error "Error: Recording interrupted by multitasking and content resizing". It started happening in iOS 12.0.1 (I believe it was working fine in iOS 12.0 and definately in iOS 11). Any suggestions? Code is very simple:

         

                    RPScreenRecorder.shared().startRecording { (error) in

                        if let unwrappedError = error {

                            print("Error: \(unwrappedError.localizedDescription)")

                        } else {

                            print("-- started --")

                        }

                    }

        • Re: ReplayKit started throwing error in iOS 12
          Polyphonic Apple Staff Apple Staff (60 points)

          Could you file a bug report for this? If you could include a sample project that demonstrates the problem, that would be great.

           

          Please post the bug number here too.

          • Re: ReplayKit started throwing error in iOS 12
            designmax Level 1 Level 1 (0 points)

            Having the same issue. On top of this sometimes the screen from recording in preview is black.

            • Re: ReplayKit started throwing error in iOS 12
              wavewash Level 1 Level 1 (0 points)

              For anyone else experiencing the issue where you don't get the replaykit preview displaying after stop recording and you're getting the same error listed by OP "Error: Recording interrupted by multitasking and content resizing"

               

              You can get your device working again by resetting your settings on your device

               

              Settings -> General -> Reset -> Reset All Settings

               

              This isn't ideal but it's the only way I've been able to get the device to display the preview video again. This is a known issue according to the response I got on my bug report. My bug got listed as a duplicate.

              • Re: ReplayKit started throwing error in iOS 12
                hannesoid Level 1 Level 1 (0 points)

                My App was rejected in app review due to this error on iPad, iOS 12.1.4

                I created another radar 47948315 but cannot reproduce it myself, so no sample project. But I linked to the other radars.

                Do we know what the expected case for this error to reasonably pop up would be?

                • Re: ReplayKit started throwing error in iOS 12
                  Johnabre Level 1 Level 1 (0 points)

                  My app has same problem, "Error: Recording interrupted by multitasking and content resizing" with iOS 12.1.4, causing app to fail review  (For reference it's a Unity app using ARKit)

                   

                  I thought I had it mitigated - I moved the initial ReplayKit dialog popup to title screen before ARKit is initialized and I got no reproduction in 30 iPad reboots - but I submitted and was rejected again   I think app reviewers may be getting this error more frequently than I am...

                   

                  (Submitted to Bug Reporter just now - https://bugreport.apple.com/web/?problemID=48336197 )

                    • Re: ReplayKit started throwing error in iOS 12
                      RustamKhisamov Level 1 Level 1 (0 points)

                      I haven't any issue on my iPad mini.  I got this error on iPhones (7, SE, 6+) only on my side :-(

                      • Re: ReplayKit started throwing error in iOS 12
                        Johnabre Level 1 Level 1 (0 points)

                        After looking at system logs more, like others my theory is that permissions popup is interfering with ReplayKit ^^;

                         

                        Here's what the logs look like for me when recording fails - permission alert activates, then ReplayKit starts, then permission alert deactivates:

                        default 19:19:03.481967 +0900 SpringBoard Activation - Presenting <SBUserNotificationAlert: 0x108babf30; title: “/*..*/; source: replayd; pid: 243> with presenter: <SBUnlockedAlertItemPresenter: 0x28120d580>

                        default 19:19:06.544478 +0900 deleted com.apple.replayd-cache-delete : 64

                        default 19:19:06.548708 +0900 atc <private>|including purgeable user data from CacheDelete: /*..*/

                        default 19:19:07.101506 +0900 replayd user acknowledged recording, but microphone recording is disabled

                        default 19:19:07.101569 +0900 replayd starting...

                        default 19:19:07.101671 +0900 replayd broadcast disabled

                        default 19:19:07.101733 +0900 replayd RPRecordingSession: disableBroadcast

                        default 19:19:07.101879 +0900 replayd RPRecordingManager:interruptRecordingSessions

                        default 19:19:07.102619 +0900 replayd RPRecordingSession: startSession

                        default 19:19:07.102833 +0900 replayd RPConnectionManager: startRecordingWindowLayerContextIDs completed

                        default 19:19:07.103314 +0900 SpringBoard Deactivated alertItem: <SBUserNotificationAlert: 0x108babf30; title: “/*..*/; source: replayd; pid: 243>

                         

                        Here's logs for the identical logic when recording succeeds - permission alert activates, then permission alert deactivates, then ReplayKit starts:

                        default 19:34:45.666900 +0900 SpringBoard Activation - Presenting <SBUserNotificationAlert: 0x10b302af0; title: “/*..*/; source: replayd; pid: 234> with presenter: <SBUnlockedAlertItemPresenter: 0x283441a60>

                        default 19:34:46.836707 +0900 SpringBoard Deactivated alertItem: <SBUserNotificationAlert: 0x10b302af0; title: “/*..*/; source: replayd; pid: 234>

                        default 19:34:46.836772 +0900 replayd user acknowledged recording, but microphone recording is disabled

                        default 19:34:46.836811 +0900 replayd starting...

                        default 19:34:46.836884 +0900 replayd broadcast disabled

                        default 19:34:46.836923 +0900 replayd RPRecordingSession: disableBroadcast

                        default 19:34:46.836979 +0900 replayd RPRecordingManager:interruptRecordingSessions

                        default 19:34:46.837591 +0900 replayd RPRecordingSession: startSession

                        default 19:34:46.838125 +0900 SpringBoard [FBServiceFacilityServer] Client replayd:234 connected to service com.apple.frontboardservices.display-layout-monitor

                        default 19:34:46.838269 +0900 replayd RPConnectionManager: startRecordingWindowLayerContextIDs completed