-
Notifications
You must be signed in to change notification settings - Fork 6k
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
IllegalStateException when releasing DefaultDrmSession #9392
Comments
The stack trace provided indicates that a I've spent some time studying the code in I wonder if you could provide some extra info about how your app configures DRM playback that might help guide me towards an answer:
|
Hey @fpitters. We need more information to resolve this issue but there hasn't been an update in 14 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Hello, we have the same problem. We are using version 2.15 and we cannot replicate the problem, we can only see it through Firebase Crashlytics
We are using MediaSource
We are directly instantiating DefaultDrmSessionManager
No, We don't call directly this methods.
No, We don't are setting any value. I hope it can help with the solution. |
@Luisemtza Are you able to post the code snippet you use to instantiate your Do you instantiate a new |
Hi @icbaker, of corse:
We are instantiate a new Regards |
Thanks! That all looks pretty normal, nothing suspicious jumps out that would relate to the exception in this issue (which suggests there is a bug somewhere in Aside: This is not correct - you shouldn't be returning
You should return a |
Issue: #9392 reports occasional IllegalStateExceptions from release() in crashlytics,`with no way to reproduce locally. It seems likely there is a bug somewhere in DRM handling, and ideally we would find that and fix it. However we haven't been able to find the problem, and in the meantime these exceptions cause the entire app to crash. Although this is arguably useful from a debugging perspective, it's obviously a poor experience for developers and users, since all we're actually trying to do is release the session, so maybe we shouldn't strictly care that it's already released? This change replaces the exception with an error log, which might be a useful debugging hint if we see other DRM unexpected behaviour due to references to released sessions being held for too long. PiperOrigin-RevId: 403942546
Hey @fpitters. We need more information to resolve this issue but there hasn't been an update in 14 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
The change linked above stops throwing an exception in this case (logs an error instead). I'm going to close this issue, even though this isn't quite as satisfactory as finding & fixing the actual underlying bug. |
We are seeing a weird crash (on Firebase Crashlytics) after bumping to 2.14.2 (from 2.13.2) with the following stacktrace:
We haven't been able to reproduce it locally.
The incidence is low, few ~5 out of 25K a day and not device specific, happening across all brands. Although Huawei devices have 40% of the share.
We use Dash with Widevine encryption.
I thought this issue was related: #9193 but it might be is not.
We'll update the status in the upcoming weeks once we move to 2.15.0.
Thanks
The text was updated successfully, but these errors were encountered: