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

[Bug]: OpenComic freeze after opening a cbz file #282

Open
1 task done
teor0 opened this issue Oct 19, 2024 · 8 comments
Open
1 task done

[Bug]: OpenComic freeze after opening a cbz file #282

teor0 opened this issue Oct 19, 2024 · 8 comments
Assignees
Labels
Milestone

Comments

@teor0
Copy link
Contributor

teor0 commented Oct 19, 2024

Preflight Checklist

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

OpenComic Version

1.3.1

Operating System

Debian GNU/Linux 12 (bookworm) x86-64 (Plasma 5.27.5)

Steps to reproduce

  1. Add a .cbz file
  2. Open a .cbz file

Expected Behavior

  1. Open a .cbz file
  2. The file load successfully
  3. You can start reading

Actual Behavior

  1. Open a .cbz file
  2. The file start loading
    3a. OpenComic freeze to a black screen or white screen depending on theme
    3b. OpenComic freeze on the first page of the comic

Error message

The following is the error message that I get from the console via DevTools:
error.log

Additional Information

I also tried to replicate the freeze on my Arco Linux system, and I have noticed the exact error message appears. But on my Arco Linux system everything works fine. For clarity I use the console log of the Arco Linux system cause for some reason I can't save the Debian console log neither.

Sample file

No response

@teor0 teor0 added the bug label Oct 19, 2024
@ollm ollm self-assigned this Oct 19, 2024
@ollm ollm added this to the v1.3.2 milestone Oct 19, 2024
@ollm
Copy link
Owner

ollm commented Oct 19, 2024

Thanks for reporting!

This error is fixed in the master branch (40c1b22#L128), although it should not affect the functioning of OpenComic.

What package did you use to install OpenComic? I will build the master branch to see if the error still persists.

@teor0
Copy link
Contributor Author

teor0 commented Oct 19, 2024

I tried both the AppImage and the .deb package on Debian. In both I bumped into the bug. Also I tried opening a .cbz file on Windows and it worked, but this showed open in the console if that helps you:
error.log

@ollm
Copy link
Owner

ollm commented Oct 19, 2024

Try the following master builds:

AppImage: https://mega.nz/file/nL4EVQ4A#KN5ZWcfMHpUDFkx4w2QpWFBWLbaAehU-UrRqBHA67pY
deb: https://mega.nz/file/nax2mSaR#VsJ_YwsgV9lrDHuOLIyMunFEzjqpv0Qpfjqc4WMPQyg

I have tested the AppImage and it opens cbz correctly at least on Ubuntu 24.04.

@teor0
Copy link
Contributor Author

teor0 commented Oct 19, 2024

So I tried the AppImage, and it worked but for a very little file (circa 8MB). Then I tried to open a bigger one and it froze then I closed it. I started the AppImage via the terminal opened the file and got a bunch of errors:
error.log
Added some comments in it too.

@ollm
Copy link
Owner

ollm commented Oct 19, 2024

Try this before running the AppImage via the terminal:

export G_SLICE=always-malloc

It seems to be a issue with sharp lovell/sharp#3817 (comment) (Used for thumbnails and image interpolation methods) and electron electron/electron#38048, I also had this issue with Ubuntu 22.04 but not in 24.04.

The solution would be a specific build with an older version of sharp, since this bug only occurs in the latest versions lovell/sharp#3817 (comment)

@teor0
Copy link
Contributor Author

teor0 commented Oct 19, 2024

I have tried the workaround and it finally works. Thanks

@dante3732
Copy link

dante3732 commented Oct 30, 2024

Also OpenComic too slow open CBR.

@ollm
Copy link
Owner

ollm commented Oct 31, 2024

Also OpenComic too slow open CBR.

Thanks for reporting!

Please open a new issue, this is a different problem and requires more information to address it.

https://github.com/ollm/OpenComic/issues/new/choose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants
@ollm @dante3732 @teor0 and others