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

Playback rate edge case #2774

Closed
ericharlow opened this issue May 4, 2017 · 1 comment
Closed

Playback rate edge case #2774

ericharlow opened this issue May 4, 2017 · 1 comment
Assignees
Labels

Comments

@ericharlow
Copy link

First off I have to say thank you so much for the new playback rate feature going back to android 4.1.

Issue description

I observed exoplayer crashing during the first second of audio playback.

Reproduction steps

When exoplayer is loading audio for the first time and before the first second of audio has played, seek to the end and change the playback rate.

Link to test content

Will work on emailing some test content. it is hls audio.

Version of ExoPlayer being used

2.4

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

Amazon KFFOWI Android 5.1.1 (api 22)

A full bug report captured from the device

Will email a full bug report. Here is the logcat.
E/ExoPlayerImplInternal: Internal runtime error. java.lang.ArrayIndexOutOfBoundsException: length=2712; index=2712 at com.google.android.exoplayer2.audio.Sonic.interpolate(Sonic.java:378) at com.google.android.exoplayer2.audio.Sonic.adjustRate(Sonic.java:405) at com.google.android.exoplayer2.audio.Sonic.processStreamInput(Sonic.java:490) at com.google.android.exoplayer2.audio.Sonic.queueInput(Sonic.java:127) at com.google.android.exoplayer2.audio.SonicAudioProcessor.queueInput(SonicAudioProcessor.java:151) at com.google.android.exoplayer2.audio.AudioTrack.processBuffers(AudioTrack.java:835) at com.google.android.exoplayer2.audio.AudioTrack.handleBuffer(AudioTrack.java:815) at com.google.android.exoplayer2.audio.MediaCodecAudioRenderer.processOutputBuffer(MediaCodecAudioRenderer.java:376) at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.drainOutputBuffer(MediaCodecRenderer.java:955) at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:510) at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:479) at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:308) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:135) at android.os.HandlerThread.run(HandlerThread.java:61)

@andrewlewis andrewlewis self-assigned this May 4, 2017
@ojw28 ojw28 added the bug label May 4, 2017
@andrewlewis
Copy link
Collaborator

It would be useful to have sample media and specific steps to reproduce this, if possible. Thanks!

ojw28 pushed a commit that referenced this issue May 8, 2017
Based on waywardgeek/sonic@7b441933.

Issue: #2774

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=155349817
@ojw28 ojw28 closed this as completed May 8, 2017
ojw28 pushed a commit that referenced this issue May 11, 2017
Based on waywardgeek/sonic@7b441933.

Issue: #2774

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=155349817
@google google locked and limited conversation to collaborators Sep 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants