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]: Blank Window/crashes after opening a few comics. #343

Open
1 task done
batteriesexcluded opened this issue Feb 24, 2025 · 4 comments
Open
1 task done

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

batteriesexcluded opened this issue Feb 24, 2025 · 4 comments
Assignees
Labels

Comments

@batteriesexcluded
Copy link

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.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

@ollm ollm self-assigned this Feb 24, 2025
@ollm
Copy link
Owner

ollm commented Feb 24, 2025

It seems to be the same problem as #282 (comment), 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
Copy link
Owner

ollm commented Feb 24, 2025

Waiting for electron-userland/electron-builder#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

@batteriesexcluded
Copy link
Author

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.

@ollm
Copy link
Owner

ollm commented Feb 25, 2025

This is another problem with electron in linux that has not been solved yet electron/electron#42510 and electron/electron#41066

Although it seems that this will be fixed when electron-builder v26 is released electron-userland/electron-builder#8635 and electron-userland/electron-builder#8636

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

2 participants