OpenComic icon indicating copy to clipboard operation
OpenComic copied to clipboard

[Bug]: 图片显示空白

Open laiwei-f opened this issue 6 months ago • 9 comments

Preflight Checklist

  • [x] I have searched the issue tracker for a bug report that matches the one I want to file, without success.

OpenComic Version

1.4.1

Operating System

win11

Installed via

.exe

Steps to reproduce

图片格式png

软件内显示 Image

Image

实际的图 Image

Expected Behavior

正常显示

Actual Behavior

显示空白

Error message

No response

Additional Information

No response

Sample file

No response

laiwei-f avatar Jun 10 '25 08:06 laiwei-f

后面多张图都是显示为空白 Image

左侧预览正常 Image

图片格式都是png

laiwei-f avatar Jun 10 '25 08:06 laiwei-f

Can you check the console for any errors? Debug > Toggle DevTools > Console

ollm avatar Jun 10 '25 08:06 ollm

You could also try it in the latest OpenComic build?

Build: https://mega.nz/file/fWwkGYwa#HUSW0eoWwOSukiSCjVaKQOpPWSb1HeE4zM-_NgMBH0Q

ollm avatar Jun 10 '25 08:06 ollm

Can you check the console for any errors? Debug > Toggle DevTools > Console

Image

laiwei-f avatar Jun 10 '25 08:06 laiwei-f

You could also try it in the latest OpenComic build?

Build: https://mega.nz/file/fWwkGYwa#HUSW0eoWwOSukiSCjVaKQOpPWSb1HeE4zM-_NgMBH0Q 重新安装后,打开黑屏了 Image

laiwei-f avatar Jun 10 '25 08:06 laiwei-f

You could also try it in the latest OpenComic build?

Build: https://mega.nz/file/fWwkGYwa#HUSW0eoWwOSukiSCjVaKQOpPWSb1HeE4zM-_NgMBH0Q

下载安装 1.4.1.master.46ba727 后,打开软件黑屏报错,我重新安装1.4.1,软件正常能打开

laiwei-f avatar Jun 10 '25 08:06 laiwei-f

下载安装 1.4.1.master.46ba727 后,打开软件黑屏报错,我重新安装1.4.1,软件正常能打开

Try this other build, there was an error when migrating cache data to new version f61e6ce3555d540eb61fb1a0065550a0fdb4f208

Build: https://mega.nz/file/WGxx0BTJ#53zPsdJaomKVCREYLFM-WVPdXqwQJaFsfjYUmPD6OPg

Image

Are the images in avif format?

It seems to be the same error as https://github.com/ollm/OpenComic/issues/268 and https://github.com/ollm/OpenComic/issues/315#issuecomment-2575303134, and it seems to be related to Chrome https://github.com/flutter/flutter/issues/160600, I will try to investigate further.

ollm avatar Jun 10 '25 09:06 ollm

下载安装 1.4.1.master.46ba727 后,打开软件黑屏报错,我重新安装1.4.1,软件正常能打开

Try this other build, there was an error when migrating cache data to new version f61e6ce

Build: https://mega.nz/file/WGxx0BTJ#53zPsdJaomKVCREYLFM-WVPdXqwQJaFsfjYUmPD6OPg

Image

Are the images in avif format?

It seems to be the same error as #268 and #315 (comment), and it seems to be related to Chrome flutter/flutter#160600, I will try to investigate further.

格式png

https://mega.nz/file/sd8FzBjT#X5rAdH048Gkz7oHzJKShpG-PYQCCMHTSZO6VQE4Z0ec

laiwei-f avatar Jun 10 '25 09:06 laiwei-f

Thank you for the sample file! It helped me find the error.

The error occurred when trying to detect whether an image is animated or not (in order to decide whether to use image interpolation). It seems that some PNG images cause this error. I have made some changes to ignore it in these cases and treat the image as non-animated 1439b9b584aa4a3e1703b641c1e7f36f890dff07

Buid: https://mega.nz/file/yGxTSZyB#xSA1KInb71wVX8d9GNdPxxz2_erIW9nWUiCj4wSqPrA

ollm avatar Jun 11 '25 07:06 ollm

Closing this, since the fix is now available in v1.6.0

ollm avatar Jul 27 '25 18:07 ollm