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

App crash inside androidx.media3.common.Format$Builder.build method in Android/Amazon device OS version 5.1 #1313

Closed
1 task
rajneeshrawal opened this issue Apr 25, 2024 · 3 comments
Assignees

Comments

@rajneeshrawal
Copy link

Version

Media3 1.3.1

More version details

This issue is happening with media3 1.3.1. It is working fine with media3 1.2.1 version

Devices that reproduce the issue

Android device OS version 5.1
Amazon Fire stick device 5.1.1

Devices that do not reproduce the issue

Android Devices OS Version 6 and above

Reproducible in the demo app?

Not tested

Reproduction steps

Play any DASH content on android OS version 5 or amazon fire stick verison 5.1.1.
As per my understanding it is crashing because of "stream " method call inside androidx.media3.common.Format class. This method call is not supported in Android OS 5.1

Expected result

Application should work fine on android devices OS version 5.1

Actual result

Fatal Exception: java.lang.NoSuchMethodError: No interface method stream()Ljava/util/stream/Stream; in class Ljava/util/List; or its super classes (declaration of 'java.util.List' appears in /system/framework/core-libart.jar)
at androidx.media3.common.Format.(Format.java:982)
at androidx.media3.common.Format.(Format.java:128)
at androidx.media3.common.Format$Builder.build(Format.java:720)
at androidx.media3.exoplayer.dash.DashMediaPeriod.buildPrimaryAndEmbeddedTrackGroupInfos(DashMediaPeriod.java:693)
at androidx.media3.exoplayer.dash.DashMediaPeriod.buildTrackGroups(DashMediaPeriod.java:529)
at androidx.media3.exoplayer.dash.DashMediaPeriod.(DashMediaPeriod.java:160)
at androidx.media3.exoplayer.dash.DashMediaSource.createPeriod(DashMediaSource.java:583)
at androidx.media3.exoplayer.source.MergingMediaSource.createPeriod(MergingMediaSource.java:209)
at androidx.media3.exoplayer.source.MaskingMediaPeriod.createPeriod(MaskingMediaPeriod.java:131)
at androidx.media3.exoplayer.source.MaskingMediaSource.onChildSourceInfoRefreshed(MaskingMediaSource.java:213)
at androidx.media3.exoplayer.source.WrappingMediaSource.onChildSourceInfoRefreshed(WrappingMediaSource.java:154)
at androidx.media3.exoplayer.source.WrappingMediaSource.onChildSourceInfoRefreshed(WrappingMediaSource.java:49)
at androidx.media3.exoplayer.source.CompositeMediaSource.lambda$prepareChildSource$0(CompositeMediaSource.java:117)
at androidx.media3.exoplayer.source.BaseMediaSource.refreshSourceInfo(BaseMediaSource.java:90)
at androidx.media3.exoplayer.source.MergingMediaSource.onChildSourceInfoRefreshed(MergingMediaSource.java:281)
at androidx.media3.exoplayer.source.MergingMediaSource.onChildSourceInfoRefreshed(MergingMediaSource.java:53)
at androidx.media3.exoplayer.source.CompositeMediaSource.lambda$prepareChildSource$0(CompositeMediaSource.java:117)
at androidx.media3.exoplayer.source.BaseMediaSource.refreshSourceInfo(BaseMediaSource.java:90)
at androidx.media3.exoplayer.dash.DashMediaSource.processManifest(DashMediaSource.java:944)
at androidx.media3.exoplayer.dash.DashMediaSource.onManifestLoadCompleted(DashMediaSource.java:722)
at androidx.media3.exoplayer.dash.DashMediaSource$ManifestCallback.onLoadCompleted(DashMediaSource.java:1402)
at androidx.media3.exoplayer.dash.DashMediaSource$ManifestCallback.onLoadCompleted(DashMediaSource.java:1397)
at androidx.media3.exoplayer.upstream.Loader$LoadTask.handleMessage(Loader.java:487)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.os.HandlerThread.run(HandlerThread.java:61)

Media

can be reproducible on any available public playback URL

Bug Report

@MGaetan89
Copy link
Contributor

MGaetan89 commented Apr 25, 2024

You can have a look at #1312 for pointers about how to fix the issue on your side.

In particular, you need to follow the steps described here.

@menscikov
Copy link

menscikov commented Apr 27, 2024

I can confirm this crash. I see crashes in Firebase Crashlytics on Android 5 and Android 6 versions.

@tonihei
Copy link
Collaborator

tonihei commented May 2, 2024

Closing as a duplicate of #1312.

@tonihei tonihei closed this as completed May 2, 2024
@tonihei tonihei self-assigned this May 2, 2024
@androidx androidx locked and limited conversation to collaborators Jul 9, 2024
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

4 participants