ReadYouApp / ReadYouApp/ReadYou

Crashes and freezes when opening any link

Open
#849 0 comments 1 reaction 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

  • Device: [Pixel 6]
  • OS: [Android 13]
  • APP: [0.9.6]

2. Describe the bug

See title

Version: 0.10.1
Device: Google Pixel 6 Pro
System: Android 14 (API 34)

Stack trace:

android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=https://bxblackrazor.blogspot.com/... pkg=android }
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2430)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:2005)
at android.app.Activity.startActivityForResult(Activity.java:5840)
at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.kt:2)
at android.app.Activity.startActivityForResult(Activity.java:5798)
at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.kt:1)
at android.app.Activity.startActivity(Activity.java:6295)
at android.app.Activity.startActivity(Activity.java:6262)
at me.ash.reader.ui.ext.ContextExtKt.openURL(ContextExt.kt:505)
at me.ash.reader.ui.page.home.reading.ContentKt$Content$2$1$2.invoke(Content.kt:2)
at me.ash.reader.ui.page.home.reading.ContentKt$Content$2$1$2.invoke(Content.kt:1)
at me.ash.reader.ui.component.reader.HtmlToComposableKt$formatBody$composer$1$1$1$1.invoke(HtmlToComposable.kt:4)
at me.ash.reader.ui.component.reader.HtmlToComposableKt$formatBody$composer$1$1$1$1.invoke(HtmlToComposable.kt:1)
at androidx.compose.foundation.text.ClickableTextKt$ClickableText$pressIndicator$1$1$1.invoke(ClickableText.kt:25)
at androidx.compose.foundation.gestures.TapGestureDetectorKt$detectTapGestures$2$1.invokeSuspend(TapGestureDetector.kt:328)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:9)
at kotlinx.coroutines.DispatchedTaskKt.resume(DispatchedTask.kt:81)
at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(CancellableContinuationImpl.kt:100)
at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl(CancellableContinuationImpl.kt:33)
at kotlinx.coroutines.CancellableContinuationImpl.resumeWith(CancellableContinuationImpl.kt:17)
at androidx.compose.ui.input.pointer.SuspendingPointerInputModifierNodeImpl.dispatchPointerEvent(SuspendingPointerInputFilter.kt:51)
at androidx.compose.ui.input.pointer.SuspendingPointerInputModifierNodeImpl.onPointerEvent-H0pRuoY(SuspendingPointerInputFilter.kt:32)
at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:169)
at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:146)
at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:146)
at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:146)
at androidx.compose.ui.input.pointer.HitPathTracker.dispatchChanges(HitPathTracker.kt:30)
at androidx.compose.ui.input.pointer.PointerInputEventProcessor.process-BIzXfog(PointerInputEventProcessor.kt:124)
at androidx.compose.ui.platform.AndroidComposeView.sendMotionEvent-8iAsVTc(AndroidComposeView.android.kt:79)
at androidx.compose.ui.platform.AndroidComposeView.handleMotionEvent-8iAsVTc(AndroidComposeView.android.kt:214)
at androidx.compose.ui.platform.AndroidComposeView.dispatchTouchEvent(AndroidComposeView.android.kt:76)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3125)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2806)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3125)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2806)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3125)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2806)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3125)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2806)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3125)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2806)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3125)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2806)
at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:496)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1952)
at android.app.Activity.dispatchTouchEvent(Activity.java:4510)
at androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:3)
at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:454)
at android.view.View.dispatchPointerEvent(View.java:16548)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:7559)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:7326)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6723)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6780)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6746)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:6912)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:6754)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:6969)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6727)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6780)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6746)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:6754)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6727)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:9827)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:9778)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:9747)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:9969)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:295)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:349)
at android.os.Looper.loopOnce(Looper.java:189)
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.MotionDurationScaleImpl@4ec4b39, androidx.compose.runtime.BroadcastFrameClock@e9d957e, StandaloneCoroutine{Cancelling}@a193adf, AndroidUiDispatcher@428332c]

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 in me.ash.reader.ui.ext.ContextExtKt.openURL, identified at ContextExt.kt:505, and reproduce the crash by opening an article link on Android 14. Trace the link click from Content.kt and HtmlToComposable.kt, then verify that tapping a link no longer produces ActivityNotFoundException or freezes the app.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.