swift – iOS crash – thunk for @escaping @callee_guaranteed () -> ()

0
11


I’ve a following crash which happens in dwell app, I can not reproduce it throughout growth. Log is from Crashlytics.

I can not appear to determine the explanation for the crash, any assist?

Crash Log

Crashed: com.apple.main-thread
0  MyiOSApp                        0x1b414 MyViewController.initializePlayer() + 69 (MyViewController.swift:69)
1  MyiOSApp                        0x1b750 closure #1 in MyViewController.playWaitingRoomVideo(playFromStart:) + 75 (MyViewController.swift:75)
2  MyiOSApp                        0x9e544 thunk for @escaping @callee_guaranteed () -> () + 4304102724 (<compiler-generated>:4304102724)
3  libdispatch.dylib              0x1e6c _dispatch_call_block_and_release + 32
4  libdispatch.dylib              0x3a30 _dispatch_client_callout + 20
5  libdispatch.dylib              0x11f48 _dispatch_main_queue_drain + 928
6  libdispatch.dylib              0x11b98 _dispatch_main_queue_callback_4CF + 44
7  CoreFoundation                 0x51800 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
8  CoreFoundation                 0xb704 __CFRunLoopRun + 2532
9  CoreFoundation                 0x1ebc8 CFRunLoopRunSpecific + 600
10 GraphicsServices               0x1374 GSEventRunModal + 164
11 UIKitCore                      0x514648 -[UIApplication _run] + 1100
12 UIKitCore                      0x295d90 UIApplicationMain + 364
13 MyiOSApp                        0x8348 major + 22 (AppDelegate.swift:22)
14 ???                            0x104561ce4 (Lacking)

MyViewController.swift

Heres an image of my code with line numbers

    func initializePlayer() {
        guard let path = URL(string: "https://www.youtube.com/watch?v=GHDHPy8IByI") else {
            debugPrint("Failed to seek out video on server")
            return
        }
        self.participant = AVPlayer(url: path)
        guard let playerView = self.playerView else {
            return
        }
        playerView.playerLayer.videoGravity = AVLayerVideoGravity.resizeAspect
        playerView.participant = self.participant
    }

    func playWaitingRoomVideo(playFromStart: Bool = false) {
        DispatchQueue.major.async {
            guard let participant = self.participant else {
                self.initializePlayer()
                self.playWaitingRoomVideo()
                return
            }

            if participant.standing == .readyToPlay && participant.timeControlStatus != .taking part in && self.viewIfLoaded?.window != nil {
                if playFromStart {
                    participant.search(to: CMTime.zero)
                }
                participant.play()
            }
        }
    }

LEAVE A REPLY

Please enter your comment!
Please enter your name here