PipePipe icon indicating copy to clipboard operation
PipePipe copied to clipboard

[Bug] Spontaneous Player Crashes

Open chickenvision opened this issue 5 months ago • 7 comments

Checklist

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

Describe the bug

Sometimes while the video is playing, it will abruptly stop. Sometimes only the player crashes, sometimes the whole app crashes when the frozen video attempts to play (report attached). This happens spontaneously, at any time in the video, on any video. When this happens, the shuffled queue is reset (which is unfortunate when I rearrange a shuffled queue in a particular order). Usually, the rest of the video refuses to play, and attempts to play the video will repeatedly reset the queue. Exiting the app will usually allow you to play the video. Sometimes, the app needs to be force-stopped and opened to play the video. Rarely, the video will simply freeze and reset the queue but the video can still be played.

The most common error notification is either "Decoder initialization failed" or "Network error."

This could be related to #2519 but I am able to eventually play videos if I restart the app. This could be related to #2498 but occurs with greater breadth and frequency.

Possibly unrelated, but in the crash reports it always attributes the content country to JP, even when I am watching non-japanese videos.

Version

5.2.0-beta2 but I also experienced this in earlier versions

Frequency

Rarely (10-30% of the time)

Device

Android 16

Steps to reproduce the bug

  1. Play video(s)
  2. Unpredictably, a video crashes
  3. Press play on the player
  4. Either the whole app crashes, the video refuses to play, all videos refuse to play, or the video resumes with queue reset

Additional context

Exception

  • User Action: ui error
  • Request: ACRA report
  • Content Country: JP
  • Content Language: en-
  • App Language: en
  • Service: none
  • Version: 5.2.0-beta2
  • OS: Linux Android 16 - 36
Crash log

java.lang.RuntimeException: Unable to start service org.schabi.newpipe.player.PlayerService@f87edb4 with Intent { xflg=0x4 cmp=InfinityLoop1309.NewPipeEnhanced/org.schabi.newpipe.player.PlayerService (has extras) }
	at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:6469)
	at android.app.ActivityThread.-$$Nest$mhandleServiceArgs(Unknown Source:0)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:3111)
	at android.os.Handler.dispatchMessage(Handler.java:132)
	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.app.ActivityThread.main(ActivityThread.java:10346)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:638)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:972)
Caused by: java.lang.NullPointerException: Attempt to read from field 'org.acra.sender.SendingConductor org.schabi.newpipe.player.helper.MediaSessionManager.mediaSession' on a null object reference in method 'androidx.core.app.NotificationCompat$Builder org.schabi.newpipe.player.NotificationUtil.createNotification(org.schabi.newpipe.player.Player, android.app.Service)'
	at org.schabi.newpipe.player.NotificationUtil.createNotification(r8-map-id-e144e846e5284076001c447cec3b69c45b3d91fbbab3d74fd31fcd6aff22d782:124)
	at org.schabi.newpipe.player.NotificationUtil.createNotificationAndStartForeground(r8-map-id-e144e846e5284076001c447cec3b69c45b3d91fbbab3d74fd31fcd6aff22d782:5)
	at org.schabi.newpipe.player.PlayerService.onStartCommand(r8-map-id-e144e846e5284076001c447cec3b69c45b3d91fbbab3d74fd31fcd6aff22d782:56)
	at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:6453)
	... 10 more


chickenvision avatar Jun 19 '26 16:06 chickenvision

I'm also getting this error too. I thought there was something wrong with my with my Internet, but it works just fine. Glad I found someone who is also experiencing this.

Jaedinator avatar Jun 19 '26 19:06 Jaedinator

Same network error, exactly at 0:59 of the video.

Necunoscutul12 avatar Jun 20 '26 08:06 Necunoscutul12

I'm having the same problem. It's more of a hassle than I expected.

whyohwhys avatar Jun 21 '26 09:06 whyohwhys

Still experiencing this on beta4

dvg48 avatar Jun 22 '26 04:06 dvg48

Please, for anyone reporting, attach your error report. Many different issues can feel exactly the same. The player issue most are encountering is likely #2490 .

InfinityLoop1308 avatar Jun 22 '26 09:06 InfinityLoop1308

@Necunoscutul12 @Jaedinator The issue you described is #2490.

InfinityLoop1308 avatar Jun 22 '26 09:06 InfinityLoop1308

op's issue will be fixed in 5.2.0. for other discussion, go #2490

InfinityLoop1308 avatar Jun 22 '26 09:06 InfinityLoop1308