element-hq / element-x-android

Android Matrix messenger application using the Matrix Rust Sdk and Jetpack Compose
GNU Affero General Public License v3.0
1.07k stars 155 forks source link

Crash when clicking on an image #1393

Open bbhtt opened 1 year ago

bbhtt commented 1 year ago

Steps to reproduce

  1. Join #nightly:mozilla.org
  2. Tap on the following image https://matrix.to/#/!evDrGXhEMVVjldSwGf:mozilla.org/$yxLMQaH-jnpjZdY0-ipjgdlQ9LwsJoR-YA0y1RhXLPY?via=mozilla.org&via=matrix.org&via=tchncs.de
  3. Crashes immediately

Outcome

What did you expect?

Shouldn't crash

What happened instead?

Crash

Your phone model

Nokia C3

Operating system version

Android 10

Application version and app store

0.2.0 from Play Store

Homeserver

matrix.org

Will you send logs?

Yes

Are you willing to provide a PR?

No

bbhtt commented 1 year ago

Log sent with issue # in description

09-20 20:59:21.199  2502  2502 E AndroidRuntime: FATAL EXCEPTION: main
09-20 20:59:21.199  2502  2502 E AndroidRuntime: Process: io.element.android.x, PID: 2502
09-20 20:59:21.199  2502  2502 E AndroidRuntime: java.lang.IllegalArgumentException: Cannot coerce value to an empty range: maximum 268 is less than minimum 620.
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at kotlin.TuplesKt.coerceIn(SourceFile:7)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at kotlinx.coroutines.flow.FlowKt__DelayKt$debounceInternal$1.invokeSuspend(SourceFile:584)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at kotlinx.coroutines.flow.FlowKt__DelayKt$debounceInternal$1.invoke(SourceFile:65)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3$1$2.invokeSuspend(SourceFile:35)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3$1$2.invoke(SourceFile:13)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at kotlinx.coroutines.AbstractCoroutine.start$enumunboxing$(SourceFile:28)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at kotlinx.coroutines.JobKt.launch$default(SourceFile:35)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3$1.emit(SourceFile:105)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at kotlinx.coroutines.flow.FlowKt__TransformKt$filterNotNull$$inlined$unsafeTransform$1$2.emit(SourceFile:210)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at kotlinx.coroutines.flow.FlowKt__TransformKt$filterNotNull$$inlined$unsafeTransform$1$2.emit(SourceFile:267)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at kotlinx.coroutines.flow.internal.SafeCollectorKt$emitFun$1.invoke(SourceFile:5)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at kotlinx.coroutines.flow.internal.SafeCollector.emit(SourceFile:23)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at kotlinx.coroutines.flow.internal.SafeCollector.emit(SourceFile:1)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at androidx.compose.runtime.SnapshotStateKt__SnapshotFlowKt$snapshotFlow$1.invokeSuspend(SourceFile:142)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at androidx.compose.runtime.SnapshotStateKt__SnapshotFlowKt$snapshotFlow$1.invoke(SourceFile:13)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at kotlinx.coroutines.flow.SafeFlow.collect(SourceFile:172)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at kotlinx.coroutines.flow.FlowKt__TransformKt$filterNotNull$$inlined$unsafeTransform$1.collect(SourceFile:49)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at kotlinx.coroutines.flow.FlowKt__TransformKt$filterNotNull$$inlined$unsafeTransform$1.collect(SourceFile:33)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3.invokeSuspend(SourceFile:47)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3.invoke(SourceFile:13)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at okio._JvmPlatformKt.startUndispatchedOrReturn(SourceFile:5)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at org.jsoup.Jsoup.coroutineScope(SourceFile:10)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest.flowCollect(SourceFile:7)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at kotlinx.coroutines.flow.internal.ChannelFlowOperator.collectTo(SourceFile:6)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at kotlinx.coroutines.flow.internal.ChannelFlow$collectToFun$1.invokeSuspend(SourceFile:33)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:9)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at kotlinx.coroutines.DispatchedTask.run(SourceFile:116)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at com.google.android.gms.tasks.zzc.run(SourceFile:32)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at kotlinx.coroutines.scheduling.TaskImpl.run(SourceFile:3)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:94)
09-20 20:59:21.199  2502  2502 E AndroidRuntime:    Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [androidx.compose.ui.platform.MotionDurationScaleImpl@3df75cb, androidx.compose.runtime.BroadcastFrameClock@20b31a8, StandaloneCoroutine{Cancelling}@7d584c1, AndroidUiDispatcher@2a28466]
09-20 20:59:21.199  2502  2502 D HprofFactory: Create HprofDebugEx
09-20 20:59:23.444  2502  2520 W System  : A resource failed to call close.