https://kotlinlang.org logo
s

Sangeet

08/01/2023, 6:25 AM
Hi, Does anyone faced below crash explicitly on Samsung 5 devices.
Copy code
Caused by java.lang.RuntimeException: java.lang.NoSuchFieldException: onCloseHandler
       at java.util.concurrent.atomic.AtomicReferenceFieldUpdater$AtomicReferenceFieldUpdaterImpl.<init>(AtomicReferenceFieldUpdater.java:202)
       at java.util.concurrent.atomic.AtomicReferenceFieldUpdater.newUpdater(AtomicReferenceFieldUpdater.java:67)
       at kotlinx.coroutines.channels.AbstractSendChannel.<clinit>(AbstractChannel.kt)
       at kotlinx.coroutines.channels.ChannelKt.Channel(Channel.kt:776)
       at kotlinx.coroutines.channels.ChannelKt.Channel$default(Channel.kt:768)
       at kotlinx.coroutines.channels.ProduceKt.produce(Produce.kt:128)
       at kotlinx.coroutines.channels.ProduceKt.produce$default(Produce.kt:120)
       at kotlinx.coroutines.flow.internal.ChannelFlow.produceImpl(ChannelFlow.kt:119)
       at kotlinx.coroutines.flow.internal.ChannelFlow$collect$2.invokeSuspend(ChannelFlow.kt:123)
       at kotlinx.coroutines.flow.internal.ChannelFlow$collect$2.invoke(ChannelFlow.kt)
       at kotlinx.coroutines.flow.internal.ChannelFlow$collect$2.invoke(ChannelFlow.kt)
       at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
       at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:264)
       at kotlinx.coroutines.flow.internal.ChannelFlow.collect$suspendImpl(ChannelFlow.kt:122)
       at kotlinx.coroutines.flow.internal.ChannelFlow.collect(ChannelFlow.kt)
       at kotlinx.coroutines.flow.internal.ChannelFlowOperator.collect$suspendImpl(ChannelFlow.kt:173)
       at kotlinx.coroutines.flow.internal.ChannelFlowOperator.collect(ChannelFlow.kt)
       at kotlinx.coroutines.flow.FlowKt__CollectKt.collect(Collect.kt:30)
       at kotlinx.coroutines.flow.FlowKt.collect(Flow.kt:1)
       at kotlinx.coroutines.flow.FlowKt__CollectKt.collectLatest(Collect.kt:100)
       at kotlinx.coroutines.flow.FlowKt.collectLatest(Flow.kt:1)
I can see some discussion on https://kotlinlang.slack.com/archives/C1CFAFJSK/p1543926897104200 and https://github.com/Kotlin/kotlinx.coroutines/issues/490 Is it the same issue with no fix ?