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

DefaultDrmSessionManager and OfflineLicenseHelper does a DRM leak #6140

Closed
sharish opened this issue Jul 8, 2019 · 2 comments
Closed

DefaultDrmSessionManager and OfflineLicenseHelper does a DRM leak #6140

sharish opened this issue Jul 8, 2019 · 2 comments
Assignees

Comments

@sharish
Copy link

sharish commented Jul 8, 2019

This is more of a code review than an issue where FrameworkMediaDrm getting initialized through static factory methods does not have a way to release the MediaDrm.

Initializing too many DefaultSessionManager|OfflineLicenseHelper this way end up throwing the following exception. Once this failure happen, any media from any application dependent on DRM fails to play the video. It's hard to figure out which application caused this DRM leak as well.

android.media.MediaCodec$CodecException: Error 0x80000000
at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:2752)
at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.drainOutputBuffer(MediaCodecRenderer.java:1427)
at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:654)
at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:575)
at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:326)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:209)
at android.os.HandlerThread.run(HandlerThread.java:67)
@google-oss-bot
Copy link
Collaborator

This issue does not seem to follow the issue template. Make sure you provide all the required information.

@ojw28
Copy link
Contributor

ojw28 commented Jul 8, 2019

Duplicate of #4721

@ojw28 ojw28 marked this as a duplicate of #4721 Jul 8, 2019
@ojw28 ojw28 closed this as completed Jul 8, 2019
@ojw28 ojw28 self-assigned this Jul 8, 2019
@google google locked and limited conversation to collaborators Oct 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants