Crash during decoder switch from GAV1 (extension) to AVC (native)
Open
@rohitjoins is already working on this.
Since Jul 9, 2025.
bug
needs triage
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
Version
Media3 main branch
More version details
Latest release branch (ae9a2339679826f870690092509a135dffc0d7e4)
Devices that reproduce the issue
- Infinix Note 30
- vivo iQOO 13
- Redmi Note 8 Pro
- etc
Devices that do not reproduce the issue
None
Reproducible in the demo app?
Yes
Reproduction steps
- Compile Gav1 lib and include it in the demo app
- Set the renderers factory to use
EXTENSION_RENDERER_MODE_PREFER - Play AV1 content with Midroll ads (avc)
Expected result
The media plays successfully
Actual result
Mostly playback crashes with the following stacktraces
2025-07-09 17:03:53.977 24305-24305 DEBUG pid-24305 A Cmdline: androidx.media3.demo.main
2025-07-09 17:03:53.977 24305-24305 DEBUG pid-24305 A pid: 13547, tid: 24140, name: ExoPlayer:Playb >>> androidx.media3.demo.main <<<
2025-07-09 17:03:53.978 24305-24305 DEBUG pid-24305 A #00 pc 000000000005ee10 /data/app/~~4ystr4J7sYsbDDDbpPcHXg==/androidx.media3.demo.main-hAYpjfuicgycv6MNsvnzgg==/lib/arm64/libgav1JNI.so (Java_androidx_media3_decoder_av1_Gav1Decoder_gav1ReleaseFrame+100) (BuildId: 14d93f478e539d3eda7b90a59a948a14f4773f52)
2025-07-09 17:03:53.978 24305-24305 DEBUG pid-24305 A #06 pc 00000000002abb10 [anon:dalvik-classes.dex extracted in memory from /data/app/~~4ystr4J7sYsbDDDbpPcHXg==/androidx.media3.demo.main-hAYpjfuicgycv6MNsvnzgg==/base.apk] (androidx.media3.decoder.av1.Gav1Decoder.releaseOutputBuffer+0)
2025-07-09 17:03:53.978 24305-24305 DEBUG pid-24305 A #11 pc 00000000002ab7dc [anon:dalvik-classes.dex extracted in memory from /data/app/~~4ystr4J7sYsbDDDbpPcHXg==/androidx.media3.demo.main-hAYpjfuicgycv6MNsvnzgg==/base.apk] (androidx.media3.decoder.av1.Gav1Decoder$$ExternalSyntheticLambda0.releaseOutputBuffer+0)
2025-07-09 17:03:53.978 24305-24305 DEBUG pid-24305 A #16 pc 000000000000477c [anon:dalvik-classes12.dex extracted in memory from /data/app/~~4ystr4J7sYsbDDDbpPcHXg==/androidx.media3.demo.main-hAYpjfuicgycv6MNsvnzgg==/base.apk] (androidx.media3.decoder.VideoDecoderOutputBuffer.release+0)
When seeking the midroll position, it will show toast
Media
{
"name": "AV1 + IMA SDK Issue Reproduction",
"samples": [
{
"name": "AV1 SD (WebM) + VMAP Midroll Ads",
"uri": "https://storage.googleapis.com/wvmedia/2019/clear/av1/24/webm/llama_av1_480p_400.webm",
"ad_tag_uri": "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/ad_rule_samples&ciu_szs=300x250&ad_rule=1&impl=s&gdfp_req=1&env=vp&output=vmap&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ar%3Dpremidpost&cmsid=496&vid=short_onecue&correlator="
}
]
}
Bug Report
- You will email the zip file produced by
adb bugreportto android-media-github@google.com after filing this issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.