FooIbar / EhViewer

EhViewer overhauled with Material Design 3 and more, forked from https://github.com/Ehviewer-Overhauled/Ehviewer
GNU General Public License v3.0
2.5k stars 97 forks source link

返回手势导致应用闪退以及返回显示异常 #1662

Closed teralomaniac closed 1 month ago

teralomaniac commented 1 month ago

复现步骤 / Step to reproduce

  1. https://github.com/user-attachments/assets/c386f82c-a8ed-4648-b4ff-fb10c37f1cc6

  2. https://github.com/user-attachments/assets/5d4980a6-8a97-4d55-8dd9-e52739561e91

预期行为 / Expected behaviour

  1. 应当正常返回上一个页面
  2. 应当在返回手势未完成前到取消手势后都不改变显示内容

实际行为 / Actual Behaviour

  1. 应用闪退
  2. 返回手势未完成前就跳转上一个页面,在取消手势后又回到原页面

应用日志 / App logs

log-2024-09-21-19-33-36-576.zip

备注 / Addition details

No response

浏览站点 / Browsing site

E-Hentai / ExHentai

EhViewer 版本号 / EhViewer version code

1.13.0-SNAPSHOT

EhViewer CI 版本 / EhViewer CI Version

b9da0ed

Android 系统版本 / Android version

OriginOS 4, Android 14

设备型号 / Device model

vivo X Fold 3

SoC 型号 / Soc model

骁龙8Gen2

自查步骤 / Verify steps

FooIbar commented 1 month ago

2是预期行为 https://developer.android.com/design/ui/mobile/guides/patterns/predictive-back?hl=zh-cn

FooIbar commented 1 month ago
java.lang.IllegalArgumentException: Expecting fraction between 0 and 1. Got NaN
        at androidx.compose.animation.core.PreconditionsKt.throwIllegalArgumentException(Preconditions.kt:26)
        at androidx.compose.animation.core.SeekableTransitionState.seekTo(Transition.kt:2142)
        at androidx.navigation.compose.NavHostKt$NavHost$28$1.invokeSuspend(NavHost.kt:612)

https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:navigation/navigation-compose/src/main/java/androidx/navigation/compose/NavHost.kt;l=612;drc=ea936f8359250bc9cb4c6c92bed301146c5dc57e

FooIbar commented 1 month ago

1是系统问题,建议向厂商反馈,可以附上我上面贴的堆栈跟踪