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

[iOS] sporadically crashes with NSInvalidArgumentException when Play() overload with stopAt argument is called #888

Closed
1 task
gsgou opened this issue Mar 1, 2023 · 0 comments

Comments

@gsgou
Copy link
Contributor

gsgou commented Mar 1, 2023

🐛 Bug Report

when Play() overload with stopAt argument is called, iOS app crashes sporadically when end of playback time is reached.

System.Exception: Objective-C exception thrown. Name: NSInvalidArgumentException Reason: An instance of AVPlayer cannot remove a time observer that was added by a different instance of AVPlayer. Native stack trace: 0 CoreFoundation 0x0000000180483c94 55C76F8E-BCC9-3A4C-9F62-16EAC0BA8AB8 + 601236 1 libobjc.A.dylib 0x0000000197ca8ee4 objc_exception_throw + 56 2 AVFCore 0x0000000189210560 2C66AECB-8B65-371D-9509-079EB66707D3 + 214368

Expected behavior

when Play() overload with stopAt argument is called, iOS app does not crash sporadically when end of playback time is reached.

Configuration

Version: 1.1.1

Platform:

  • 📱
    iOS 15.7.3
    iOS 16.3
martijn00 added a commit that referenced this issue Mar 4, 2023
fixes issue #888, removing already removed observer causes app termination due to NSInvalidArgumentException
BajakiGabesz pushed a commit to BajakiGabesz/XamarinMediaManager that referenced this issue Mar 16, 2023
fixes issue Baseflow#888, removing already removed observer causes app termination due to NSInvalidArgumentException
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

No branches or pull requests

2 participants