Skip to content

[Bug] exception on startup #2173

@mkatsevVR

Description

@mkatsevVR

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: ui error
  • Request: ACRA report
  • Content Country: US
  • Content Language: en-US
  • App Language: en_US
  • Service: none
  • Version: 4.9.0
  • OS: Linux Android 16 - 36
Crash log

java.lang.RuntimeException: Unable to create service org.schabi.newpipe.player.PlayerServiceForAuto
	at android.app.ActivityThread.handleCreateService(ActivityThread.java:5590)
	at android.app.ActivityThread.-$$Nest$mhandleCreateService(Unknown Source:0)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2759)
	at android.os.Handler.dispatchMessageImpl(Handler.java:142)
	at android.os.Handler.dispatchMessage(Handler.java:125)
	at android.os.Looper.loopOnce(Looper.java:269)
	at android.os.Looper.loop(Looper.java:367)
	at android.app.ActivityThread.main(ActivityThread.java:9333)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:566)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:929)
Caused by: android.app.ForegroundServiceStartNotAllowedException: Service.startForeground() not allowed due to mAllowStartForeground false: service InfinityLoop1309.NewPipeEnhanced/org.schabi.newpipe.player.PlayerServiceForAuto
	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:5251)
	at android.os.Parcel.readParcelable(Parcel.java:5232)
	at android.os.Parcel.createExceptionOrNull(Parcel.java:3365)
	at android.os.Parcel.createException(Parcel.java:3354)
	at android.os.Parcel.readException(Parcel.java:3337)
	at android.os.Parcel.readException(Parcel.java:3279)
	at android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:7509)
	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 $Proxy4.setServiceForeground(Unknown Source)
	at android.app.Service.startForeground(Service.java:862)
	at org.schabi.newpipe.player.NotificationUtil$$ExternalSyntheticApiModelOutline0.m(Unknown Source:0)
	at org.schabi.newpipe.player.NotificationUtil.createNotificationAndStartForeground(NotificationUtil.java:201)
	at org.schabi.newpipe.player.PlayerServiceForAuto.createView(PlayerServiceForAuto.java:128)
	at org.schabi.newpipe.player.PlayerServiceForAuto.onCreate(PlayerServiceForAuto.java:100)
	at android.app.ActivityThread.handleCreateService(ActivityThread.java:5579)
	... 10 more


Frequency

Always (100% of the time)

Device

Pixel 9

Steps to reproduce the bug

Happens every time when opening the app. Tried clearing the cache, reinstalling, etc

Additional context

No response

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