Crash while removing account

Crash Logs:

FATAL EXCEPTION: main
Process: com.fsck.k9, PID: 16350
java.lang.IllegalStateException: Account f60b8bf7-bf95-4b55-81c8-83516da088e3 not found
	at com.fsck.k9.ui.settings.account.AccountSettingsViewModel.loadAccount(AccountSettingsViewModel.kt:51)
	at com.fsck.k9.ui.settings.account.AccountSettingsViewModel.access$loadAccount(AccountSettingsViewModel.kt:18)
	at com.fsck.k9.ui.settings.account.AccountSettingsViewModel$getAccount$1$1.invokeSuspend(AccountSettingsViewModel.kt:32)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

Device details:
App version: 5.806 (28006) [F-Droid]
Android version: 8.1.0
Model: Lenovo Tabriz 8 plus (TB-8704X)

5mins after removing all accounts, there was another crash.

FATAL EXCEPTION: main
Process: com.fsck.k9, PID: 18017
java.lang.RuntimeException: Unable to create service androidx.work.impl.background.systemjob.SystemJobService: java.lang.IllegalStateException: WorkManager needs to be initialized via a ContentProvider#onCreate() or an Application#onCreate().
	at android.app.ActivityThread.handleCreateService(ActivityThread.java:3352)
	at android.app.ActivityThread.-wrap4(Unknown Source:0)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1680)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loop(Looper.java:164)
	at android.app.ActivityThread.main(ActivityThread.java:6518)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: java.lang.IllegalStateException: WorkManager needs to be initialized via a ContentProvider#onCreate() or an Application#onCreate().
	at androidx.work.impl.background.systemjob.SystemJobService.onCreate(SystemJobService.java:73)
	at android.app.ActivityThread.handleCreateService(ActivityThread.java:3342)
	... 8 more

Thanks!

I added this to our issue tracker here: Crash after removing account · Issue #5711 · k9mail/k-9 · GitHub

I don’t think the second crash is a bug in K-9 Mail. See this issue in the Google issue tracker.

1 Like

Thanks!

Account f60b8bf7-bf95-4b55-81c8-83516da088e3

The above information mentioned in the crash log is something related to my privacy or it’s universal?
What is it about?

It’s a random UUID identifying an account set up in K-9 Mail.

1 Like