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

Exception on press back button on Moto C #4315

Closed
Anton111111 opened this issue May 29, 2018 · 1 comment
Closed

Exception on press back button on Moto C #4315

Anton111111 opened this issue May 29, 2018 · 1 comment
Assignees

Comments

@Anton111111
Copy link
Contributor

Anton111111 commented May 29, 2018

Issue description

I see issue on Moto C device. When i go out from activity with player i get exception.

Reproduction steps

You can easy reproduce it with demo from this repository.

Version of ExoPlayer being used

I see this error on 2.7.*, 2.8.0, 2.8.1 versions

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

Moto C (Android 7.0)

A full bug report captured from the device

Exception from logcat:
05-29 10:01:37.072 2828-3249/com.google.android.exoplayer2.demo E/ACodec: new surface holds onto more buffers (2) than planned for (1)
05-29 10:01:37.074 2828-2828/com.google.android.exoplayer2.demo I/SurfaceView: surfaceDestroyed callback -, this = android.view.SurfaceView{659b197 V.E...... ........ 0,0-480,270}
05-29 10:01:37.074 2828-3240/com.google.android.exoplayer2.demo E/ExoPlayerImplInternal: Internal runtime error.
    java.lang.IllegalArgumentException
        at android.media.MediaCodec.native_setSurface(Native Method)
        at android.media.MediaCodec.setOutputSurface(MediaCodec.java:1914)
        at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.setOutputSurfaceV23(MediaCodecVideoRenderer.java:915)
        at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.setSurface(MediaCodecVideoRenderer.java:405)
        at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.handleMessage(MediaCodecVideoRenderer.java:372)
        at com.google.android.exoplayer2.ExoPlayerImplInternal.deliverMessage(ExoPlayerImplInternal.java:861)
        at com.google.android.exoplayer2.ExoPlayerImplInternal.sendMessageToTarget(ExoPlayerImplInternal.java:829)
        at com.google.android.exoplayer2.ExoPlayerImplInternal.sendMessageInternal(ExoPlayerImplInternal.java:811)
        at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:328)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:203)
        at android.os.HandlerThread.run(HandlerThread.java:61)
05-29 10:01:37.074 2828-3240/com.google.android.exoplayer2.demo I/MediaCodec: [stop]line:640 [OMX.MTK.VIDEO.DECODER.AVC]+++
05-29 10:01:37.075 2828-3249/com.google.android.exoplayer2.demo D/ACodec: [OMX.MTK.VIDEO.DECODER.AVC] Executing::kWhatShutdown keepComponentAllocated 1
05-29 10:01:37.076 2828-3249/com.google.android.exoplayer2.demo D/ACodec: [OMX.MTK.VIDEO.DECODER.AVC] Now Executing->Idle
@Anton111111
Copy link
Contributor Author

I created pull request to fix it:
#4316

@botaydotcom botaydotcom self-assigned this May 29, 2018
@ojw28 ojw28 closed this as completed Jun 5, 2018
ojw28 pushed a commit that referenced this issue Jun 5, 2018
@google google locked and limited conversation to collaborators Nov 23, 2018
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