Skip to content

I'm getting an error when selecting text within a chapter of an .Epub file! #296

Description

@LandonFZ

Describe the bug
A clear and concise description of what the bug is.
A clean and clear description of this bug? I'm trying to copy the chapter text into the .epub file, and the application shows an error and crashes, closing it.

The error code is below. I tested it on two phones and the same problem occurs.

Cell phones tested: Samsung A10S, Motorola Moto G10.

The problem occurs in any epub.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '.epub'.
  2. Open the chapter (any chapter).
  3. Start selecting (without selecting all) by scrolling down...
  4. See error

Expected behavior
I open any .epub file, go to the chapter, and try to copy the text by selecting it (without selecting all of them because it doesn't appear!), but it freezes and gives an error screen.

Screenshots (optional)
I can't take a screenshot, but the error code is down there...

Device Info (please complete the following information):

  • Device: Samsung A10S, Motorola Moto G10.
  • Android Version: Android Version 11 (Motorola Moto G10) / Android Version 11 (Samsung A10S)
  • Version of the app: 1.8.0 (On both phones!)

Additional context (optional)
java.util.NoSuchElementException: Cannot find value for key 32
at androidx.collection.internal.RuntimeHelpersKt.c(r8-map-id-9e20cf6c4ed990f3af495dbd118afb0e4847ab585f51f589fa399b8add8d6ef3:8)
at androidx.collection.LongIntMap.b(r8-map-id-9e20cf6c4ed990f3af495dbd118afb0e4847ab585f51f589fa399b8add8d6ef3:26)
at androidx.compose.foundation.text.selection.SelectionManager$getSelectionLayout-Wko1d7g$$inlined$compareBy$1.compare(r8-map-id-9e20cf6c4ed990f3af495dbd118afb0e4847ab585f51f589fa399b8add8d6ef3:9)
at androidx.compose.foundation.text.selection.MultiWidgetSelectionDelegateKt.a(r8-map-id-9e20cf6c4ed990f3af495dbd118afb0e4847ab585f51f589fa399b8add8d6ef3:15)
at androidx.compose.foundation.text.selection.SelectionManager.o(r8-map-id-9e20cf6c4ed990f3af495dbd118afb0e4847ab585f51f589fa399b8add8d6ef3:360)
at androidx.compose.foundation.text.selection.SelectionManager$handleDragObserver$1.e(r8-map-id-9e20cf6c4ed990f3af495dbd118afb0e4847ab585f51f589fa399b8add8d6ef3:88)
at androidx.compose.foundation.text.LongPressTextDragObserverKt$detectDragGesturesWithObserver$5.k(r8-map-id-9e20cf6c4ed990f3af495dbd118afb0e4847ab585f51f589fa399b8add8d6ef3:9)
at androidx.compose.foundation.gestures.DragGestureDetectorKt$detectDragGestures$9.u(r8-map-id-9e20cf6c4ed990f3af495dbd118afb0e4847ab585f51f589fa399b8add8d6ef3:1133)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.h(r8-map-id-9e20cf6c4ed990f3af495dbd118afb0e4847ab585f51f589fa399b8add8d6ef3:9)
at kotlinx.coroutines.DispatchedTaskKt.a(r8-map-id-9e20cf6c4ed990f3af495dbd118afb0e4847ab585f51f589fa399b8add8d6ef3:89)
at kotlinx.coroutines.CancellableContinuationImpl.o(r8-map-id-9e20cf6c4ed990f3af495dbd118afb0e4847ab585f51f589fa399b8add8d6ef3:118)
at kotlinx.coroutines.CancellableContinuationImpl.E(r8-map-id-9e20cf6c4ed990f3af495dbd118afb0e4847ab585f51f589fa399b8add8d6ef3:33)
at kotlinx.coroutines.CancellableContinuationImpl.h(r8-map-id-9e20cf6c4ed990f3af495dbd118afb0e4847ab585f51f589fa399b8add8d6ef3:17)
at androidx.compose.ui.input.pointer.SuspendingPointerInputModifierNodeImpl.Z0(r8-map-id-9e20cf6c4ed990f3af495dbd118afb0e4847ab585f51f589fa399b8add8d6ef3:56)
at androidx.compose.ui.input.pointer.SuspendingPointerInputModifierNodeImpl.p0(r8-map-id-9e20cf6c4ed990f3af495dbd118afb0e4847ab585f51f589fa399b8add8d6ef3:32)
at androidx.compose.ui.input.pointer.Node.e(r8-map-id-9e20cf6c4ed990f3af495dbd118afb0e4847ab585f51f589fa399b8add8d6ef3:150)
at androidx.compose.ui.input.pointer.HitPathTracker.b(r8-map-id-9e20cf6c4ed990f3af495dbd118afb0e4847ab585f51f589fa399b8add8d6ef3:32)
at androidx.compose.ui.input.pointer.PointerInputEventProcessor.a(r8-map-id-9e20cf6c4ed990f3af495dbd118afb0e4847ab585f51f589fa399b8add8d6ef3:120)
at androidx.compose.ui.platform.AndroidComposeView.K(r8-map-id-9e20cf6c4ed990f3af495dbd118afb0e4847ab585f51f589fa399b8add8d6ef3:86)
at androidx.compose.ui.platform.AndroidComposeView.n(r8-map-id-9e20cf6c4ed990f3af495dbd118afb0e4847ab585f51f589fa399b8add8d6ef3:334)
at androidx.compose.ui.platform.AndroidComposeView.dispatchTouchEvent(r8-map-id-9e20cf6c4ed990f3af495dbd118afb0e4847ab585f51f589fa399b8add8d6ef3:76)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3920)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:3594)
at android.view.View.dispatchPointerEvent(View.java:15458)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:7457)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:7233)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6595)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6652)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6618)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:6786)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:6626)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:6843)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6599)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6652)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6618)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:6626)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6599)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:9880)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:9718)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:9671)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:10014)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:220)
at android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method)
at android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:200)
at android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:9960)
at android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:10056)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1010)
at android.view.Choreographer.doCallbacks(Choreographer.java:809)
at android.view.Choreographer.doFrame(Choreographer.java:737)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:995)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8653)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [androidx.compose.ui.platform.MotionDurationScaleImpl@57945d7, androidx.compose.runtime.BroadcastFrameClock@3346ec4, StandaloneCoroutine{Cancelling}@6ab11ad, AndroidUiDispatcher@f076ce2]

Please don't use titles like [Bug], use clear and well formatted titles like "Some error in Screen".
Duplicates and invalid issues will be closed.

Metadata

Metadata

Assignees

Labels

👾 BugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions