You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Blank pages after cover — resize worker SIGSEGV in sharp on Arch (glib 2.90.1) #671
Process command line: <opencomic> .../resources/app.asar/.dist/fork.js
Additional Information
Likely the known sharp/Electron/glib incompatibility, now triggered by Arch's glib 2.90.1. Two details that may help narrow it:
Reproduces in-app only. I extracted the AppImage and ran the exact fork.js worker standalone (ELECTRON_RUN_AS_NODE=1, same _resize / resizeToBlob jobs, same real pages): sequential, fully parallel, with the AppImage's LD_LIBRARY_PATH, UV_THREADPOOL_SIZE=1, sharp.concurrency(1), SIMD off — every run completes cleanly. It only crashes when OpenComic itself forks the worker.
It seems the issue with sharp/electron is affecting more than I thought. I'll make some changes to use sharp-wasm on Linux, even if it's slightly slower.
In the end, I updated the custom Sharp builds I was already using (With JXL and JP2 enabled) so that the Linux builds no longer bundle GLib. Instead, they use the system-provided GLib, version 2.72 or later e81080d.
Can confirm the fix works. I tested the latest nightly (Nightly-v2.0.0-7203d68) on Arch Linux (glib 2.90.1) and the blank-pages crash is gone: opening a .cbr now renders all pages, the ERR_IPC_CHANNEL_CLOSED dialog no longer appears, and no more worker SIGSEGVs in fork.js (previously it crashed within seconds of opening any comic, on both the AUR build and the AppImage). The switch away from the bundled GLib looks like it did the trick — thanks for the quick turnaround.
Activity
ollm commentedon Nov 16, 2026
Thanks for reporting!
It seems the issue with
sharp/electronis affecting more than I thought. I'll make some changes to usesharp-wasmon Linux, even if it's slightly slower.ollm commentedon Nov 18, 2026
In the end, I updated the custom Sharp builds I was already using (With JXL and JP2 enabled) so that the Linux builds no longer bundle GLib. Instead, they use the system-provided GLib, version 2.72 or later e81080d.
The custom sharp build changes are in
ollm/sharp-customandollm/sharp-libvips-custom. Issue in electron electron/electron#46323I tested it on Ubuntu 24.04 with GLib 2.80, and it works well.
Nightly builds:
ollm/OpenComic-Nightlyafoxybouquet commentedon Nov 24, 2026
Can confirm the fix works. I tested the latest nightly (
Nightly-v2.0.0-7203d68) on Arch Linux (glib 2.90.1) and the blank-pages crash is gone: opening a.cbrnow renders all pages, theERR_IPC_CHANNEL_CLOSEDdialog no longer appears, and no more worker SIGSEGVs infork.js(previously it crashed within seconds of opening any comic, on both the AUR build and the AppImage). The switch away from the bundled GLib looks like it did the trick — thanks for the quick turnaround.