Simple-Gallery
Simple-Gallery copied to clipboard
Simple Gallery is triggering ExoPlayer issue 6188
app version: 6.21.2 from F-Droid android version: LineageOS 15.1 based on AOSP 8.1
Hello, today a family member complained that Simple Gallery wasn't able to play a couple of their videos. I enabled adb and collected a logcat and it seems that https://github.com/google/ExoPlayer/issues/6168 is triggered in that case.
If that is true, then some people commented that they were able to fix the issue by changing how they use ExoPlayer in their code: https://github.com/google/ExoPlayer/issues/6168#issuecomment-834086816
I am unsure about the specific reproduction steps, here is what i know:
- The issue could be reproduced on-device by trying to play seemingly specific videos while others work fine.
- The issue could be reproduced after uninstalling and reinstalling Simple Gallery, without changing any settings.
- The issue could no longer be reproduced after rebooting and retrying to play a video which previousy triggered the bug.
- The issue could not be reproduced by copying one of the affected video files to another device, same model and same ROM.
Stacktrace from adb logcat
03-06 20:37:18.213 5290 5290 I ExoPlayerImpl: Init 313e87a [ExoPlayerLib/2.9.6] [santoni, Redmi 4X, Xiaomi, 27] 03-06 20:37:18.241 5290 6656 I OMXClient: Treble IOmx obtained 03-06 20:37:18.241 17784 24406 I OMXMaster: makeComponentInstance(OMX.qcom.video.decoder.avc) in [email protected] process 03-06 20:37:18.248 17784 24406 I OMX-VDEC-1080P: Video slvp perflock acquired 03-06 20:37:18.485 17784 24406 I OMX-VDEC-1080P: component_init: OMX.qcom.video.decoder.avc : fd=-1 03-06 20:37:18.485 17784 24406 E OMX-VDEC-1080P: Omx_vdec::Comp Init Returning failure, errno 12 03-06 20:37:18.486 17784 24406 E OMX-VDEC-1080P: eventfd_write failed for fd: -1, errno = 9, force stop async_thread 03-06 20:37:18.486 17784 24406 E OMX-VDEC-1080P: Invalid input: -1 03-06 20:37:18.486 17784 24406 I OMX-VDEC-1080P: Exit OMX vdec Destructor: fd=-1 03-06 20:37:18.486 17784 24406 I OMX-VDEC-1080P: Video slvp perflock released 03-06 20:37:18.487 17784 24406 E /vendor/bin/hw/[email protected]: Failed to allocate omx component 'OMX.qcom.video.decoder.avc' err=InsufficientResources(0x80001000) 03-06 20:37:18.487 5290 6656 W ACodec : Allocating component 'OMX.qcom.video.decoder.avc' failed, try next one. 03-06 20:37:18.487 5290 6656 E ACodec : Unable to instantiate codec 'OMX.qcom.video.decoder.avc' with err 0xfffffff4. 03-06 20:37:18.487 5290 6656 E ACodec : signalError(omxError 0xfffffff4, internalError -12) 03-06 20:37:18.487 5290 6655 E MediaCodec: Codec reported err 0xfffffff4, actionCode 0, while in state 1 03-06 20:37:18.492 5290 6653 W MediaCodec-JNI: try to release MediaCodec from JMediaCodec::~JMediaCodec()... 03-06 20:37:18.492 5290 6653 W MediaCodec-JNI: done releasing MediaCodec from JMediaCodec::~JMediaCodec(). 03-06 20:37:18.492 5290 6653 W MediaCodecRenderer: Failed to initialize decoder: OMX.qcom.video.decoder.avc 03-06 20:37:18.492 5290 6653 W MediaCodecRenderer: android.media.MediaCodec$CodecException: Failed to initialize OMX.qcom.video.decoder.avc, error 0xfffffff4 03-06 20:37:18.492 5290 6653 W MediaCodecRenderer: at android.media.MediaCodec.native_setup(Native Method) 03-06 20:37:18.492 5290 6653 W MediaCodecRenderer: at android.media.MediaCodec.(MediaCodec.java:1794) 03-06 20:37:18.492 5290 6653 W MediaCodecRenderer: at android.media.MediaCodec.createByCodecName(MediaCodec.java:1775) 03-06 20:37:18.492 5290 6653 W MediaCodecRenderer: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.T(SourceFile:6) 03-06 20:37:18.492 5290 6653 W MediaCodecRenderer: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.U(SourceFile:9) 03-06 20:37:18.492 5290 6653 W MediaCodecRenderer: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.V(SourceFile:11) 03-06 20:37:18.492 5290 6653 W MediaCodecRenderer: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.f0(SourceFile:5) 03-06 20:37:18.492 5290 6653 W MediaCodecRenderer: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.X(SourceFile:22) 03-06 20:37:18.492 5290 6653 W MediaCodecRenderer: at x3.e.X(SourceFile:1) 03-06 20:37:18.492 5290 6653 W MediaCodecRenderer: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(SourceFile:6) 03-06 20:37:18.492 5290 6653 W MediaCodecRenderer: at com.google.android.exoplayer2.f.h(SourceFile:12) 03-06 20:37:18.492 5290 6653 W MediaCodecRenderer: at com.google.android.exoplayer2.f.handleMessage(SourceFile:16) 03-06 20:37:18.492 5290 6653 W MediaCodecRenderer: at android.os.Handler.dispatchMessage(Handler.java:102) 03-06 20:37:18.492 5290 6653 W MediaCodecRenderer: at android.os.Looper.loop(Looper.java:164) 03-06 20:37:18.492 5290 6653 W MediaCodecRenderer: at android.os.HandlerThread.run(HandlerThread.java:65) 03-06 20:37:18.493 5290 6653 E ExoPlayerImplInternal: Playback error. 03-06 20:37:18.493 5290 6653 E ExoPlayerImplInternal: com.google.android.exoplayer2.ExoPlaybackException: com.google.android.exoplayer2.mediacodec.MediaCodecRenderer$DecoderInitializationException: Decoder init failed: OMX.qcom.video.decoder.avc, Format(1, null, null, video/avc, null, -1, null, [640, 352, -1.0], [-1, -1]) 03-06 20:37:18.493 5290 6653 E ExoPlayerImplInternal: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.V(SourceFile:28) 03-06 20:37:18.493 5290 6653 E ExoPlayerImplInternal: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.f0(SourceFile:5) 03-06 20:37:18.493 5290 6653 E ExoPlayerImplInternal: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.X(SourceFile:22) 03-06 20:37:18.493 5290 6653 E ExoPlayerImplInternal: at x3.e.X(SourceFile:1) 03-06 20:37:18.493 5290 6653 E ExoPlayerImplInternal: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(SourceFile:6) 03-06 20:37:18.493 5290 6653 E ExoPlayerImplInternal: at com.google.android.exoplayer2.f.h(SourceFile:12) 03-06 20:37:18.493 5290 6653 E ExoPlayerImplInternal: at com.google.android.exoplayer2.f.handleMessage(SourceFile:16) 03-06 20:37:18.493 5290 6653 E ExoPlayerImplInternal: at android.os.Handler.dispatchMessage(Handler.java:102) 03-06 20:37:18.493 5290 6653 E ExoPlayerImplInternal: at android.os.Looper.loop(Looper.java:164) 03-06 20:37:18.493 5290 6653 E ExoPlayerImplInternal: at android.os.HandlerThread.run(HandlerThread.java:65) 03-06 20:37:18.493 5290 6653 E ExoPlayerImplInternal: Caused by: com.google.android.exoplayer2.mediacodec.MediaCodecRenderer$DecoderInitializationException: Decoder init failed: OMX.qcom.video.decoder.avc, Format(1, null, null, video/avc, null, -1, null, [640, 352, -1.0], [-1, -1]) 03-06 20:37:18.493 5290 6653 E ExoPlayerImplInternal: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.U(SourceFile:12) 03-06 20:37:18.493 5290 6653 E ExoPlayerImplInternal: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.V(SourceFile:11) 03-06 20:37:18.493 5290 6653 E ExoPlayerImplInternal: ... 9 more 03-06 20:37:18.493 5290 6653 E ExoPlayerImplInternal: Caused by: android.media.MediaCodec$CodecException: Failed to initialize OMX.qcom.video.decoder.avc, error 0xfffffff4 03-06 20:37:18.493 5290 6653 E ExoPlayerImplInternal: at android.media.MediaCodec.native_setup(Native Method) 03-06 20:37:18.493 5290 6653 E ExoPlayerImplInternal: at android.media.MediaCodec. (MediaCodec.java:1794) 03-06 20:37:18.493 5290 6653 E ExoPlayerImplInternal: at android.media.MediaCodec.createByCodecName(MediaCodec.java:1775) 03-06 20:37:18.493 5290 6653 E ExoPlayerImplInternal: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.T(SourceFile:6) 03-06 20:37:18.493 5290 6653 E ExoPlayerImplInternal: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.U(SourceFile:9) 03-06 20:37:18.493 5290 6653 E ExoPlayerImplInternal: ... 10 more