InfinityLoop1308 / PipePipe

A FLOSS Android app to let you browse YouTube, NicoNico and BiliBili freely.
GNU General Public License v3.0
2.17k stars 47 forks source link

[Bug]app/Ui crashed #494

Closed handsaw6 closed 2 weeks ago

handsaw6 commented 2 weeks ago

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

Describe the bug When I open the app it appears automatically Steps to reproduce the bug When I open the program for no reason it crashes repeatedly and I have to go back Device (e.g. Pixel 9 Pro) (Oppo Reno 8T 4g) Error report

Exception

java.lang.RuntimeException: Unable to start receiver androidx.media.session.MediaButtonReceiver: android.app.ForegroundServiceStartNotAllowedException: startForegroundService() not allowed due to mAllowStartForeground false: service InfinityLoop1309.NewPipeEnhanced/org.schabi.newpipe.player.MainPlayer
    at android.app.ActivityThread.handleReceiver(ActivityThread.java:4735)
    at android.app.ActivityThread.-$$Nest$mhandleReceiver(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2448)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loopOnce(Looper.java:257)
    at android.os.Looper.loop(Looper.java:368)
    at android.app.ActivityThread.main(ActivityThread.java:8839)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)
Caused by: android.app.ForegroundServiceStartNotAllowedException: startForegroundService() not allowed due to mAllowStartForeground false: service InfinityLoop1309.NewPipeEnhanced/org.schabi.newpipe.player.MainPlayer
    at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:54)
    at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:50)
    at android.os.Parcel.readParcelableInternal(Parcel.java:4900)
    at android.os.Parcel.readParcelable(Parcel.java:4882)
    at android.os.Parcel.createExceptionOrNull(Parcel.java:3082)
    at android.os.Parcel.createException(Parcel.java:3071)
    at android.os.Parcel.readException(Parcel.java:3054)
    at android.os.Parcel.readException(Parcel.java:2996)
    at android.app.IActivityManager$Stub$Proxy.startService(IActivityManager.java:5984)
    at java.lang.reflect.Method.invoke(Native Method)
    at leakcanary.ServiceWatcher$install$4$2.invoke(ServiceWatcher.kt:93)
    at java.lang.reflect.Proxy.invoke(Proxy.java:1006)
    at $Proxy6.startService(Unknown Source)
    at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1965)
    at android.app.ContextImpl.startForegroundService(ContextImpl.java:1936)
    at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:840)
    at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:840)
    at androidx.core.content.ContextCompat$Api26Impl$$ExternalSyntheticApiModelOutline0.m(Unknown Source:0)
    at androidx.core.content.ContextCompat$Api26Impl.startForegroundService(ContextCompat.java:931)
    at androidx.core.content.ContextCompat.startForegroundService(ContextCompat.java:703)
    at androidx.media.session.MediaButtonReceiver.onReceive(MediaButtonReceiver.java:115)
    at android.app.ActivityThread.handleReceiver(ActivityThread.java:4719)
    ... 9 more


Additional context

InfinityLoop1308 commented 2 weeks ago

It is likely some settings in your system preventing the app to be loaded, so you need to check it.