chenxiaolong / BCR

A Basic Call Recorder for rooted Android devices
GNU General Public License v3.0
1.76k stars 113 forks source link

Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{63426e1 u0 com.chiller3.bcr/.DirectBootMigrationService c:com.chiller3.bcr} #574

Closed selfmusing closed 3 months ago

selfmusing commented 3 months ago

I included latest BCR in my custom rom & now I'm getting this error after every reboot :

Generated by AppErrorsTracking 1.3-b497173(6) Project URL: https://github.com/KitsunePie/AppErrorsTracking

[Device Model]: Redmi Note 7 Pro

[Stack Trace]: android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{63426e1 u0 com.chiller3.bcr/.DirectBootMigrationService c:com.chiller3.bcr} at android.app.ActivityThread.generateForegroundServiceDidNotStartInTimeException(ActivityThread.java:2243) at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:2214) at android.app.ActivityThread.-$$Nest$mthrowRemoteServiceException(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2520) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loopOnce(Looper.java:232) at android.os.Looper.loop(Looper.java:317) at android.app.ActivityThread.main(ActivityThread.java:8590) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:585) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)

chenxiaolong commented 3 months ago

Can you grab a full logcat immediately after the crash and upload that?

DirectBootMigrationService unconditionally calls startForeground(), so I'm not quite sure why it's complaining about that.

selfmusing commented 3 months ago

Can you grab a full logcat immediately after the crash and upload that?

DirectBootMigrationService unconditionally calls startForeground(), so I'm not quite sure why it's complaining about that.

Okay, I'll try but it's strange that now I'm not getting these crashes anymore.. It was only happened a few times after flashing the latest rom update.