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

LoadTask: Unexpected exception loading stream #2486

Closed
Merseyside opened this issue Feb 22, 2017 · 1 comment
Closed

LoadTask: Unexpected exception loading stream #2486

Merseyside opened this issue Feb 22, 2017 · 1 comment

Comments

@Merseyside
Copy link

Merseyside commented Feb 22, 2017

Hello! I trying to play a mp3 file and it throws an exception below. I checked it with mp3 validator, its ok. AudioTrack class plays it well! Send mp3 file on your mail dev.exoplayer@gmail.com

java.lang.IllegalArgumentException
    at java.util.Arrays.copyOfRange(Arrays.java:2663)
    at com.google.android.exoplayer2.metadata.id3.Id3Decoder.decodePrivFrame(Id3Decoder.java:414)
    at com.google.android.exoplayer2.metadata.id3.Id3Decoder.decodeFrame(Id3Decoder.java:293)
    at com.google.android.exoplayer2.metadata.id3.Id3Decoder.decode(Id3Decoder.java:96)
    at com.google.android.exoplayer2.extractor.mp3.Mp3Extractor.peekId3Data(Mp3Extractor.java:287)
    at com.google.android.exoplayer2.extractor.mp3.Mp3Extractor.synchronize(Mp3Extractor.java:209)
    at com.google.android.exoplayer2.extractor.mp3.Mp3Extractor.sniff(Mp3Extractor.java:115)
    at com.google.android.exoplayer2.source.ExtractorMediaPeriod$ExtractorHolder.selectExtractor(ExtractorMediaPeriod.java:693)
    at com.google.android.exoplayer2.source.ExtractorMediaPeriod$ExtractingLoadable.load(ExtractorMediaPeriod.java:628)
    at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:295)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
    at java.util.concurrent.FutureTask.run(FutureTask.java:237)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
    at java.lang.Thread.run(Thread.java:818)    
@ojw28
Copy link
Contributor

ojw28 commented Feb 22, 2017

The mp3 file contains malformed ID3 data. Uploading it to http://tagmp3.net, making no changes and downloading the result removes the malformed ID3 data and results in a playable file.

That said, we'll make a change to handle (by ignoring) this type of malformed data, since it's trivial for us to do so.

ojw28 added a commit that referenced this issue Feb 23, 2017
Issue: #2486

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=148217936
@google google locked and limited conversation to collaborators Jun 30, 2017
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

2 participants