Skip to content

[Bug] Crash on armeabi-v7a Device When Switch to Another Video #592

@densetsunozero

Description

@densetsunozero

Checklist (Your issue will be automatically closed if you delete this part)

  • I make sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I am able to reproduce the bug with the latest version given here: CLICK THIS LINK.
  • I have attached the error report in the issue.

Describe the bug
I have an Android tv box which is 32-bit so I use armeabi-v7a build on it. When I open a video, it plays fine. But if I click on another video to switch to it, PipePipe will crash.

Looks like the issue only happens on armeabi-v7a devices. All my arm64-v8a devices (smartphone, tablet) can switch to another video smoothly.

Frequency
100% crashes when switch to another video on armeabi-v7a device.

Steps to reproduce the bug

  1. Open one video
  2. Click another video in related video area.
  3. Crash

Device (e.g. Pixel 9 Pro)
X96-X4 TV Box with Andorid 11

Error report

  • User Action: ui error
  • Request: ACRA report
  • Content Country: JP
  • Content Language: ja
  • App Language: zh_CN
  • Service: none
  • Version: 4.0.1
  • OS: Linux Android 11 - 30
Crash log

java.lang.RuntimeException: Unable to start service org.schabi.newpipe.player.MainPlayer@f54365b with Intent { cmp=InfinityLoop1309.NewPipeEnhanced/org.schabi.newpipe.player.MainPlayer (has extras) }: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.SharedPreferences org.schabi.newpipe.player.Player.getPrefs()' on a null object reference
	at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4338)
	at android.app.ActivityThread.access$1800(ActivityThread.java:237)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1951)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loop(Looper.java:223)
	at android.app.ActivityThread.main(ActivityThread.java:7664)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.SharedPreferences org.schabi.newpipe.player.Player.getPrefs()' on a null object reference
	at org.schabi.newpipe.player.NotificationUtil.initializeNotificationSlots(NotificationUtil.java:225)
	at org.schabi.newpipe.player.NotificationUtil.createNotification(NotificationUtil.java:99)
	at org.schabi.newpipe.player.NotificationUtil.createNotificationAndStartForeground(NotificationUtil.java:196)
	at org.schabi.newpipe.player.MainPlayer.onStartCommand(MainPlayer.java:128)
	at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4320)
	... 8 more


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions