Skip to content

Not allowed to start service Intent in startNewVersionCheckService at app start #7227

@Ranbeer600

Description

@Ranbeer600

Exception

  • User Action: ui error
  • Request: ACRA report
  • Content Country: IN
  • Content Language: en-US
  • App Language: en_US
  • Service: none
  • Version: 0.21.11
  • OS: Linux Android 11 - 30
Crash log

java.lang.RuntimeException: Unable to create application org.schabi.newpipe.App: java.lang.IllegalStateException: Not allowed to start service Intent { cmp=org.schabi.newpipe/.CheckForNewAppVersion }: app is in background uid UidRecord{c228e3d u0a299 SVC  idle change:idle|uncached procs:1 seq(0,0,0)}
	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6724)
	at android.app.ActivityThread.access$1300(ActivityThread.java:237)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913)
	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:947)
Caused by: java.lang.IllegalStateException: Not allowed to start service Intent { cmp=org.schabi.newpipe/.CheckForNewAppVersion }: app is in background uid UidRecord{c228e3d u0a299 SVC  idle change:idle|uncached procs:1 seq(0,0,0)}
	at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1715)
	at android.app.ContextImpl.startService(ContextImpl.java:1670)
	at android.content.ContextWrapper.startService(ContextWrapper.java:720)
	at org.schabi.newpipe.CheckForNewAppVersion.startNewVersionCheckService(CheckForNewAppVersion.java:241)
	at org.schabi.newpipe.App.onCreate(App.java:118)
	at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1198)
	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6719)
	... 8 more


Metadata

Metadata

Assignees

No one assigned

    Labels

    ASAPIssue needs to be fixed as soon as possiblebugIssue is related to a bugtemplate ignoredThe user didn't follow the template/instructions (or removed them)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions