Crash at beginning with version 12

Hello there.

I updated K9 with the latest build v12 through Droid-ify but now, the app crashes at the launch…

Ils there anyone with the same issue?

My config: Pixel 7 pro, GOS 2025090500, Android 16.

Here is the error log

type: crash
osVersion: google/cheetah/cheetah:16/BP2A.250805.005/2025090300:user/release-keys
package: com.fsck.k9:39027, targetSdk 35
process: com.fsck.k9
processUptime: 312 + 342 ms
installer: com.looker.droidify

java.lang.IllegalStateException: Account not found: unified_account
	at app.k9mail.legacy.ui.folder.DefaultDisplayFolderRepository.getDisplayFoldersFlow(DefaultDisplayFolderRepository.kt:89)
	at net.thunderbird.feature.navigation.drawer.siderail.domain.usecase.GetDisplayFoldersForAccount.invoke(GetDisplayFoldersForAccount.kt:20)
	at net.thunderbird.feature.navigation.drawer.siderail.ui.DrawerViewModel$loadFolders$$inlined$flatMapLatest$1.invokeSuspend(Merge.kt:190)
	at net.thunderbird.feature.navigation.drawer.siderail.ui.DrawerViewModel$loadFolders$$inlined$flatMapLatest$1.invoke(Merge.kt:0)
	at net.thunderbird.feature.navigation.drawer.siderail.ui.DrawerViewModel$loadFolders$$inlined$flatMapLatest$1.invoke(Merge.kt:0)
	at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3$1$2.invokeSuspend(Merge.kt:30)
	at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3$1$2.invoke(Merge.kt:0)
	at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3$1$2.invoke(Merge.kt:0)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:20)
	at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:360)
	at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:134)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:53)
	at kotlinx.coroutines.BuildersKt.launch(Unknown Source:1)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch$default(Builders.common.kt:44)
	at kotlinx.coroutines.BuildersKt.launch$default(Unknown Source:1)
	at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3$1.emit(Merge.kt:29)
	at kotlinx.coroutines.flow.DistinctFlowImpl$collect$2.emit(Distinct.kt:73)
	at kotlinx.coroutines.flow.FlowKt__TransformKt$filterNotNull$$inlined$unsafeTransform$1$2.emit(Emitters.kt:50)
	at net.thunderbird.feature.navigation.drawer.siderail.ui.DrawerViewModel$loadFolders$$inlined$map$1$2.emit(Emitters.kt:50)
	at kotlinx.coroutines.flow.StateFlowImpl.collect(StateFlow.kt:401)
	at kotlinx.coroutines.flow.StateFlowImpl$collect$1.invokeSuspend(StateFlow.kt:0)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTaskKt.resume(DispatchedTask.kt:237)
	at kotlinx.coroutines.DispatchedTaskKt.resumeUnconfined(DispatchedTask.kt:175)
	at kotlinx.coroutines.DispatchedTaskKt.dispatch(DispatchedTask.kt:147)
	at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(CancellableContinuationImpl.kt:470)
	at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$kotlinx_coroutines_core(CancellableContinuationImpl.kt:504)
	at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$kotlinx_coroutines_core$default(CancellableContinuationImpl.kt:493)
	at kotlinx.coroutines.CancellableContinuationImpl.resumeWith(CancellableContinuationImpl.kt:359)
	at kotlinx.coroutines.flow.StateFlowSlot.makePending(StateFlow.kt:290)
	at kotlinx.coroutines.flow.StateFlowImpl.updateState(StateFlow.kt:354)
	at kotlinx.coroutines.flow.StateFlowImpl.compareAndSet(StateFlow.kt:324)
	at app.k9mail.core.ui.compose.common.mvi.BaseViewModel.updateState(BaseViewModel.kt:233)
	at net.thunderbird.feature.navigation.drawer.siderail.ui.DrawerViewModel.selectAccount(DrawerViewModel.kt:128)
	at net.thunderbird.feature.navigation.drawer.siderail.ui.DrawerViewModel.event(DrawerViewModel.kt:103)
	at net.thunderbird.feature.navigation.drawer.siderail.ui.DrawerViewModel.event(DrawerViewModel.kt:23)
	at net.thunderbird.feature.navigation.drawer.siderail.ui.DrawerViewKt$DrawerView$$inlined$observe$1.invoke(UnidirectionalViewModel.kt:91)
	at net.thunderbird.feature.navigation.drawer.siderail.ui.DrawerViewKt$DrawerView$$inlined$observe$1.invoke(UnidirectionalViewModel.kt:91)
	at net.thunderbird.feature.navigation.drawer.siderail.ui.DrawerViewKt$DrawerView$2$1.invokeSuspend(DrawerView.kt:37)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at androidx.compose.ui.platform.AndroidUiDispatcher.performTrampolineDispatch(AndroidUiDispatcher.android.kt:79)
	at androidx.compose.ui.platform.AndroidUiDispatcher.access$performTrampolineDispatch(AndroidUiDispatcher.android.kt:41)
	at androidx.compose.ui.platform.AndroidUiDispatcher$dispatchCallback$1.run(AndroidUiDispatcher.android.kt:57)
	at android.os.Handler.handleCallback(Handler.java:995)
	at android.os.Handler.dispatchMessage(Handler.java:103)
	at android.os.Looper.loopOnce(Looper.java:248)
	at android.os.Looper.loop(Looper.java:338)
	at android.app.ActivityThread.main(ActivityThread.java:9106)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593)
	at com.android.internal.os.ExecInit.main(ExecInit.java:50)
	at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
	at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:371)
	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@1e88630, Dispatchers.Main.immediate]

Thanks :wink:

That was fixed with 12.1 - see changelog for K-9 and just grab it from Github :wink:

Droid-ify not up-to-date ?! I switched to Thunderbird before and all works. Thanks :wink:

I’ve never grabbed it from anywhere but Github, so no idea. But glad you got it sorted :+1:

Hi,

on f-droid v12.1, when will it be released, as I updated to version 12.0, the app crashes on start-up.

also if I have dowloaded from f-droid, is there a way I can move to installing apk directly from github, without un-installing the app first.

Thank you.

Version 12.1 is now available on F-droid.

Downloading from Github is not an option for installations based on fdroid. :frowning:

adb: failed to install k9mail-12.1.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Existing package com.fsck.k9 signatures do not match newer version; ignoring!]

The fixed version is available on fdroid. Use that version, not the github one.