Skip to content

[Bug]: Blank pages after cover — resize worker SIGSEGV in sharp on Arch (glib 2.90.1) #671

Open

Description

@afoxybouquet

OpenComic Version

2.0.0

Operating System

Arch Linux (Omarchy), glib2 2.90.1-1, libvips 8.18.7-1, AMD Ryzen 7 7840HS (Radeon 780M)

Installed via

Both: AUR opencomic (2.0.0-1) and the official OpenComic-2.0.0.AppImage — identical crash.

Steps to reproduce

  1. Open any comic (tested with .cbr and .cbz, e.g. Watchmen Can't seem to open .cbr files on Linux #1).
  2. First page (cover) renders, then flip to the next page.

Expected Behavior

Pages render one after another.

Actual Behavior

Every page after the cover is blank white. A "Process crashed" desktop notification fires, and an error dialog appears:

Error: Uncaught Error: Channel closed
    at node:events 505:5
ERR_IPC_CHANNEL_CLOSED

The image-resize worker (fork.js → resizeToBlob) is segfaulting, so pages never draw.

Error message

Coredump (crashing thread):

#0  0x0000000000000000  (null function-pointer call)
#1  sharp-linux-x64-0.35.5.node + 0x174b3
#2  sharp-linux-x64-0.35.5.node + 0x21432
#3  sharp-linux-x64-0.35.5.node + 0x16e94
#4  opencomic (libuv ThreadPoolWork::ScheduleWork)
...

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:

  1. 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.
  2. Not the >16 KB metadata case ([Bug]: JPEG pages with >16 KB of metadata never load on Linux, bundled sharp segfaults on metadata() #667). The pages are clean JPEG/PNG (no ICC profile, small metadata), and the crash also fires while generating small cover thumbnails (~480 px).

The AI upscale/descreen/artifact-removal features are all off, and no custom models are involved, so this is the plain resize path.

Activity

  1. ollm commented on Nov 16, 2026

    @ollm
    Owner

    Thanks for reporting!

    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.

  2. self-assigned this
    on Nov 16, 2026
  3. added this to the v2.0.1 milestone on Nov 16, 2026
  4. ollm commented on Nov 18, 2026

    @ollm
    Owner

    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-custom and ollm/sharp-libvips-custom. Issue in electron electron/electron#46323

    I tested it on Ubuntu 24.04 with GLib 2.80, and it works well.

    Nightly builds: ollm/OpenComic-Nightly

  5. afoxybouquet commented on Nov 24, 2026

    @afoxybouquet
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions