2024-08-27 09:26:35.764 8967-8967 ImeTracker com.example.scigemma I com.example.scigemma:8a3296d7: onRequestShow at ORIGIN_CLIENT reason SHOW_SOFT_INPUT_BY_INSETS_API fromUser false
2024-08-27 09:26:35.765 8967-8967 InputMethodManager com.example.scigemma D showSoftInput() view=androidx.compose.ui.platform.AndroidComposeView{a4e6b77 VFED..... .F....ID 0,0-1080,2219 aid=1073741827} flags=0 reason=SHOW_SOFT_INPUT_BY_INSETS_API
2024-08-27 09:26:35.886 8967-8967 InsetsController com.example.scigemma D show(ime(), fromIme=true)
2024-08-27 09:26:36.116 8967-8967 ImeTracker com.example.scigemma I com.example.scigemma:8a3296d7: onShown
2024-08-27 09:26:46.699 8967-8967 AndroidRuntime com.example.scigemma E FATAL EXCEPTION: main
Process: com.example.scigemma, PID: 8967
java.util.ConcurrentModificationException
at androidx.compose.runtime.snapshots.StateListIterator.validateModification(SnapshotStateList.kt:320)
at androidx.compose.runtime.snapshots.StateListIterator.next(SnapshotStateList.kt:296)
at com.example.scigemma.GemmaUiState.getMessages(ChatUiState.kt:127)
at com.example.scigemma.ChatScreenKt$ChatScreen$1$1.invoke(ChatScreen.kt:83)
at com.example.scigemma.ChatScreenKt$ChatScreen$1$1.invoke(ChatScreen.kt:76)
at androidx.compose.foundation.lazy.LazyListIntervalContent.<init>(LazyListIntervalContent.kt:34)
at androidx.compose.foundation.lazy.LazyListItemProviderKt$rememberLazyListItemProviderLambda$1$intervalContentState$1.invoke(LazyListItemProvider.kt:49)
at androidx.compose.foundation.lazy.LazyListItemProviderKt$rememberLazyListItemProviderLambda$1$intervalContentState$1.invoke(LazyListItemProvider.kt:48)
at androidx.compose.runtime.snapshots.Snapshot$Companion.observe(Snapshot.kt:2303)
at androidx.compose.runtime.DerivedSnapshotState.currentRecord(DerivedState.kt:200)
at androidx.compose.runtime.DerivedSnapshotState.current(DerivedState.kt:167)
at androidx.compose.runtime.DerivedSnapshotState$ResultRecord.readableHash(DerivedState.kt:142)
at androidx.compose.runtime.DerivedSnapshotState$ResultRecord.isValid(DerivedState.kt:114)
at androidx.compose.runtime.DerivedSnapshotState.currentRecord(DerivedState.kt:175)
at androidx.compose.runtime.DerivedSnapshotState.getCurrentRecord(DerivedState.kt:274)
at androidx.compose.runtime.snapshots.SnapshotStateObserver$ObservedScopeMap.recordInvalidation(SnapshotStateObserver.kt:595)
at androidx.compose.runtime.snapshots.SnapshotStateObserver.drainChanges(SnapshotStateObserver.kt:69)
at androidx.compose.runtime.snapshots.SnapshotStateObserver.access$drainChanges(SnapshotStateObserver.kt:41)
at androidx.compose.runtime.snapshots.SnapshotStateObserver$applyObserver$1.invoke(SnapshotStateObserver.kt:48)
at androidx.compose.runtime.snapshots.SnapshotStateObserver$applyObserver$1.invoke(SnapshotStateObserver.kt:46)
at androidx.compose.runtime.snapshots.SnapshotKt.advanceGlobalSnapshot(Snapshot.kt:1815)
at androidx.compose.runtime.snapshots.SnapshotKt.advanceGlobalSnapshot(Snapshot.kt:1830)
at androidx.compose.runtime.snapshots.SnapshotKt.access$advanceGlobalSnapshot(Snapshot.kt:1)
at androidx.compose.runtime.snapshots.Snapshot$Companion.sendApplyNotifications(Snapshot.kt:583)
at androidx.compose.ui.platform.GlobalSnapshotManager$ensureStarted$1.invokeSuspend(GlobalSnapshotManager.android.kt:48)
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.run(AndroidUiDispatcher.android.kt:57)
at android.os.Handler.handleCallback(Handler.java:959)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.app.ActivityThread.main(ActivityThread.java:8592)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [androidx.compose.ui.platform.AndroidUiFrameClock@322d28e, StandaloneCoroutine{Cancelling}@9cf1aaf, AndroidUiDispatcher@9a9debc]
Stacktrace: