Closed yukuku closed 6 years ago
Please try on a real device and let us know the result.
Related #3514
I tried to play the APK on OnePlus 5 (Android 7.1). Same stack trace appeared.
12-29 15:04:54.005 21905 D audioFormatChanged [0.10, id=null, mimeType=audio/raw, bitrate=705600, channels=1, sample_rate=44100]
12-29 15:04:54.005 22945 ExoPlayerImplInternal E Internal runtime error.
12-29 15:04:54.005 22945 E java.lang.IllegalStateException: Buffer too small (32768 < 131070)
12-29 15:04:54.005 22945 E at com.google.android.exoplayer2.decoder.DecoderInputBuffer.createReplacementByteBuffer(DecoderInputBuffer.java:160)
12-29 15:04:54.005 22945 E at com.google.android.exoplayer2.decoder.DecoderInputBuffer.ensureSpaceForWrite(DecoderInputBuffer.java:110)
12-29 15:04:54.005 22945 E at com.google.android.exoplayer2.source.SampleQueue.read(SampleQueue.java:318)
12-29 15:04:54.005 22945 E at com.google.android.exoplayer2.source.ExtractorMediaPeriod.readData(ExtractorMediaPeriod.java:376)
12-29 15:04:54.005 22945 E at com.google.android.exoplayer2.source.ExtractorMediaPeriod$SampleStreamImpl.readData(ExtractorMediaPeriod.java:641)
12-29 15:04:54.005 22945 E at com.google.android.exoplayer2.BaseRenderer.readSource(BaseRenderer.java:280)
12-29 15:04:54.005 22945 E at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.feedInputBuffer(MediaCodecRenderer.java:663)
12-29 15:04:54.005 22945 E at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:553)
12-29 15:04:54.005 22945 E at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:560)
12-29 15:04:54.005 22945 E at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:306)
12-29 15:04:54.005 22945 E at android.os.Handler.dispatchMessage(Handler.java:98)
12-29 15:04:54.005 22945 E at android.os.Looper.loop(Looper.java:154)
12-29 15:04:54.005 22945 E at android.os.HandlerThread.run(HandlerThread.java:61)
12-29 15:04:54.006 21905 EventLogger D state [0.10, true, R]
12-29 15:04:54.007 21905 D loading [false]
12-29 15:04:54.009 22945 FLACParser V FLACParser::~FLACParser
12-29 15:04:54.024 21905 EventLogger E playerFailed [0.12]
12-29 15:04:54.024 21905 E com.google.android.exoplayer2.ExoPlaybackException
12-29 15:04:54.024 21905 E at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:360)
12-29 15:04:54.024 21905 E at android.os.Handler.dispatchMessage(Handler.java:98)
12-29 15:04:54.024 21905 E at android.os.Looper.loop(Looper.java:154)
12-29 15:04:54.024 21905 E at android.os.HandlerThread.run(HandlerThread.java:61)
12-29 15:04:54.024 21905 E Caused by: java.lang.IllegalStateException: Buffer too small (32768 < 131070)
12-29 15:04:54.024 21905 E at com.google.android.exoplayer2.decoder.DecoderInputBuffer.createReplacementByteBuffer(DecoderInputBuffer.java:160)
12-29 15:04:54.024 21905 E at com.google.android.exoplayer2.decoder.DecoderInputBuffer.ensureSpaceForWrite(DecoderInputBuffer.java:110)
12-29 15:04:54.024 21905 E at com.google.android.exoplayer2.source.SampleQueue.read(SampleQueue.java:318)
12-29 15:04:54.024 21905 E at com.google.android.exoplayer2.source.ExtractorMediaPeriod.readData(ExtractorMediaPeriod.java:376)
12-29 15:04:54.024 21905 E at com.google.android.exoplayer2.source.ExtractorMediaPeriod$SampleStreamImpl.readData(ExtractorMediaPeriod.java:641)
12-29 15:04:54.024 21905 E at com.google.android.exoplayer2.BaseRenderer.readSource(BaseRenderer.java:280)
12-29 15:04:54.024 21905 E at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.feedInputBuffer(MediaCodecRenderer.java:663)
12-29 15:04:54.024 21905 E at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:553)
12-29 15:04:54.024 21905 E at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:560)
12-29 15:04:54.024 21905 E at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:306)
12-29 15:04:54.024 21905 E ... 3 more
12-29 15:04:54.024 21905 D audioDisabled [0.12]
12-29 15:04:54.025 21905 D state [0.12, true, I]
adb bugreport
is sent by email with subject #3648 adb bugreport from OnePlus 5
Marking as duplicate of #3514.
Issue description
Cannot play the attached FLAC file with ExoPlayer FLAC extension already compiled (with the JNI). The file can be played in Chrome and VLC and can be decoded using the command line
flac
.Reproduction steps
Upload the extracted attachment somewhere. Add an entry to the demo app:
Link to test content
recording-20171228-163208.flac.zip
Version of ExoPlayer being used
2.6.0, checked out at 1b66908f7d79b6891d8d99705470797640457e72 (
release-v2
)Device(s) and version(s) of Android being used
Official Android emulator API 25. It seems to be software issue, not tied to hardware media player.
A full bug report captured from the device
Relevant stack trace:
adb bugreport
is sent to dev.exoplayer@gmail.com because I fear there is some sensitive info on the report.