-
Notifications
You must be signed in to change notification settings - Fork 432
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
Increase in ERROR_CODE_FAILED_RUNTIME_CHECK=1004
errors after seek on Android 14 since 1.3.0
#1641
Comments
Does this problem only happen for Widevine protected content? (You may not be able to say that if your app doesn't play anything else). The most suspicious change that could make a difference for 1.3.0+ and Android 14+ specifically is e5aa692. Could you try calling |
The app only plays Widevine DRM-protected content, so I can't say if it happens for anything else.
Thank you for the suggestion 👍 We have set this flag to |
Hello @tonihei, it looks like setting |
Thanks for the verification! It looks like there might be a bug in the Android platform implementation of this performance optimization then. I'll try to follow up with the relevant team to see if there is something we can do. [internal ref: b/362450802] |
I can confirm exactly the same behavior on a Samsung SM-X200, we can consistently reproduce the issue on version 1.5.0 (we upgraded from 1.2.0 and see the problem since then). We play a mixture of plain mp4's in a playlist together with Widevine L1 protected DASH streams. Every time we seek in the DASH stream, we get exactly the same playback failure and stacktrace as in the issue description. I can confirm that calling @tonihei Do you happen have any update regarding this issue? It feels slightly uncomfortable to rely on an experimental flag to fix playback issues in production. |
There is no update from the relevant platform team yet I'm afraid. Since the feature doesn't seem to be reliable, I'm going to flip the default back to "don't use it" until we get more information when a fix will be available. |
Forgot to address this part: The method is "experimental" because we intend to remove it without further deprecation as soon as we are satisfied that no setter is needed. But it simply turns the feature on and off, so it's safe to use (just be prepared for it to disappear in a future update of the library). |
@maartenvgpersgroep Does that mean you have a reproducible example on a local test device (and not just reports from users)? If so, is there a way to share the reproduction steps with us and/or provide a bugreport after the issue? You can send information to android-media-github@google.com with "Issue #1641" in the subject if needed and report back here once you've done that. If we have a way to directly reproduce the issue it's much more likely to find a root cause and fix. |
@tonihei I have double-checked with our QA, and we cannot reproduce the issue consistently and reliably, but we can reproduce it often. Sometimes it fails a couple of times in a row, sometimes it doesn't happen at all. But it's reproducible enough to capture a bug report. I have sent an email with our setup, reproduction steps as well as a bugreport to android-media-github@google.com. I hope it helps. |
Thanks for the additional information! I forwarded that to the platform team, so hopefully it's helpful to investigate the issue. |
There are reproducible issues with codec timeouts when using this API, so we disable it entirely until we know more about potential fixes and where they are available. Issue: #1641 #cherrypick PiperOrigin-RevId: 707025950
Version
Media3 1.3.0
More version details
No response
Devices that reproduce the issue
We were not able to reproduce the issue locally yet, but here are some stats from production.
The issue is most prominent on Android 14:
Devices:
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Not tested
Reproduction steps
Based on the user behavior, most users face this issue after seeking the video. Examples:
Expected result
The media plays successfully.
Actual result
Playback crashes with the
ERROR_CODE_FAILED_RUNTIME_CHECK=1004
error.The diagnostic info is:
android.media.MediaCodec.error_neg_110
https://developer.android.com/reference/android/media/MediaPlayer#MEDIA_ERROR_TIMED_OUT
Media
DASH H.264, Widevine
Bug Report
adb bugreport
to android-media-github@google.com after filing this issue.The text was updated successfully, but these errors were encountered: