OpenComic icon indicating copy to clipboard operation
OpenComic copied to clipboard

[Bug]: Blank Window/crashes after opening a few comics.

Open batteriesexcluded opened this issue 9 months ago • 4 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

Ubuntu 24.04.2 LTS

Installed via

Ubuntu AppCenter Snaps

Steps to reproduce

  1. Load OpenComic.
  2. Open 3-4 comics which are .zip files.

Expected Behavior

Able to continue opening and reading comics.

Actual Behavior

Blank window and unresponsive after 3rd or 4th comic. The DeveloperTools also disconnects.

Error message

in /var/log/messages, I see: 2025-02-23T22:50:52.780591-08:00 ubuntu opencomic[137449]: message repeated 25 times: [ cannot unreference class of invalid (unclassed) type '(null)'] 2025-02-23T22:50:52.780652-08:00 ubuntu opencomic_opencomic.desktop[137449]: MEMORY-ERROR: [137449]: GSlice: assertion failed: sinfo->n_allocated > 0

Additional Information

No response

Sample file

No response

batteriesexcluded avatar Feb 24 '25 06:02 batteriesexcluded

It seems to be the same problem as https://github.com/ollm/OpenComic/issues/282#issuecomment-2424103294, it only happens on Ubuntu 22.04 or below, or in this case because the snap package is based on Ubuntu 20.04 (core20).

I will try to see if it is possible to change the snap base to core24 to solve this problem.

In the meantime you can use the deb package, which should not have this problem.

ollm avatar Feb 24 '25 09:02 ollm

Waiting for https://github.com/electron-userland/electron-builder/pull/8549, electron-builder is not yet compatible with core24

For now, you will have to use the deb package or run this before running the snap package via the terminal.

export G_SLICE=always-malloc

ollm avatar Feb 24 '25 15:02 ollm

Using the deb package worked, thank you for the great support.

After installing using dpkg -i opencomic_1.4.1_amd64.deb, I also had to chmod after checking syslog: The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /opt/OpenComic/chrome-sandbox is owned by root and has mode 4755.

batteriesexcluded avatar Feb 25 '25 09:02 batteriesexcluded

This is another problem with electron in linux that has not been solved yet https://github.com/electron/electron/issues/42510 and https://github.com/electron/electron/issues/41066

Although it seems that this will be fixed when electron-builder v26 is released https://github.com/electron-userland/electron-builder/issues/8635 and https://github.com/electron-userland/electron-builder/pull/8636

ollm avatar Feb 25 '25 09:02 ollm