Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.

java.lang.IllegalStateException: Flow invariant is violated: #102

@twisti-dev

Description

@twisti-dev
whitelist refresh
Refreshing whitelist enforcement...
[30.08.2025 16:46:03 ERROR]: Unhandled exception in coroutine: common
java.lang.IllegalStateException: Flow invariant is violated:
                Emission from another coroutine is detected.
                Child of DeferredCoroutine{Active}@4c81c1f3, expected child of ProducerCoroutine{Active}@5cbd5b00.
                FlowCollector is not thread-safe and concurrent emissions are prohibited.
                To mitigate this restriction please use 'channelFlow' builder instead of 'flow'
        at kotlinx.coroutines.flow.internal.SafeCollector_commonKt.checkContext$lambda$0(SafeCollector.common.kt:67) ~[kotlinx-coroutines-core-jvm-1.10.2.jar!/:?]
        at kotlin.coroutines.CombinedContext.fold(CoroutineContextImpl.kt:133) ~[kotlin-stdlib-2.2.0.jar!/:2.2.0-release-294]
        at kotlin.coroutines.CombinedContext.fold(CoroutineContextImpl.kt:133) ~[kotlin-stdlib-2.2.0.jar!/:2.2.0-release-294]
        at kotlinx.coroutines.flow.internal.SafeCollector_commonKt.checkContext(SafeCollector.common.kt:24) ~[kotlinx-coroutines-core-jvm-1.10.2.jar!/:?]
        at kotlinx.coroutines.flow.internal.SafeCollector.checkContext(SafeCollector.kt:132) ~[kotlinx-coroutines-core-jvm-1.10.2.jar!/:?]
        at kotlinx.coroutines.flow.internal.SafeCollector.emit(SafeCollector.kt:109) ~[kotlinx-coroutines-core-jvm-1.10.2.jar!/:?]
        at kotlinx.coroutines.flow.internal.SafeCollector.emit(SafeCollector.kt:82) ~[kotlinx-coroutines-core-jvm-1.10.2.jar!/:?]
        at dev.slne.surf.cloud.standalone.player.whitelist.WhitelistRepository$whitelistStatusBatched$2$1.invokeSuspend(WhitelistRepository.kt:104) ~[!/:1.21.8-1.0.0-SNAPSHOT]
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) [kotlin-stdlib-2.2.0.jar!/:2.2.0-release-294]
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100) [kotlinx-coroutines-core-jvm-1.10.2.jar!/:?]
        at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:124) ~[kotlinx-coroutines-core-jvm-1.10.2.jar!/:?]
        at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89) ~[kotlinx-coroutines-core-jvm-1.10.2.jar!/:?]
        at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:586) [kotlinx-coroutines-core-jvm-1.10.2.jar!/:?]
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:820) [kotlinx-coroutines-core-jvm-1.10.2.jar!/:?]
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:717) [kotlinx-coroutines-core-jvm-1.10.2.jar!/:?]
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:704) [kotlinx-coroutines-core-jvm-1.10.2.jar!/:?]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

Backlog

Relationships

None yet

Development

No branches or pull requests

Issue actions