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

ExoPlaybackException, codec init failure #5312

Closed
sssprog opened this issue Dec 25, 2018 · 2 comments
Closed

ExoPlaybackException, codec init failure #5312

sssprog opened this issue Dec 25, 2018 · 2 comments
Assignees

Comments

@sssprog
Copy link

sssprog commented Dec 25, 2018

Issue description

ExoPlaybackException. Issue happens on Huawei P10 lite with android 8.0. Device name HWWAS-H. Model name WAS-LX1. Code name passed to codecNeedsSetOutputSurfaceWorkaround is OMX.IMG.MSVDX.Decoder.AVC

When we return true in codecNeedsSetOutputSurfaceWorkaround for this device no exception happens.

I guess this device needs the workaround.

Reproduction steps

We have SimpleExoPlayer and PlayerView in an activity. On first activity launch video is played normally. If activity is paused, than resumed we get exception. In onPause we release player and in onResume create new instance of SimpleExoPlayer.

Link to test content

We tested on real project, don't have test project.

Version of ExoPlayer being used

2.9.2

Device(s) and version(s) of Android being used

Huawei P10 lite with android 8.0.

A full bug report captured from the device

com.google.android.exoplayer2.ExoPlaybackException
   at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(SourceFile:354)
   at android.os.Handler.dispatchMessage(Handler.java:104)
   at android.os.Looper.loop(Looper.java:166)
   at android.os.HandlerThread.run(HandlerThread.java:65)
Caused by: java.lang.IllegalArgumentException
   at android.media.MediaCodec.native_setSurface(Native Method)
   at android.media.MediaCodec.setOutputSurface(MediaCodec.java:1967)
   at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.setOutputSurfaceV23(SourceFile:918)
   at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.setSurface(SourceFile:408)
   at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.handleMessage(SourceFile:375)
   at com.google.android.exoplayer2.ExoPlayerImplInternal.deliverMessage(SourceFile:861)
   at com.google.android.exoplayer2.ExoPlayerImplInternal.sendMessageToTarget(SourceFile:829)
   at com.google.android.exoplayer2.ExoPlayerImplInternal.sendMessageInternal(SourceFile:811)
   at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(SourceFile:328)
   at android.os.Handler.dispatchMessage(Handler.java:104) 
   at android.os.Looper.loop(Looper.java:166) 
   at android.os.HandlerThread.run(HandlerThread.java:65) 
@AquilesCanta
Copy link
Contributor

Please provide a full bugreport. You can obtain it by running adb bugreport after reproducing the issue. Thanks!

@tonihei
Copy link
Collaborator

tonihei commented Jan 2, 2019

Thanks for reporting. We'll add the device to the workaround list soon.

ojw28 pushed a commit that referenced this issue Jan 8, 2019
@ojw28 ojw28 closed this as completed Jan 8, 2019
ojw28 pushed a commit that referenced this issue Jan 15, 2019
@google google locked and limited conversation to collaborators May 16, 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

4 participants