-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Softcrash on invalid ID3 validation #2604
Comments
We have this same issue playing some downloaded files. Sample mp3 attached. It feels like ID3 parse errors for most fields shouldn't stop playback? |
I think we're already at the point where most ID3 parse errors don't stop playback. I'm hesitant to put a big try/catch block around the whole thing; we're pretty close. Seems there are still a few edge cases we're failing on, however. We'll get the two raised here fixed. After those fixes go in, please let us know if you're still encountering failures. We can then decide whether the continue playing whack-a-mole for a little bit longer, or to give up and go for the brute force try/catch. |
- Validate frames for majorVersion 2 and 3 as well as 4 - Don't throw if top bit of frameSize is non-zero. Issue: #2604 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=151348836
Pretty sure the issues here are fixed in |
Yup, issue is fixed and media plays. Any update on when it would be moved into release for maven/bintray access? (as opposed to building locally; company doesn't like using a local aar, even if unchanged from master) |
Sometime this week, with any luck. |
Is this fix released? If yes which version please? |
Fixed in 2.4.0. By the way, you can find this out by clicking on the referenced commit(s) in the issue thread and then looking at the tags listed at the bottom of the commit message :) (it's not obvious, but they're there!). |
Sure. Thanks @ojw28 |
Issue description
ExoPlayer 2.x isn't supporting corrupt ID3 tags while the rest of the audio is still playable.
Reproduction steps
Returned ID3 data (bytes):
Proposed fix
id3Decoder.decode(...) @ ln 131
Audio plays successfully with the proposed fix. ID3 tag is scrambled, attempt to salvage anything wouldn't work anyway. Audiobooks is also being notified of their corrupt book, but the problem could happen with others too (outside of audiobooks' books).
Version of ExoPlayer being used
v2.2.0 and v2.3.0
Device(s) and version(s) of Android being used
Issue is reproducible on any device used
A full bug report captured from the device
Issue is linked to known corrupt ID3 tags, device report not needed.
The text was updated successfully, but these errors were encountered: