ReadYouApp / ReadYouApp/ReadYou

App is crashing

Open
#1,086 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Kotlin
Stars
7.5k
Forks
330
PR merge metrics
No merged PRs in 30d

Description

1. Environment

  • Version: 0.14.1
    Device: OnePlus CPH2413
    System: Android 15 (API 35)

App is crashing when you

  • Do Select All
    -Then manually select the content by moving the end to end markers

Here is the bug report

Stack trace:

java.util.ConcurrentModificationException
at java.util.ArrayList.sort(ArrayList.java:1823)
at java.util.Collections.sort(Collections.java:207)
at kotlin.collections.CollectionsKt___CollectionsJvmKt.sortWith(_CollectionsJvm.kt:18)
at androidx.compose.foundation.text.selection.SelectionRegistrarImpl.sort(SelectionRegistrarImpl.kt:17)
at androidx.compose.foundation.text.selection.SelectionManager$$ExternalSyntheticLambda5.invoke(R8$$SyntheticClass:41)
at androidx.compose.runtime.snapshots.Snapshot$Companion.observe(Snapshot.kt:109)
at androidx.compose.runtime.DerivedSnapshotState.currentRecord(DerivedState.kt:286)
at androidx.compose.runtime.DerivedSnapshotState.getCurrentRecord(DerivedState.kt:21)
at androidx.compose.runtime.snapshots.SnapshotStateObserver$ObservedScopeMap.recordInvalidation(SnapshotStateObserver.kt:468)
at androidx.compose.runtime.snapshots.SnapshotStateObserver.drainChanges(SnapshotStateObserver.kt:97)
at androidx.compose.runtime.snapshots.SnapshotStateObserver$$ExternalSyntheticLambda0.invoke(R8$$SyntheticClass:58)
at androidx.compose.runtime.snapshots.SnapshotKt.advanceGlobalSnapshot(Snapshot.kt:51)
at androidx.compose.runtime.snapshots.GlobalSnapshot.takeNestedSnapshot(Snapshot.kt:11)
at androidx.compose.runtime.SnapshotStateKt__SnapshotFlowKt$snapshotFlow$1.invokeSuspend(SnapshotFlow.kt:324)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:9)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:115)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:96)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [androidx.compose.ui.platform.MotionDurationScaleImpl@439f004, androidx.compose.runtime.BroadcastFrameClock@ae499ed, StandaloneCoroutine{Cancelling}@489f022, AndroidUiDispatcher@231cab3]

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the crash on Android 15 with version 0.14.1 using Select All, then manually moving the selection end markers. Use the provided ConcurrentModificationException stack trace, especially the selection path through SelectionRegistrarImpl.sort, to investigate the failure. Done means the same selection sequence no longer crashes the app.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.