Vincent Péricart
04/24/2023, 10:16 AMDebugProbes.jobToString
, blocking all threads of my coroutines executor:
• Threads are waiting for coroutineStateLock
at kotlinx.coroutines.debug.internal.DebugProbesImpl.hierarchyToString(DebugProbesImpl.kt:111)
at kotlinx.coroutines.debug.DebugProbes.jobToString(DebugProbes.kt:98)
• In that particular thread dump, the thread holding the lock was doing
at kotlin.coroutines.CombinedContext.get(CoroutineContextImpl.kt:120)
at kotlinx.coroutines.JobKt__JobKt.getJob(Job.kt:630)
at kotlinx.coroutines.JobKt.getJob(Unknown Source)
at kotlinx.coroutines.debug.internal.DebugProbesImpl.hierarchyToString(DebugProbesImpl.kt:115)
at kotlinx.coroutines.debug.DebugProbes.jobToString(DebugProbes.kt:98)
Has anyone else encountered something similar?Dmitry Khalanskiy [JB]
04/24/2023, 10:18 AMVsevolod Tolstopyatov [JB]
04/24/2023, 5:24 PMcoroutineStateLock
is gone).
Could you please tell if there is any progress in your application or if you are encountering a deadlock?
It's likely that hierarchyToString
doesn't scale well with the number of coroutines and, while doing its string concatenation, was preventing your system from doing any progress.
If it is a deadlock though, it's a different issue that is worth investigatingVincent Péricart
04/25/2023, 6:28 AM