Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: Crash after re-opening app from background (it was running) #68

Open
CrsiX opened this issue May 22, 2023 · 1 comment
Open
Labels
android Only on Android devices bug Something isn't working

Comments

@CrsiX
Copy link
Member

CrsiX commented May 22, 2023

Interestingly enough, the operation .close() seems to have failed, even though it's marked as idempotent function call.


Platform: Android
Version: 4.6.12-patch1 (Build 868)
Rulesets: [Civ V - Vanilla, Civ V - Gods & Kings]
Last Screen: com.unciv.ui.screens.mainmenuscreen.MainMenuScreen


Message:

kotlinx.coroutines.channels.ClosedReceiveChannelException: Channel was closed
	at kotlinx.coroutines.channels.Closed.getReceiveException(AbstractChannel.kt:1108)
	at kotlinx.coroutines.channels.AbstractChannel$ReceiveElement.resumeReceiveClosed(AbstractChannel.kt:913)
	at kotlinx.coroutines.channels.AbstractSendChannel.helpClose(AbstractChannel.kt:342)
	at kotlinx.coroutines.channels.AbstractSendChannel.close(AbstractChannel.kt:271)
	at kotlinx.coroutines.channels.SendChannel$DefaultImpls.close$default(Channel.kt:93)
	at com.unciv.logic.multiplayer.apiv2.ApiV2.afterLogout(ApiV2.kt:438)
	at com.unciv.logic.multiplayer.apiv2.ApiV2Wrapper$auth$2.invoke(ApiV2Wrapper.kt:126)
	at com.unciv.logic.multiplayer.apiv2.ApiV2Wrapper$auth$2.invoke(ApiV2Wrapper.kt:126)
	at com.unciv.logic.multiplayer.apiv2.AuthApi.logout(EndpointImplementations.kt:526)
	at com.unciv.logic.multiplayer.apiv2.AuthApi$logout$1.invokeSuspend(Unknown Source:15)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at com.unciv.utils.CrashHandlingDispatcher$dispatch$1.invoke(Concurrency.kt:173)
	at com.unciv.utils.CrashHandlingDispatcher$dispatch$1.invoke(Concurrency.kt:173)
	at com.unciv.ui.crashhandling.CrashHandlingExtensionsKt$wrapCrashHandling$1.invoke(CrashHandlingExtensions.kt:17)
	at com.unciv.ui.crashhandling.CrashHandlingExtensionsKt$wrapCrashHandlingUnit$1.invoke(CrashHandlingExtensions.kt:33)
	at com.unciv.ui.crashhandling.CrashHandlingExtensionsKt$wrapCrashHandlingUnit$1.invoke(CrashHandlingExtensions.kt:33)
	at com.unciv.utils.CrashHandlingDispatcher.dispatch$lambda$0(Concurrency.kt:173)
	at com.unciv.utils.CrashHandlingDispatcher.$r8$lambda$GFMOlD6QMgmLfgwAvPAW33Ob6HE(Unknown Source:0)
	at com.unciv.utils.CrashHandlingDispatcher$$ExternalSyntheticLambda0.run(Unknown Source:2)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
	at java.lang.Thread.run(Thread.java:1012)

@CrsiX CrsiX added bug Something isn't working android Only on Android devices labels May 22, 2023
@CrsiX
Copy link
Member Author

CrsiX commented May 28, 2023

#71 was a duplicate of this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Only on Android devices bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant