• Bug#1108883: Foliate: epub content blank with NVIDIA/GBM (DRM/KMS error

    From Pablo@1:229/2 to All on Sun Jul 6 20:40:01 2025
    From: [email protected]

    Package: foliate
    Version: 4.~really3.3.0-1
    Severity: normal
    X-Debbugs-Cc: [email protected]

    Dear Maintainer,

    Description:

    When running Foliate (both native .deb and Flatpak versions) and attempting to open an .epub archive, the content does not display. The terminal outputs the following errors:

    KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
    KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
    Failed to create GBM buffer of size XXXxYYY: Permission denied src/nv/gbm.c:288: GBM-DRV error (nv_gbm_create_device_native): nv_common_gbm_create_device failed (ret=-1)

    The content only displays correctly if Foliate is launched with the environment variable:

    WEBKIT_DISABLE_COMPOSITING_MODE=1 foliate

    However, this workaround causes "Theme parser error" warnings, and this specific workaround does not apply/work for the Flatpak version of Foliate.


    -- System Information:
    Debian Release: 13.0
    APT prefers testing-security
    APT policy: (500, 'testing-security'), (500, 'testing')
    Architecture: amd64 (x86_64)
    Foreign Architectures: i386

    Kernel: Linux 6.12.33+deb13-amd64 (SMP w/6 CPU threads; PREEMPT)
    Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
    Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    Versions of packages foliate depends on:
    ii dconf-gsettings-backend [gsettings-backend] 0.40.0-5
    ii gir1.2-adw-1 1.7.4-2
    ii gir1.2-gtk-4.0 4.18.6+ds-2
    ii gir1.2-webkit-6.0 2.48.3-1
    ii gjs 1.82.3-1
    ii python3 3.13.3-1

    Versions of packages foliate recommends:
    ii gnome-epub-thumbnailer 1.8-1

    foliate suggests no packages.

    -- no debconf information

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)