fatal Posted August 12, 2018 Share Posted August 12, 2018 Hi, The Poweramp Service crashes when it started from outside of the App, e.g. an app starts it through the SDK. The widget won't work after reboot too, I think the reason is the same. Both are affects only Android 8.1 (and 8.0 probably). Here is some log from the AndroidAuto plugin posted here: 08-12 11:44:37.329 E/AndroidRuntime(27108): java.lang.RuntimeException: Unable to create service net.patzleiner.powerampcar.PowerampService: java.lang.IllegalStateException: Not allowed to start service Intent { act=com.maxmpz.audioplayer.API_COMMAND cmp=com.maxmpz.audioplayer/.player.PlayerService (has extras) }: app is in background uid UidRecord{16059b9 u0a131 CEM idle change:cached procs:1 seq(0,0,0)} 08-12 11:44:37.329 E/AndroidRuntime(27108): at android.app.ActivityThread.handleCreateService(ActivityThread.java:3388) 08-12 11:44:37.329 E/AndroidRuntime(27108): at android.app.ActivityThread.-wrap4(Unknown Source:0) 08-12 11:44:37.329 E/AndroidRuntime(27108): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1706) 08-12 11:44:37.329 E/AndroidRuntime(27108): at android.os.Handler.dispatchMessage(Handler.java:106) 08-12 11:44:37.329 E/AndroidRuntime(27108): at android.os.Looper.loop(Looper.java:164) 08-12 11:44:37.329 E/AndroidRuntime(27108): at android.app.ActivityThread.main(ActivityThread.java:6578) 08-12 11:44:37.329 E/AndroidRuntime(27108): at java.lang.reflect.Method.invoke(Native Method) 08-12 11:44:37.329 E/AndroidRuntime(27108): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:460) 08-12 11:44:37.329 E/AndroidRuntime(27108): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) 08-12 11:44:37.329 E/AndroidRuntime(27108): Caused by: java.lang.IllegalStateException: Not allowed to start service Intent { act=com.maxmpz.audioplayer.API_COMMAND cmp=com.maxmpz.audioplayer/.player.PlayerService (has extras) }: app is in background uid UidRecord{16059b9 u0a131 CEM idle change:cached procs:1 seq(0,0,0)} 08-12 11:44:37.329 E/AndroidRuntime(27108): at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1530) 08-12 11:44:37.329 E/AndroidRuntime(27108): at android.app.ContextImpl.startService(ContextImpl.java:1486) 08-12 11:44:37.329 E/AndroidRuntime(27108): at android.content.ContextWrapper.startService(ContextWrapper.java:650) 08-12 11:44:37.329 E/AndroidRuntime(27108): at net.patzleiner.powerampcar.PowerampService.onCreate(PowerampService.java:137) 08-12 11:44:37.329 E/AndroidRuntime(27108): at android.app.ActivityThread.handleCreateService(ActivityThread.java:3378) 08-12 11:44:37.329 E/AndroidRuntime(27108): ... 8 more Every service is affected with the same issue on boot: 8-12 11:37:11.773 W/HeadsetMicroService(25221): java.lang.IllegalStateException: Not allowed to start service Intent { cmp=com.maxmpz.audioplayer/.player.HeadsetMicroService }: app is in background uid UidRecord{16059b9 u0a131 RCVR idle change:uncached procs:1 seq(0,0,0)} 08-12 11:37:11.773 W/HeadsetMicroService(25221): at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1530) 08-12 11:37:11.773 W/HeadsetMicroService(25221): at android.app.ContextImpl.startService(ContextImpl.java:1486) 08-12 11:37:11.773 W/HeadsetMicroService(25221): at android.content.ContextWrapper.startService(ContextWrapper.java:650) 08-12 11:37:11.773 W/HeadsetMicroService(25221): at com.maxmpz.audioplayer.player.HeadsetMicroService.l1l1(":35) 08-12 11:37:11.773 W/HeadsetMicroService(25221): at com.maxmpz.audioplayer.Application.onCreate(":643) 08-12 11:37:11.773 W/HeadsetMicroService(25221): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1119) 08-12 11:37:11.773 W/HeadsetMicroService(25221): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5791) 08-12 11:37:11.773 W/HeadsetMicroService(25221): at android.app.ActivityThread.-wrap1(Unknown Source:0) 08-12 11:37:11.773 W/HeadsetMicroService(25221): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1685) 08-12 11:37:11.773 W/HeadsetMicroService(25221): at android.os.Handler.dispatchMessage(Handler.java:106) 08-12 11:37:11.773 W/HeadsetMicroService(25221): at android.os.Looper.loop(Looper.java:164) 08-12 11:37:11.773 W/HeadsetMicroService(25221): at android.app.ActivityThread.main(ActivityThread.java:6578) 08-12 11:37:11.773 W/HeadsetMicroService(25221): at java.lang.reflect.Method.invoke(Native Method) 08-12 11:37:11.773 W/HeadsetMicroService(25221): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:460) 08-12 11:37:11.773 W/HeadsetMicroService(25221): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) 08-12 11:37:11.931 E/MilkScanService(25221): java.lang.IllegalStateException: Not allowed to start service Intent { act=com.maxmpz.milk.ACTION_SCAN cmp=com.maxmpz.audioplayer/com.maxmpz.milk.scanner.MilkScanService (has extras) }: app is in background uid UidRecord{16059b9 u0a131 RCVR idle change:uncached procs:1 seq(0,0,0)} 08-12 11:37:11.931 E/MilkScanService(25221): at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1530) 08-12 11:37:11.931 E/MilkScanService(25221): at android.app.ContextImpl.startService(ContextImpl.java:1486) 08-12 11:37:11.931 E/MilkScanService(25221): at android.content.ContextWrapper.startService(ContextWrapper.java:650) 08-12 11:37:11.931 E/MilkScanService(25221): at com.maxmpz.milk.scanner.MilkScanService.l1l1(":87) 08-12 11:37:11.931 E/MilkScanService(25221): at mm.l1l1(":199) 08-12 11:37:11.931 E/MilkScanService(25221): at com.maxmpz.audioplayer.Application.onCreate(":776) 08-12 11:37:11.931 E/MilkScanService(25221): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1119) 08-12 11:37:11.931 E/MilkScanService(25221): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5791) 08-12 11:37:11.931 E/MilkScanService(25221): at android.app.ActivityThread.-wrap1(Unknown Source:0) 08-12 11:37:11.931 E/MilkScanService(25221): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1685) 08-12 11:37:11.931 E/MilkScanService(25221): at android.os.Handler.dispatchMessage(Handler.java:106) 08-12 11:37:11.931 E/MilkScanService(25221): at android.os.Looper.loop(Looper.java:164) 08-12 11:37:11.931 E/MilkScanService(25221): at android.app.ActivityThread.main(ActivityThread.java:6578) 08-12 11:37:11.931 E/MilkScanService(25221): at java.lang.reflect.Method.invoke(Native Method) 08-12 11:37:11.931 E/MilkScanService(25221): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:460) 08-12 11:37:11.931 E/MilkScanService(25221): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) 08-12 11:37:11.934 I/Icing ( 4845): IndexChimeraService.getServiceInterface callingPackage=com.google.android.gms componentName=AppsCorpus serviceId=32 08-12 11:37:11.937 W/ActivityManager( 506): Background start not allowed: service Intent { cmp=com.maxmpz.audioplayer/.widgetpackcommon.WidgetUpdaterService (has extras) } to com.maxmpz.audioplayer/.widgetpackcommon.WidgetUpdaterService from pid=25221 uid=10131 pkg=com.maxmpz.audioplayer 08-12 11:37:11.938 I/Icing ( 4845): IndexChimeraService.getServiceInterface callingPackage=com.google.android.gms componentName=AppsCorpus serviceId=36 08-12 11:37:11.938 E/BaseWidgetProvider(25221): java.lang.IllegalStateException: Not allowed to start service Intent { cmp=com.maxmpz.audioplayer/.widgetpackcommon.WidgetUpdaterService (has extras) }: app is in background uid UidRecord{16059b9 u0a131 RCVR idle change:uncached procs:1 seq(0,0,0)} 08-12 11:37:11.938 E/BaseWidgetProvider(25221): at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1530) 08-12 11:37:11.938 E/BaseWidgetProvider(25221): at android.app.ContextImpl.startService(ContextImpl.java:1486) 08-12 11:37:11.938 E/BaseWidgetProvider(25221): at android.content.ContextWrapper.startService(ContextWrapper.java:650) 08-12 11:37:11.938 E/BaseWidgetProvider(25221): at android.content.ContextWrapper.startService(ContextWrapper.java:650) 08-12 11:37:11.938 E/BaseWidgetProvider(25221): at com.maxmpz.Poweramp.widgetpackcommon.BaseWidgetProvider.onUpdate(":157) 08-12 11:37:11.938 E/BaseWidgetProvider(25221): at android.appwidget.AppWidgetProvider.onReceive(AppWidgetProvider.java:66) 08-12 11:37:11.938 E/BaseWidgetProvider(25221): at android.app.ActivityThread.handleReceiver(ActivityThread.java:3226) 08-12 11:37:11.938 E/BaseWidgetProvider(25221): at android.app.ActivityThread.-wrap17(Unknown Source:0) 08-12 11:37:11.938 E/BaseWidgetProvider(25221): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1701) 08-12 11:37:11.938 E/BaseWidgetProvider(25221): at android.os.Handler.dispatchMessage(Handler.java:106) 08-12 11:37:11.938 E/BaseWidgetProvider(25221): at android.os.Looper.loop(Looper.java:164) 08-12 11:37:11.938 E/BaseWidgetProvider(25221): at android.app.ActivityThread.main(ActivityThread.java:6578) 08-12 11:37:11.938 E/BaseWidgetProvider(25221): at java.lang.reflect.Method.invoke(Native Method) 08-12 11:37:11.938 E/BaseWidgetProvider(25221): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:460) 08-12 11:37:11.938 E/BaseWidgetProvider(25221): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) 08-12 11:37:13.933 W/ActivityManager( 506): Background start not allowed: service Intent { act=com.maxmpz.audioplayer.ACTION_SCAN_DIRS cmp=com.maxmpz.audioplayer/.scanner.ScanDispatcherService (has extras) } to com.maxmpz.audioplayer/.scanner.ScanDispatcherService from pid=25221 uid=10131 pkg=com.maxmpz.audioplayer 08-12 11:37:13.938 W/ScanDispatcherService(25221): 08-12 11:37:13.938 W/ScanDispatcherService(25221): java.lang.IllegalStateException: Not allowed to start service Intent { act=com.maxmpz.audioplayer.ACTION_SCAN_DIRS cmp=com.maxmpz.audioplayer/.scanner.ScanDispatcherService (has extras) }: app is in background uid UidRecord{16059b9 u0a131 CEM idle change:cached procs:1 seq(0,0,0)} 08-12 11:37:13.938 W/ScanDispatcherService(25221): at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1530) 08-12 11:37:13.938 W/ScanDispatcherService(25221): at android.app.ContextImpl.startService(ContextImpl.java:1486) 08-12 11:37:13.938 W/ScanDispatcherService(25221): at android.content.ContextWrapper.startService(ContextWrapper.java:650) 08-12 11:37:13.938 W/ScanDispatcherService(25221): at com.maxmpz.audioplayer.scanner.ScanDispatcherService.l1l1(":119) 08-12 11:37:13.938 W/ScanDispatcherService(25221): at mm$1.handleMessage(":61) 08-12 11:37:13.938 W/ScanDispatcherService(25221): at android.os.Handler.dispatchMessage(Handler.java:106) 08-12 11:37:13.938 W/ScanDispatcherService(25221): at android.os.Looper.loop(Looper.java:164) 08-12 11:37:13.938 W/ScanDispatcherService(25221): at android.app.ActivityThread.main(ActivityThread.java:6578) 08-12 11:37:13.938 W/ScanDispatcherService(25221): at java.lang.reflect.Method.invoke(Native Method) 08-12 11:37:13.938 W/ScanDispatcherService(25221): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:460) 08-12 11:37:13.938 W/ScanDispatcherService(25221): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) Link to comment https://forum.powerampapp.com/topic/11808-793-service-crashes-on-oreo/ Share on other sites More sharing options...
fatal Posted August 13, 2018 Author Share Posted August 13, 2018 The issue only affects Oreo, on Nougat everything is fine regarding this. Link to comment https://forum.powerampapp.com/topic/11808-793-service-crashes-on-oreo/#findComment-53954 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.