-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fatal exception in coroutines machinery for DispatchedContinuation #4234
Comments
There is a PR that will make this a more pleasant error message: #4181 The problem seems to be that you are closing a dispatcher before all tasks that use it have run to completion. I'm not sure which code uses If it's impossible to change the dispatcher, then you will have to ensure that all tasks using this dispatcher are finished before it is closed. |
Describe the bug
App crashed with exception.
This was the log message that contained the stack trace:
Unhandled exception caught for CoroutineName(call-handler)
Seems to happen during Ktor call handling.
Versions:
kotlinx.coroutine Packages
org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.1
org.jetbrains.kotlinx:kotlinx-coroutines-slf4j:1.7.1
Ktor Server Packages
io.ktor:ktor-server-core-jvm:2.3.7
io.ktor:ktor-server-netty-jvm:2.3.7
io.ktor:ktor-serialization-jackson:2.3.7
io.ktor:ktor-server-status-pages:2.3.7
io.ktor:ktor-server-call-id:2.3.7
io.ktor:ktor-server-double-receive:2.3.7
io.ktor:ktor-server-data-conversion:2.3.7
io.ktor:ktor-server-cors:2.3.7
io.ktor:ktor-server-content-negotiation:2.3.7
io.ktor:ktor-server-locations:2.3.7
io.ktor:ktor-server-auth:2.3.7
io.ktor:ktor-server-html-builder:2.3.7
io.ktor:ktor-server-metrics-micrometer:2.3.7
io.ktor:ktor-server-sessions:2.3.7
io.ktor:ktor-server-forwarded-header:2.3.7
io.ktor:ktor-server-websockets:2.3.7
io.ktor:ktor-server-rate-limit:2.3.7
io.ktor:ktor-server-test-host:2.3.7
Kotlin Version: 1.9.22
Will try to upgrade all the packages and Kotlin and then report if the issue persists.
Provide a Reproducer
Have not been able to reproduce this. The project where it is happening can not be shared.
The text was updated successfully, but these errors were encountered: