Skip to content

Crash on toggle the notification option in Settings Screen #12564

@venkatchalapathi

Description

@venkatchalapathi

Checklist

  • I am able to reproduce the bug with the latest version given here: CLICK THIS LINK.
  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I have read the FAQ and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected version

0.28.0 NewPipe-refactor-nightly-25

Steps to reproduce the bug

  1. Hamburger icon
  2. Goto Settings
  3. Click on Notifications

Expected behavior

No response

Actual behavior

No response

Screenshots/Screen recordings

WhatsApp.Video.2025-08-22.at.13.24.17.mp4

Logs

2025-08-22 13:18:55.654 4557-4557 AndroidRuntime org.schabi.newpipe.debug.refactor E FATAL EXCEPTION: main (Ask Gemini)
Process: org.schabi.newpipe.debug.refactor, PID: 4557
java.lang.RuntimeException: Unable to start service androidx.work.impl.foreground.SystemForegroundService@a5fb237 with Intent { act=ACTION_START_FOREGROUND cmp=org.schabi.newpipe.debug.refactor/androidx.work.impl.foreground.SystemForegroundService (has extras) mCallingUid=11321 }: android.app.InvalidForegroundServiceTypeException: Starting FGS with type none callerApp=ProcessRecord{d20f224 4557:org.schabi.newpipe.debug.refactor/u0a1321} targetSDK=35 has been prohibited
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:5134)
at android.app.ActivityThread.-$$Nest$mhandleServiceArgs(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2481)
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.InvalidForegroundServiceTypeException: Starting FGS with type none callerApp=ProcessRecord{d20f224 4557:org.schabi.newpipe.debug.refactor/u0a1321} targetSDK=35 has been prohibited
at android.app.InvalidForegroundServiceTypeException$1.createFromParcel(InvalidForegroundServiceTypeException.java:53)
at android.app.InvalidForegroundServiceTypeException$1.createFromParcel(InvalidForegroundServiceTypeException.java:49)
at android.os.Parcel.readParcelableInternal(Parcel.java:4922)
at android.os.Parcel.readParcelable(Parcel.java:4904)
at android.os.Parcel.createExceptionOrNull(Parcel.java:3104)
at android.os.Parcel.createException(Parcel.java:3093)
at android.os.Parcel.readException(Parcel.java:3076)
at android.os.Parcel.readException(Parcel.java:3018)
at android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:6761)
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.setServiceForeground(Unknown Source)
at android.app.Service.startForeground(Service.java:862)
at androidx.work.impl.foreground.SystemForegroundService$Api31Impl.startForeground(SystemForegroundService.java:190)
at androidx.work.impl.foreground.SystemForegroundService.startForeground(SystemForegroundService.java:138)
at androidx.work.impl.foreground.SystemForegroundDispatcher.handleNotify(SystemForegroundDispatcher.java:332)
at androidx.work.impl.foreground.SystemForegroundDispatcher.onStartCommand(SystemForegroundDispatcher.java:221)
at androidx.work.impl.foreground.SystemForegroundService.onStartCommand(SystemForegroundService.java:80)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:5116)
at android.app.ActivityThread.-$$Nest$mhandleServiceArgs(Unknown Source:0) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2481) 
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) 
--------- beginning of main

Affected Android/Custom ROM version

Android 14

Affected device model

OnePlus Nord

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue is related to a bugnew stream notificationIssue is related to notification shown for new streams

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions