TeamNewPipe / NewPipe

A libre lightweight streaming front-end for Android.
https://newpipe.net
GNU General Public License v3.0
29.46k stars 2.95k forks source link

UI Error after livestream ended #11195

Open minecraftchest1 opened 1 week ago

minecraftchest1 commented 1 week ago

Checklist

Affected version

0.27.0

Steps to reproduce the bug

  1. Finish a live livestream
  2. Crash

Expected behavior

No Crash

Actual behavior

Crash

Screenshots/Screen recordings

No response

Logs

{"user_action":"ui error","request":"ACRA report","content_language":"en-US","content_country":"US","app_language":"en_US","service":"none","package":"org.schabi.newpipe.v0_27_0","version":"0.27.0","os":"Linux samsung/a54xsqx/a54x:14/UP1A.231005.007/A546USQU6CXDE:user/release-keys 14 - 34","time":"2024-06-21 14:36","exceptions":["java.lang.RuntimeException: Unable to stop service org.schabi.newpipe.player.PlayerService@262c048: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.setCustomActionProviders(com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector$CustomActionProvider[])' on a null object reference\n\tat android.app.ActivityThread.handleStopService(ActivityThread.java:5318)\n\tat android.app.ActivityThread.-$$Nest$mhandleStopService(Unknown Source:0)\n\tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:2539)\n\tat android.os.Handler.dispatchMessage(Handler.java:106)\n\tat android.os.Looper.loopOnce(Looper.java:230)\n\tat android.os.Looper.loop(Looper.java:319)\n\tat android.app.ActivityThread.main(ActivityThread.java:8919)\n\tat java.lang.reflect.Method.invoke(Native Method)\n\tat com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)\nCaused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector.setCustomActionProviders(com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector$CustomActionProvider[])' on a null object reference\n\tat org.schabi.newpipe.player.mediasession.MediaSessionPlayerUi.updateMediaSessionActions(MediaSessionPlayerUi.java:215)\n\tat org.schabi.newpipe.player.mediasession.MediaSessionPlayerUi.onMetadataChanged(MediaSessionPlayerUi.java:282)\n\tat org.schabi.newpipe.player.Player.lambda$updateMetadataWith$22(Player.java:1801)\n\tat org.schabi.newpipe.player.Player.$r8$lambda$6LL1ynLVHUrHxxol0bvWL1Rn_TU(Player.java:0)\n\tat org.schabi.newpipe.player.Player$$ExternalSyntheticLambda47.accept(R8$$SyntheticClass:0)\n\tat j$.util.AbstractList$RandomAccessSpliterator.forEachRemaining(Unknown Source:19)\n\tat j$.util.stream.ReferencePipeline$Head.forEachOrdered(Unknown Source:10)\n\tat org.schabi.newpipe.player.ui.PlayerUiList.call(PlayerUiList.java:88)\n\tat org.schabi.newpipe.player.Player.updateMetadataWith(Player.java:1801)\n\tat org.schabi.newpipe.player.Player.lambda$onEvents$13(Player.java:1293)\n\tat org.schabi.newpipe.player.Player.$r8$lambda$5dalatdJw7zsnq99HOZvtSHTxZo(Player.java:0)\n\tat org.schabi.newpipe.player.Player$$ExternalSyntheticLambda37.accept(R8$$SyntheticClass:0)\n\tat j$.util.Optional.ifPresent(Unknown Source:4)\n\tat org.schabi.newpipe.player.Player.lambda$onEvents$14(Player.java:1287)\n\tat org.schabi.newpipe.player.Player.$r8$lambda$67JZJPUrqqIwv2qPVBiXIeF-1Rs(Player.java:0)\n\tat org.schabi.newpipe.player.Player$$ExternalSyntheticLambda9.accept(R8$$SyntheticClass:0)\n\tat j$.util.Optional.ifPresent(Unknown Source:4)\n\tat org.schabi.newpipe.player.Player.onEvents(Player.java:1265)\n\tat com.google.android.exoplayer2.ExoPlayerImpl.lambda$new$0(ExoPlayerImpl.java:266)\n\tat com.google.android.exoplayer2.ExoPlayerImpl.$r8$lambda$FaN7Odt_OJn5xWFlmhnR2OmiNMg(ExoPlayerImpl.java:0)\n\tat com.google.android.exoplayer2.ExoPlayerImpl$$ExternalSyntheticLambda1.invoke(R8$$SyntheticClass:0)\n\tat com.google.android.exoplayer2.util.ListenerSet$ListenerHolder.release(ListenerSet.java:320)\n\tat com.google.android.exoplayer2.util.ListenerSet.remove(ListenerSet.java:183)\n\tat com.google.android.exoplayer2.ExoPlayerImpl.removeListener(ExoPlayerImpl.java:1641)\n\tat org.schabi.newpipe.player.Player.destroyPlayer(Player.java:573)\n\tat org.schabi.newpipe.player.Player.destroy(Player.java:600)\n\tat org.schabi.newpipe.player.PlayerService.cleanup(PlayerService.java:150)\n\tat org.schabi.newpipe.player.PlayerService.onDestroy(PlayerService.java:145)\n\tat android.app.ActivityThread.handleStopService(ActivityThread.java:5298)\n\t... 9 more\n"],"user_comment":""}

Affected Android/Custom ROM version

Linux samsung/a54xsqx/a54:14/UO1A.231005.007/a546USQU6CXDE:user/release-keys

Affected device model

Samsung A54 5G

Additional information

No response

opusforlife2 commented 1 week ago

Finish a live livestream

I think you're probably the first person in the world to finish a livestream on Newpipe.