Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPMoviePlayerController Crash #3081

Closed
ismailgulek opened this issue Apr 9, 2020 · 1 comment · Fixed by #3092
Closed

MPMoviePlayerController Crash #3081

ismailgulek opened this issue Apr 9, 2020 · 1 comment · Fixed by #3092
Assignees

Comments

@ismailgulek
Copy link
Contributor

It looks like MPMoviePlayerController is fully deprecated on Xcode 11. Application crashes when it is used. Need to replace it with AVPlayerViewController.

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'MPMoviePlayerController is no longer available. Use AVPlayerViewController in AVKit.'
*** First throw call stack:
(
   0   CoreFoundation                      0x00007fff23c7127e __exceptionPreprocess + 350
   1   libobjc.A.dylib                     0x00007fff513fbb20 objc_exception_throw + 48
   2   CoreFoundation                      0x00007fff23c710bc +[NSException raise:format:] + 188
   3   MediaPlayer                         0x00007fff2775ebac -[MPMoviePlayerController initWithContentURL:] + 96
   4   Riot                                0x0000000102f103b1 -[MediaPickerViewController validateSelectedVideo:responseHandler:] + 913
   5   Riot                                0x0000000102f0f6aa __44-[MediaPickerViewController didSelectAsset:]_block_invoke_2.312 + 394
   6   libdispatch.dylib                   0x00000001093a0dd4 _dispatch_call_block_and_release + 12
   7   libdispatch.dylib                   0x00000001093a1d48 _dispatch_client_callout + 8
   8   libdispatch.dylib                   0x00000001093afde6 _dispatch_main_queue_callback_4CF + 1500
   9   CoreFoundation                      0x00007fff23bd4049 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
   10  CoreFoundation                      0x00007fff23bceca9 __CFRunLoopRun + 2329
   11  CoreFoundation                      0x00007fff23bce066 CFRunLoopRunSpecific + 438
   12  GraphicsServices                    0x00007fff384c0bb0 GSEventRunModal + 65
   13  UIKitCore                           0x00007fff48092d4d UIApplicationMain + 1621
   14  Riot                                0x0000000102eb8d50 main + 112
   15  libdyld.dylib                       0x00007fff5227ec25 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
@ismailgulek ismailgulek self-assigned this Apr 9, 2020
ismailgulek added a commit to matrix-org/matrix-ios-kit that referenced this issue Apr 10, 2020
ismailgulek added a commit that referenced this issue Apr 10, 2020
fixes #3081

Signed-off-by: ismailgulek <gulekismail@gmail.com>
@ismailgulek
Copy link
Contributor Author

Closed with #3092

ismailgulek added a commit that referenced this issue May 22, 2020
fixes #3081

Signed-off-by: ismailgulek <gulekismail@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant