#1108883 Foliate: epub content blank with NVIDIA/GBM (DRM/KMS errors)

#1108883#5
Date:
2025-07-06 18:29:41 UTC
From:
To:
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.