Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

从网址打开某一画廊后无法通过侧边栏跳转至上一画廊 #316

Open
3 of 4 tasks
wh201906 opened this issue Dec 1, 2023 · 0 comments
Open
3 of 4 tasks
Labels
bug Something isn't working

Comments

@wh201906
Copy link
Contributor

wh201906 commented Dec 1, 2023

复现步骤 / Steps to reproduce

(以下操作均在平板模式下进行)

  1. 打开某个含有“系列作品”(multi-work series)标签的画廊,记为画廊A
  2. 点击画廊评论区的其它画廊链接,记为画廊B
  3. 点击侧边栏的另一画廊,记为画廊C,可以正常跳转
  4. 点击侧边栏的画廊A,预览页面仍然显示画廊C,无法正常跳转,Logcat提示 "same gallery"

预期行为 / Expected behaviour

在第4步点击侧边栏的画廊A之后预览页面也对应跳转至画廊A

实际行为 / Actual behaviour

预览页面不会跳转

备注 / Additional details

我自己尝试修了下,但是因为不了解整体的路由逻辑,所以没搞定
一些观察到的现象:

  1. 如果全程从侧边栏打开画廊预览,无论打开多少个画廊,按返回键之后预览页面会直接回到空白页
  2. 如果先从侧边栏打开若干次画廊预览,再从网址打开画廊预览,那么按返回键之后会先回到某一次画廊预览页面,再按一次返回才会回到空白页
  3. 看起来复现步骤当中的“点击画廊C”一步会导致顶层的画廊预览页面跳转,但是之后点击画廊A识别的却是底层的画廊预览页面,因此会判断为"same gallery"
  4. 我尝试一直输出lib/common/service/controller_tag_service.dart当中的pageGids,发现打开不同的画廊时pageGids会变多,但是关闭画廊或者切换画廊时pageGids不会对应减少。此处是否有内存泄露的可能性?

FEhViewer 版本号 / FEhViewer version code

1.5.3

FEhViewer CI 版本 / FEhViewer CI version

https://github.com/3003h/FEhViewer/actions/runs/6913951246

平台 / Platform

Android

系统版本 / System version

x

设备型号 / Device model

x

SoC 型号 / SoC model

x

应用日志 / App logs

复现步骤中的画廊A, B, C对应的画廊id已对应替换为2aaaaaa, 2bbbbbb, 2cccccc
log.txt

自查步骤 / Self-review steps

  • 如果您有足够的时间和能力,并愿意为修复此问题提交 PR ,请勾上此复选框 / Pull request is welcome. Check this if you want to start a pull request
  • 您已搜索过 Issue Tracker,没有找到类似的问题 / I have searched on Issue Tracker, No duplicate or related open issue has been found
  • 您确保这个 Issue 只提及一个问题。如果您有多个问题报告,烦请发起多个 Issue / Ensure there is only one bug report in this issue. Please make mutiply issue for mutiply bugs
  • 您确保已使用 最新 CI 版本 测试,并且该问题在最新 CI 版本中并未解决 / This bug have not solved in latest CI version
@wh201906 wh201906 added the bug Something isn't working label Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant