Tobi823 / ffupdater

FFUpdater: Updater for privacy friendly browser
https://f-droid.org/en/packages/de.marmaro.krt.ffupdater
GNU General Public License v3.0
687 stars 33 forks source link

Crash reporter #469

Closed taltamir closed 1 year ago

taltamir commented 1 year ago

Describe the bug Crash reporter said to post this here. Happened overnight while my phone was idle I think it said something about background operation failed

Error message from FFUpdater Stacktrace:

de.marmaro.krt.ffupdater.background.BackgroundException: The background job fails due to an unrecoverable exception.
    at de.marmaro.krt.ffupdater.background.BackgroundWork.doWork(BackgroundWork.kt:103)
    at de.marmaro.krt.ffupdater.background.BackgroundWork$doWork$1.invokeSuspend(BackgroundWork.kt:0)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Caused by: android.app.ForegroundServiceStartNotAllowedException: startForegroundService() not allowed due to mAllowStartForeground false: service de.marmaro.krt.ffupdater/androidx.work.impl.foreground.SystemForegroundService
    at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:54)
    at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:50)
    at android.os.Parcel.readParcelable(Parcel.java:3334)
    at android.os.Parcel.createExceptionOrNull(Parcel.java:2421)
    at android.os.Parcel.createException(Parcel.java:2410)
    at android.os.Parcel.readException(Parcel.java:2393)
    at android.os.Parcel.readException(Parcel.java:2335)
    at android.app.IActivityManager$Stub$Proxy.startService(IActivityManager.java:6512)
    at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1868)
    at android.app.ContextImpl.startForegroundService(ContextImpl.java:1844)
    at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:781)
    at androidx.core.content.ContextCompat$Api26Impl.startForegroundService(ContextCompat.java:1091)
    at androidx.core.content.ContextCompat.startForegroundService(ContextCompat.java:749)
    at androidx.work.impl.Processor.startForeground(Processor.java:204)
    at androidx.work.impl.utils.WorkForegroundUpdater$1.run(WorkForegroundUpdater.java:100)
    at androidx.work.impl.utils.SerialExecutorImpl$Task.run(SerialExecutorImpl.java:96)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    at java.lang.Thread.run(Thread.java:920)
Caused by: android.os.RemoteException: Remote stack trace:
    at com.android.server.am.ActiveServices.startServiceLocked(ActiveServices.java:694)
    at com.android.server.am.ActiveServices.startServiceLocked(ActiveServices.java:619)
    at com.android.server.am.ActivityManagerService.startService(ActivityManagerService.java:12237)
    at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:2787)
    at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2602)

Logs:

de.marmaro.krt.ffupdater.background.BackgroundException: The background job fails due to an unrecoverable exception.
    at de.marmaro.krt.ffupdater.background.BackgroundWork.doWork(BackgroundWork.kt:103)
    at de.marmaro.krt.ffupdater.background.BackgroundWork$doWork$1.invokeSuspend(BackgroundWork.kt:0)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Caused by: android.app.ForegroundServiceStartNotAllowedException: startForegroundService() not allowed due to mAllowStartForeground false: service de.marmaro.krt.ffupdater/androidx.work.impl.foreground.SystemForegroundService
    at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:54)
    at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:50)
    at android.os.Parcel.readParcelable(Parcel.java:3334)
    at android.os.Parcel.createExceptionOrNull(Parcel.java:2421)
    at android.os.Parcel.createException(Parcel.java:2410)
    at android.os.Parcel.readException(Parcel.java:2393)
    at android.os.Parcel.readException(Parcel.java:2335)
    at android.app.IActivityManager$Stub$Proxy.startService(IActivityManager.java:6512)
    at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1868)
    at android.app.ContextImpl.startForegroundService(ContextImpl.java:1844)
    at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:781)
    at androidx.core.content.ContextCompat$Api26Impl.startForegroundService(ContextCompat.java:1091)
    at androidx.core.content.ContextCompat.startForegroundService(ContextCompat.java:749)
    at androidx.work.impl.Processor.startForeground(Processor.java:204)
    at androidx.work.impl.utils.WorkForegroundUpdater$1.run(WorkForegroundUpdater.java:100)
    at androidx.work.impl.utils.SerialExecutorImpl$Task.run(SerialExecutorImpl.java:96)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    at java.lang.Thread.run(Thread.java:920)
Caused by: android.os.RemoteException: Remote stack trace:
    at com.android.server.am.ActiveServices.startServiceLocked(ActiveServices.java:694)
    at com.android.server.am.ActiveServices.startServiceLocked(ActiveServices.java:619)
    at com.android.server.am.ActivityManagerService.startService(ActivityManagerService.java:12237)
    at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:2787)
    at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2602)
Device information: Key Value
FFUpdater version 78.1.1 (150) release F-Droid/other
Device motorola edge (2022) (tesla_g_sys, tesla, tesla)
Manufacturer motorola (motorola)
Supported ABIs arm64-v8a, armeabi-v7a, armeabi
Android version 12 (SDK: 31)
OS ilclbld223, hudsoncm, release-keys, 1686298838000
Tobi823 commented 1 year ago

This bug should be fixed in version 78.1.2