Skip to content

Preload Manager intermittent crash when devices is offline #1568

Description

@JosephSanjaya

Version

Media3 1.4.0

More version details

No response

Devices that reproduce the issue

Emulator Android running android 11 - 15

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Yes

Reproduction steps

  • Intermittent
  1. Load any first video
  2. Make devices offline
  3. scroll to second video
  4. Crash

Expected result

When device is offline, video should loaded from memory without any crash

Actual result

Playback crash with following stacktraces:

2024-07-29 10:28:11.206  7605-8770  AndroidRuntime                        E  FATAL EXCEPTION: ExoPlayer:Playback
                                                                                                    Process: com.vidio.android.debug, PID: 7605
                                                                                                    java.lang.IllegalStateException
                                                                                                    	at androidx.media3.common.util.Assertions.checkState(Assertions.java:85)
                                                                                                    	at androidx.media3.exoplayer.upstream.Loader$LoadTask.start(Loader.java:367)
                                                                                                    	at androidx.media3.exoplayer.upstream.Loader$LoadTask.handleMessage(Loader.java:505)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:107)
                                                                                                    	at android.os.Looper.loop(Looper.java:214)
                                                                                                    	at android.os.HandlerThread.run(HandlerThread.java:67)
2024-07-29 10:28:11.230  7605-8770  Uncaught Exception                    E  null
                                                                                                    java.lang.IllegalStateException
                                                                                                    	at androidx.media3.common.util.Assertions.checkState(Assertions.java:85)
                                                                                                    	at androidx.media3.exoplayer.upstream.Loader$LoadTask.start(Loader.java:367)
                                                                                                    	at androidx.media3.exoplayer.upstream.Loader$LoadTask.handleMessage(Loader.java:505)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:107)
                                                                                                    	at android.os.Looper.loop(Looper.java:214)
                                                                                                    	at android.os.HandlerThread.run(HandlerThread.java:67)

Media

Not applicable

Bug Report

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions