tsdm_client icon indicating copy to clipboard operation
tsdm_client copied to clipboard

[BUG] app端私聊发图片不显示

Open Qing-Novel opened this issue 10 months ago • 11 comments

描述问题

app端私聊发图片不显示,但网页端发的图片显示,用的都是同一个图床链接

复现方法

复现问题的步骤:

  1. ...

期望的行为

可以显示

实际的行为

不显示

截图

Image Image

日志

打开设置 > 调试 > 复制日志 或 导出日志后再上传

[debug] | 13:15:01 132ms | start app...
[debug] | 13:15:01 136ms | connect to database
[debug] | 13:15:01 136ms | init database file at /data/user/0/kzs.th000.tsdm_clienu/files/db/mainV2.db
[debug] | 13:15:01 167ms | load cookie from database with login user uid: ****734
[debug] | 13:15:01 167ms | build no-cookie with cookie: null
[debug] | 13:15:01 178ms | RootLocationCubit: enter page /homepage
[debug] | 13:15:01 179ms | ForumHomeRepository: fetch home page
[debug] | 13:15:01 179ms | build cookie with user info: null
[debug] | 13:15:01 179ms | ProfileRepository: fetch profile page v2
[debug] | 13:15:01 179ms | build cookie with user info: null
[debug] | 13:15:04 346ms | ForumHomeRepository: use fetched home page
[debug] | 13:15:04 347ms | CookieProvider: save authed cookie to storage
[debug] | 13:15:04 353ms | AuthenticationRepository: save logged user info: UserLoginInfo{ username=******, uid=****734, 
[debug] | 13:15:04 363ms | CookieProvider: update user info: UserLoginInfo{ username=******, uid=****734, 
[debug] | 13:15:04 363ms | CookieProvider: complete user info updated, sync cookie
[debug] | 13:15:04 368ms | AuthenticationRepository: login with document: user UserLoginInfo{ username=******, uid=****734, 
[debug] | 13:15:04 371ms | NotificationBloc: updating all notifications...
[info] | 13:15:04 371ms | AutoNotificationCubit: start auto fetch with duration 0:01:00.000000
[debug] | 13:15:04 373ms | NotificationBloc: fetch notification since 2025-03-15 12:10:50
[debug] | 13:15:04 373ms | build cookie with user info: null
[error] | 13:15:04 500ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: YQ17, imageUrl: ): empty image url
[error] | 13:15:04 500ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: TR83, imageUrl: ): empty image url
[error] | 13:15:04 502ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: Hyperk1ler, imageUrl: ): empty image url
[error] | 13:15:04 502ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: tecrin, imageUrl: ): empty image url
[error] | 13:15:04 502ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: bobotan@yurikum, imageUrl: ): empty image url
[error] | 13:15:04 502ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: cy201214, imageUrl: ): empty image url
[error] | 13:15:04 502ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: x9mars, imageUrl: ): empty image url
[error] | 13:15:04 509ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: hanpian, imageUrl: ): empty image url
[error] | 13:15:04 510ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: Kei3tenshi, imageUrl: ): empty image url
[error] | 13:15:04 510ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: sankemu333, imageUrl: ): empty image url
[error] | 13:15:04 510ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: AXGAZER, imageUrl: ): empty image url
[error] | 13:15:04 510ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: a353080017, imageUrl: ): empty image url
[error] | 13:15:04 511ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: ㄣжgiveごup, imageUrl: ): empty image url
[error] | 13:15:04 511ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: 321456789, imageUrl: ): empty image url
[error] | 13:15:04 511ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: YueXi, imageUrl: ): empty image url
[error] | 13:15:04 511ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: Lumina-Alice, imageUrl: ): empty image url
[error] | 13:15:04 511ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: momochi, imageUrl: ): empty image url
[error] | 13:15:04 511ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: zsl1120, imageUrl: ): empty image url
[error] | 13:15:04 511ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: 乌尔尼斯, imageUrl: ): empty image url
[error] | 13:15:04 512ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: KenAdams, imageUrl: ): empty image url
[error] | 13:15:04 512ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: 黑影君, imageUrl: ): empty image url
[error] | 13:15:04 512ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: xuzi0c3f, imageUrl: ): empty image url
[error] | 13:15:04 512ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: 是莫莫喵, imageUrl: ): empty image url
[error] | 13:15:04 512ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: qicaiyunjian, imageUrl: ): empty image url
[debug] | 13:15:05 756ms | NotificationBloc: saving notification: notice=0 personalMessage=0 broadcastMessage=0 latestTime=null
[debug] | 13:15:05 779ms | NotificationBloc: load local notification: notice=332 personalMessage=16 broadcastMessage=1
[debug] | 13:15:08 177ms | RootLocationCubit: enter page /topic
[debug] | 13:15:08 177ms | ForumHomeRepository: fetch topics page
[debug] | 13:15:08 177ms | ForumHomeRepository: use cached topics page
[debug] | 13:15:09 213ms | RootLocationCubit: enter page /forum/:fid
[debug] | 13:15:09 213ms | build cookie with user info: null
[error] | 13:15:12 710ms | failed to build forum: name or fid or url not found: name=null, fid=null, url=null
[debug] | 13:15:14 362ms | RootLocationCubit: enter page /thread/v1
[debug] | 13:15:14 362ms | build cookie with user info: null
[debug] | 13:15:19 48ms | _ThreadPageState: save thread visit history tid=1230821
[debug] | 13:15:19 125ms | ThreadVisitHistoryBloc: fetch all succeeded, data count is 15
[debug] | 13:15:21 344ms | build cookie with user info: null
[debug] | 13:15:24 60ms | _ThreadPageState: save thread visit history tid=1230821
[debug] | 13:16:12 998ms | RootLocationCubit: enter page /notice
[error] | 13:16:14 776ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: 公子夜殇, imageUrl: ): empty image url
[error] | 13:16:14 791ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: 黑雪風, imageUrl: ): empty image url
[error] | 13:16:15 309ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: 不死鸟之翼, imageUrl: ): empty image url
[error] | 13:16:15 354ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: 宇崎樱, imageUrl: ): empty image url
[debug] | 13:16:15 373ms | AutoNotificationCubit: running auto fetch...
[debug] | 13:16:15 374ms | AutoNotificationCubit: auto fetch since 1742011851
[debug] | 13:16:15 374ms | build cookie with user info: null
[debug] | 13:16:16 982ms | AutoNotificationCubit: auto fetch finished with data
[debug] | 13:16:16 982ms | AutoNotificationCubit: update last fetch notification time to started time 2025-03-15 13:16:15.373923
[debug] | 13:16:16 983ms | NotificationBloc: saving notification: notice=0 personalMessage=0 broadcastMessage=0 latestTime=null
[debug] | 13:16:17 2ms | NotificationBloc: load local notification: notice=332 personalMessage=16 broadcastMessage=1
[error] | 13:16:19 707ms | failed to render image: failed to load image for ImageCacheUserAvatarRequest(username: TSDM-看书专用, imageUrl: ): empty image url
[debug] | 13:16:21 540ms | RootLocationCubit: leave page /notice
[debug] | 13:16:27 330ms | RootLocationCubit: leave page /thread/v1
[debug] | 13:16:28 218ms | RootLocationCubit: leave page /forum/:fid
[debug] | 13:16:31 175ms | RootLocationCubit: enter page /notice
[debug] | 13:16:44 880ms | dispatch url: https://www.tsdm39.com/home.php?mod=space&uid=1753198
[debug] | 13:16:44 881ms | NotificationBloc: mark notice: RecordMarkNotice(uid: 1889734, nid: 9562260, alreadyRead: true)
[debug] | 13:16:44 902ms | RootLocationCubit: enter page /profile
[debug] | 13:16:44 903ms | ProfileRepository: fetch profile page
[debug] | 13:16:44 903ms | build cookie with user info: null
[debug] | 13:16:49 940ms | RootLocationCubit: enter page /chat/:uid
[debug] | 13:16:49 941ms | build cookie with user info: null
[debug] | 13:17:16 373ms | AutoNotificationCubit: running auto fetch...
[debug] | 13:17:16 373ms | AutoNotificationCubit: auto fetch since 1742015776
[debug] | 13:17:16 373ms | build cookie with user info: null
[debug] | 13:17:18 544ms | AutoNotificationCubit: auto fetch finished with data
[debug] | 13:17:18 544ms | AutoNotificationCubit: update last fetch notification time to started time 2025-03-15 13:17:16.373319
[debug] | 13:17:18 545ms | NotificationBloc: saving notification: notice=0 personalMessage=0 broadcastMessage=0 latestTime=null
[debug] | 13:17:18 569ms | NotificationBloc: load local notification: notice=332 personalMessage=16 broadcastMessage=1
[debug] | 13:17:25 228ms | build cookie with user info: null
[debug] | 13:17:32 9ms | RootLocationCubit: leave page /chat/:uid
[debug] | 13:17:32 394ms | RootLocationCubit: leave page /profile
[debug] | 13:17:32 836ms | RootLocationCubit: leave page /notice
[debug] | 13:17:33 241ms | RootLocationCubit: enter page /notice
[debug] | 13:17:34 221ms | RootLocationCubit: enter page /chat/history/:uid
[debug] | 13:17:34 222ms | build cookie with user info: null
[debug] | 13:17:34 709ms | NotificationBloc: mark notice: RecordMarkPersonalMessage(uid: 1889734, peerUid: 115018, alreadyRead: true)
[debug] | 13:17:35 33ms | RootLocationCubit: leave page /chat/history/:uid
[debug] | 13:17:35 675ms | NotificationBloc: updating all notifications...
[info] | 13:17:35 675ms | AutoNotificationCubit: stop auto fetch with duration 0:01:00.000000
[info] | 13:17:35 676ms | AutoNotificationCubit: start auto fetch with duration 0:01:00.000000
[debug] | 13:17:35 681ms | NotificationBloc: fetch notification since 2025-03-15 13:17:16
[debug] | 13:17:35 681ms | build cookie with user info: null
[debug] | 13:17:37 103ms | NotificationBloc: saving notification: notice=0 personalMessage=1 broadcastMessage=0 latestTime=2025-03-15 13:17:36
[debug] | 13:17:37 146ms | NotificationBloc: load local notification: notice=332 personalMessage=17 broadcastMessage=1
[debug] | 13:17:37 146ms | NotificationInfoRepository: update auto sync info: NotificationAutoSyncInfoPm(user: alltimedepresse, msg: 我这怎么看怎么都是千万啊,难道我数错了?, notice: 0, personalMessage: 1, broadcastMessage: 0, timestamp: 1742015857146)
[debug] | 13:17:37 148ms | NotificationBloc: update last fetch notification time to 2025-03-15 13:17:36
[debug] | 13:17:37 148ms | NotificationBloc: update last fetch notification time to 2025-03-15 13:17:36
[debug] | 13:17:37 148ms | NotificationBloc: update last fetch notification time to 2025-03-15 13:17:36
[debug] | 13:17:37 895ms | RootLocationCubit: enter page /chat/history/:uid
[debug] | 13:17:37 896ms | build cookie with user info: null
[debug] | 13:18:02 35ms | build cookie with user info: null
[debug] | 13:18:24 186ms | build cookie with user info: null
[debug] | 13:18:26 181ms | NotificationBloc: mark notice: RecordMarkPersonalMessage(uid: 1889734, peerUid: 1753198, alreadyRead: true)
[debug] | 13:18:26 524ms | RootLocationCubit: leave page /chat/history/:uid
[debug] | 13:18:27 155ms | NotificationBloc: updating all notifications...
[info] | 13:18:27 155ms | AutoNotificationCubit: stop auto fetch with duration 0:01:00.000000
[info] | 13:18:27 156ms | AutoNotificationCubit: start auto fetch with duration 0:01:00.000000
[debug] | 13:18:27 167ms | NotificationBloc: fetch notification since 2025-03-15 13:17:36
[debug] | 13:18:27 167ms | build cookie with user info: null
[debug] | 13:18:28 459ms | NotificationBloc: saving notification: notice=0 personalMessage=1 broadcastMessage=0 latestTime=2025-03-15 13:18:32
[debug] | 13:18:28 504ms | NotificationBloc: load local notification: notice=332 personalMessage=17 broadcastMessage=1
[debug] | 13:18:28 505ms | NotificationInfoRepository: update auto sync info: NotificationAutoSyncInfoPm(user: alltimedepresse, msg: , notice: 0, personalMessage: 1, broadcastMessage: 0, timestamp: 1742015908505)
[debug] | 13:18:28 507ms | NotificationBloc: update last fetch notification time to 2025-03-15 13:18:32
[debug] | 13:18:28 507ms | NotificationBloc: update last fetch notification time to 2025-03-15 13:18:32
[debug] | 13:18:28 507ms | NotificationBloc: update last fetch notification time to 2025-03-15 13:18:32
[debug] | 13:18:29 124ms | RootLocationCubit: enter page /chat/history/:uid
[debug] | 13:18:29 124ms | build cookie with user info: null
[debug] | 13:18:36 285ms | NotificationBloc: mark notice: RecordMarkPersonalMessage(uid: 1889734, peerUid: 1753198, alreadyRead: true)
[debug] | 13:18:36 616ms | RootLocationCubit: leave page /chat/history/:uid
[debug] | 13:18:37 423ms | NotificationBloc: updating all notifications...
[info] | 13:18:37 423ms | AutoNotificationCubit: stop auto fetch with duration 0:01:00.000000
[info] | 13:18:37 423ms | AutoNotificationCubit: start auto fetch with duration 0:01:00.000000
[debug] | 13:18:37 429ms | NotificationBloc: fetch notification since 2025-03-15 13:18:32
[debug] | 13:18:37 430ms | build cookie with user info: null
[debug] | 13:18:39 95ms | NotificationBloc: saving notification: notice=0 personalMessage=0 broadcastMessage=0 latestTime=null
[debug] | 13:18:39 104ms | NotificationBloc: load local notification: notice=332 personalMessage=17 broadcastMessage=1
[debug] | 13:18:39 689ms | RootLocationCubit: enter page /chat/history/:uid
[debug] | 13:18:39 690ms | build cookie with user info: null
[debug] | 13:18:43 189ms | NotificationBloc: mark notice: RecordMarkPersonalMessage(uid: 1889734, peerUid: 1753198, alreadyRead: true)
[debug] | 13:18:43 520ms | RootLocationCubit: leave page /chat/history/:uid
[debug] | 13:18:43 850ms | RootLocationCubit: leave page /notice
[debug] | 13:19:25 681ms | RootLocationCubit: enter page /notice
[debug] | 13:19:27 174ms | NotificationBloc: updating all notifications...
[info] | 13:19:27 174ms | AutoNotificationCubit: stop auto fetch with duration 0:01:00.000000
[info] | 13:19:27 175ms | AutoNotificationCubit: start auto fetch with duration 0:01:00.000000
[debug] | 13:19:27 185ms | NotificationBloc: fetch notification since 2025-03-15 13:18:32
[debug] | 13:19:27 185ms | build cookie with user info: null
[debug] | 13:19:29 388ms | NotificationBloc: saving notification: notice=0 personalMessage=1 broadcastMessage=0 latestTime=2025-03-15 13:19:24
[debug] | 13:19:29 402ms | NotificationBloc: load local notification: notice=332 personalMessage=17 broadcastMessage=1
[debug] | 13:19:29 403ms | NotificationInfoRepository: update auto sync info: NotificationAutoSyncInfoPm(user: alltimedepresse, msg: , notice: 0, personalMessage: 1, broadcastMessage: 0, timestamp: 1742015969403)
[debug] | 13:19:29 403ms | NotificationBloc: update last fetch notification time to 2025-03-15 13:19:24
[debug] | 13:19:29 403ms | NotificationBloc: update last fetch notification time to 2025-03-15 13:19:24
[debug] | 13:19:29 404ms | NotificationBloc: update last fetch notification time to 2025-03-15 13:19:24
[debug] | 13:19:29 987ms | RootLocationCubit: enter page /chat/history/:uid
[debug] | 13:19:29 988ms | build cookie with user info: null
[debug] | 13:21:08 484ms | NotificationBloc: mark notice: RecordMarkPersonalMessage(uid: 1889734, peerUid: 1753198, alreadyRead: true)
[debug] | 13:21:08 811ms | RootLocationCubit: leave page /chat/history/:uid
[debug] | 13:21:10 115ms | NotificationBloc: updating all notifications...
[info] | 13:21:10 116ms | AutoNotificationCubit: stop auto fetch with duration 0:01:00.000000
[info] | 13:21:10 116ms | AutoNotificationCubit: start auto fetch with duration 0:01:00.000000
[debug] | 13:21:10 129ms | NotificationBloc: fetch notification since 2025-03-15 13:19:24
[debug] | 13:21:10 129ms | build cookie with user info: null
[debug] | 13:21:11 729ms | NotificationBloc: saving notification: notice=0 personalMessage=0 broadcastMessage=0 latestTime=null
[debug] | 13:21:11 743ms | NotificationBloc: load local notification: notice=332 personalMessage=17 broadcastMessage=1
[debug] | 13:21:12 333ms | RootLocationCubit: enter page /chat/history/:uid
[debug] | 13:21:12 333ms | build cookie with user info: null
[debug] | 13:21:16 938ms | NotificationBloc: mark notice: RecordMarkPersonalMessage(uid: 1889734, peerUid: 1753198, alreadyRead: true)
[debug] | 13:21:17 269ms | RootLocationCubit: leave page /chat/history/:uid
[debug] | 13:21:17 729ms | RootLocationCubit: leave page /notice
[debug] | 13:21:17 873ms | RootLocationCubit: enter page /settings
[debug] | 13:21:21 451ms | RootLocationCubit: enter page /debugLog

环境

平台

根据实际情况勾选

  • [x] Android
  • [ ] iOS
  • [ ] Linux
  • [ ] macOS
  • [ ] Windows

系统版本

鸿蒙4.2 aosp12

应用信息

## Info

* Version: 1.3.0+41.4cd1f2cf (1569) (2025-03-08)
* Flutter: 3.29.0 stable (35c388afb5)
* Dart: 3.7.0 (stable)

备注

暂无

Qing-Novel avatar Mar 15 '25 05:03 Qing-Novel

没复现

发的时候图片尺寸参数填的多少?日志是什时候的日志,发图片的时候还是收图片的时候?

realth000 avatar Mar 15 '25 05:03 realth000

就是发这图的 尺寸长边自动,短边700 我想起来我网页端是默认尺寸 我重新试下默认尺寸看看app端和网页端的情况

Qing-Novel avatar Mar 15 '25 05:03 Qing-Novel

应该是自动尺寸的问题

realth000 avatar Mar 15 '25 05:03 realth000

试出来了,是自动尺寸的关系,都填非0数值就能发

https://github.com/user-attachments/assets/943224d8-ec1c-44e9-99cf-1a600fecdaba

Qing-Novel avatar Mar 15 '25 05:03 Qing-Novel

应该是自动尺寸的问题

是的

Qing-Novel avatar Mar 15 '25 05:03 Qing-Novel

这个私信端的图片功能能去掉自动尺寸吗,如果不知道这回事就会出现我这情况

Qing-Novel avatar Mar 15 '25 05:03 Qing-Novel

是私信页面的问题,服务器定的格式不对

realth000 avatar Mar 15 '25 05:03 realth000

我说的自动是指单边填0的情况,不是自动填写图片长宽。 只要你不勾选长/宽单条边自动调整就没问题。

这个问题只有私信页面有,app可以针对这种情况补救,但是别人在网页上依然看不到图片。 只能不推荐在私信页面用这个功能了

realth000 avatar Mar 15 '25 05:03 realth000

我说的自动是指单边填0的情况,不是自动填写图片长宽。 只要你不勾选长/宽单条边自动调整就没问题。

这个问题只有私信页面有,app可以针对这种情况补救,但是别人在网页上依然看不到图片。 只能不推荐在私信页面用这个功能了

我知道,我这边也试出来了,您可以看下录屏 感觉私信界面的图片功能要么做个提示不让用自动那个勾选项,要么就删了那个勾选项吧,私信的图片功能

Qing-Novel avatar Mar 15 '25 05:03 Qing-Novel

只加个提示吧,不确定对服务器而言,长宽填允许0是bug还是feature。

按推荐来说是长宽都要填的

realth000 avatar Mar 15 '25 05:03 realth000

只加个提示吧,不确定对服务器而言,长宽填允许0是bug还是feature。

按推荐来说是长宽都要填的

那就加个提示吧,万一之后就可以用了呢

Qing-Novel avatar Mar 15 '25 05:03 Qing-Novel