Skip to content

[Bug] Infinite Toast loop on Network Error w/ 5.2.0-beta2 #2501

@bbc581

Description

@bbc581

Checklist

  • I make sure that the issue is NOT a duplicate of pinned issues
  • I make sure I am using the LATEST version - check here
  • I understand that issues with limited impact, such as those occurring on specific devices or under specific network conditions, will not be fixed
  • I have attached the error report in the issue

Describe the bug

Exception

  • User Action: play stream
  • Request: Player error[type=ERROR_CODE_IO_BAD_HTTP_STATUS] occurred while playing https://www.youtube.com/watch?v=Y4S23mtt2Tk
  • Content Country: US
  • Content Language: en-US
  • App Language: en_US
  • Service: YouTube (Anonymous)
  • Version: 5.2.0-beta2
  • OS: Linux samsung/dm3qsqw/dm3q:16/BP4A.251205.006/S918USQU7FZE2:user/release-keys 16 - 36
Crash log

androidx.media3.exoplayer.ExoPlaybackException: Source error
	at androidx.media3.exoplayer.ExoPlayerImplInternal.handleIoException(r8-map-id-e144e846e5284076001c447cec3b69c45b3d91fbbab3d74fd31fcd6aff22d782:17)
	at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(r8-map-id-e144e846e5284076001c447cec3b69c45b3d91fbbab3d74fd31fcd6aff22d782:470)
	at android.os.Handler.dispatchMessage(Handler.java:128)
	at android.os.Looper.dispatchMessage(Looper.java:358)
	at android.os.Looper.loopOnce(Looper.java:288)
	at android.os.Looper.loop(Looper.java:392)
	at android.os.HandlerThread.run(HandlerThread.java:139)
Caused by: androidx.media3.datasource.HttpDataSource$InvalidResponseCodeException: Response code: 403
	at org.schabi.newpipe.player.datasource.YoutubeHttpDataSource.open(r8-map-id-e144e846e5284076001c447cec3b69c45b3d91fbbab3d74fd31fcd6aff22d782:738)
	at androidx.media3.datasource.DefaultDataSource.open(r8-map-id-e144e846e5284076001c447cec3b69c45b3d91fbbab3d74fd31fcd6aff22d782:865)
	at androidx.media3.datasource.TeeDataSource.open(r8-map-id-e144e846e5284076001c447cec3b69c45b3d91fbbab3d74fd31fcd6aff22d782:3)
	at androidx.media3.datasource.cache.CacheDataSource.openNextSource(r8-map-id-e144e846e5284076001c447cec3b69c45b3d91fbbab3d74fd31fcd6aff22d782:255)
	at androidx.media3.datasource.cache.CacheDataSource.open(r8-map-id-e144e846e5284076001c447cec3b69c45b3d91fbbab3d74fd31fcd6aff22d782:171)
	at androidx.media3.datasource.StatsDataSource.open(r8-map-id-e144e846e5284076001c447cec3b69c45b3d91fbbab3d74fd31fcd6aff22d782:11)
	at androidx.media3.exoplayer.source.chunk.ContainerMediaChunk.load(r8-map-id-e144e846e5284076001c447cec3b69c45b3d91fbbab3d74fd31fcd6aff22d782:89)
	at androidx.media3.exoplayer.upstream.Loader$LoadTask.run(r8-map-id-e144e846e5284076001c447cec3b69c45b3d91fbbab3d74fd31fcd6aff22d782:35)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1100)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:1572)


Version

5.2.0-beta2

Frequency

Only once (single occurrence)

Device

Samsung S23 Ultra

Steps to reproduce the bug

Place single video from playlist in background and go to sleep

Additional context

Force closed and still receiving toast

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions