https://kotlinlang.org logo
#compose
Title
# compose
s

Satria Adi Putra

02/23/2022, 8:06 AM
Hi there I just migrate a screen in my app to compose, and firebase crashlytics report this 2 crash which I think is the same error. What's happening here? What causing the error? Thanks
🧵 3
here is the error message from crashlytics
Copy code
Fatal Exception: java.lang.IllegalStateException: entered drag with non-zero pending scroll: 6018495.0
       at androidx.compose.foundation.lazy.LazyListState.onScroll$foundation_release(LazyListState.java:235)
       at androidx.compose.foundation.lazy.LazyListState$scrollableState$1.invoke(LazyListState.kt:146)
       at androidx.compose.foundation.lazy.LazyListState$scrollableState$1.invoke(LazyListState.kt:146)
       at androidx.compose.foundation.gestures.DefaultScrollableState$scrollScope$1.scrollBy(ScrollableState.kt:134)
       at androidx.compose.foundation.gestures.ScrollingLogic.dispatchScroll-iGfEq8s(Scrollable.kt:265)
       at androidx.compose.foundation.gestures.ScrollDraggableState.dragBy-Uv8p0NA(Scrollable.kt:339)
       at androidx.compose.foundation.gestures.DraggableKt$draggable$9$2$2.invokeSuspend(Draggable.kt:244)
       at androidx.compose.foundation.gestures.DraggableKt$draggable$9$2$2.invoke(Draggable.kt:2)
       at androidx.compose.foundation.gestures.ScrollDraggableState$drag$2.invokeSuspend(Scrollable.kt:350)
       at androidx.compose.foundation.gestures.ScrollDraggableState$drag$2.invoke(Scrollable.kt:2)
       at androidx.compose.foundation.gestures.DefaultScrollableState$scroll$2$1.invokeSuspend(ScrollableState.kt:148)
       at androidx.compose.foundation.gestures.DefaultScrollableState$scroll$2$1.invoke(ScrollableState.kt:2)
       at androidx.compose.foundation.MutatorMutex$mutateWith$2.invokeSuspend(MutatorMutex.kt:160)
       at androidx.compose.foundation.MutatorMutex$mutateWith$2.invoke(MutatorMutex.kt:2)
       at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(UndispatchedKt.java:89)
       at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScopeKt.java:264)
       at androidx.compose.foundation.MutatorMutex.mutateWith(MutatorMutex.kt:153)
       at androidx.compose.foundation.gestures.DefaultScrollableState$scroll$2.invokeSuspend(ScrollableState.kt:145)
       at androidx.compose.foundation.gestures.DefaultScrollableState$scroll$2.invoke(ScrollableState.kt:2)
       at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(UndispatchedKt.java:89)
       at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScopeKt.java:264)
       at androidx.compose.foundation.gestures.DefaultScrollableState.scroll(ScrollableState.kt:144)
       at androidx.compose.foundation.lazy.LazyListState.scroll(LazyListState.kt:216)
       at androidx.compose.foundation.gestures.ScrollDraggableState.drag(Scrollable.kt:348)
       at androidx.compose.foundation.gestures.DraggableKt$draggable$9$2.invokeSuspend(Draggable.kt:241)
       at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
       at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
       at androidx.compose.ui.platform.AndroidUiDispatcher.performTrampolineDispatch(AndroidUiDispatcher.android.kt:81)
       at androidx.compose.ui.platform.AndroidUiDispatcher.access$performTrampolineDispatch(AndroidUiDispatcher.android.kt:41)
       at androidx.compose.ui.platform.AndroidUiDispatcher$dispatchCallback$1.doFrame(AndroidUiDispatcher.android.kt:68)
       at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1002)
       at android.view.Choreographer.doCallbacks(Choreographer.java:816)
       at android.view.Choreographer.doFrame(Choreographer.java:748)
       at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:990)
       at android.os.Handler.handleCallback(Handler.java:873)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loop(Looper.java:193)
       at android.app.ActivityThread.main(ActivityThread.java:6692)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Fatal Exception: java.lang.IllegalStateException: entered drag with non-zero pending scroll: 5.437904E33
       at androidx.compose.foundation.lazy.LazyListState.onScroll$foundation_release(LazyListState.java:235)
       at androidx.compose.foundation.lazy.LazyListState$scrollableState$1.invoke(LazyListState.kt:146)
       at androidx.compose.foundation.lazy.LazyListState$scrollableState$1.invoke(LazyListState.kt:146)
       at androidx.compose.foundation.gestures.DefaultScrollableState$scrollScope$1.scrollBy(ScrollableState.kt:134)
       at androidx.compose.foundation.gestures.ScrollingLogic.dispatchScroll-iGfEq8s(Scrollable.kt:265)
       at androidx.compose.foundation.gestures.ScrollDraggableState.dragBy-Uv8p0NA(Scrollable.kt:339)
       at androidx.compose.foundation.gestures.DraggableKt$draggable$9$2$2.invokeSuspend(Draggable.kt:244)
       at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
       at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
       at androidx.compose.ui.platform.AndroidUiDispatcher.performTrampolineDispatch(AndroidUiDispatcher.android.kt:81)
       at androidx.compose.ui.platform.AndroidUiDispatcher.access$performTrampolineDispatch(AndroidUiDispatcher.android.kt:41)
       at androidx.compose.ui.platform.AndroidUiDispatcher$dispatchCallback$1.doFrame(AndroidUiDispatcher.android.kt:68)
       at android.view.Choreographer$CallbackRecord.run(Choreographer.java:984)
       at android.view.Choreographer.doCallbacks(Choreographer.java:798)
       at android.view.Choreographer.doFrame(Choreographer.java:727)
       at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:972)
       at android.os.Handler.handleCallback(Handler.java:790)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loop(Looper.java:192)
       at android.app.ActivityThread.main(ActivityThread.java:6754)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:549)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828)
2 Views