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

kotlinx.coroutines.channels.ClosedSendChannelException: Channel was closed #1

Closed
emirhangulmez opened this issue Oct 29, 2022 · 0 comments

Comments

@emirhangulmez
Copy link

I live in a issue on when starting WorkManager.

My actions are in order:
I'm putting a second on the cryptocurrency.
I press the add button.
When I come to the main screen and wait for about 10 seconds, I get this error.

E/AndroidRuntime: FATAL EXCEPTION: DefaultDispatcher-worker-2
    Process: com.canerture.cryptocurrencypricetracker, PID: 11823
    kotlinx.coroutines.channels.ClosedSendChannelException: Channel was closed
        at kotlinx.coroutines.channels.Closed.getSendException(AbstractChannel.kt:1107)
        at kotlinx.coroutines.channels.AbstractSendChannel.helpCloseAndResumeWithSendException(AbstractChannel.kt:230)
        at kotlinx.coroutines.channels.AbstractSendChannel.access$helpCloseAndResumeWithSendException(AbstractChannel.kt:19)
        at kotlinx.coroutines.channels.AbstractSendChannel.sendSuspend(AbstractChannel.kt:220)
        at kotlinx.coroutines.channels.AbstractSendChannel.send(AbstractChannel.kt:136)
        at kotlinx.coroutines.channels.ChannelCoroutine.send(Unknown Source:2)
        at com.canerture.cryptocurrencypricetracker.data.repository.CoinRepositoryImpl$currentPriceById$1$1.invokeSuspend(CoinRepositoryImpl.kt:35)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
        at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
    	Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@bf0dbbd, Dispatchers.Default]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants