GithubHelp home page GithubHelp logo

Comments (8)

wenzezlaus avatar wenzezlaus commented on May 27, 2024 7

Starting foliate with WEBKIT_DISABLE_COMPOSITING_MODE=1 or with WEBKIT_DISABLE_DMABUF_RENDERER=1 fixes the problem for me.
Arch Linux 6.5.7-arch1-1
nvidia 535.113.01

from foliate.

nova-666 avatar nova-666 commented on May 27, 2024 2

Starting foliate with WEBKIT_DISABLE_COMPOSITING_MODE=1 or with WEBKIT_DISABLE_DMABUF_RENDERER=1 fixes the problem for me. Arch Linux 6.5.7-arch1-1 nvidia 535.113.01

For me, the second one resulted in EPUB files being loaded correctly on the 3.0 release of Foliate.

Ubuntu 22.04 LTS
Nvidia 535.129.03

from foliate.

nobane avatar nobane commented on May 27, 2024 2

I ran into this issue trying use webkit2gtk on arch linux (with an nvidia card) and I was able to fix it without setting WEBKIT_DISABLE_DMABUF_RENDERER=1.

Here is how I fixed it:

  1. Check if you have modesetting enabled via

     cat /sys/module/nvidia_drm/parameters/modeset
    
  2. If you see printed N then you need to enable it with

     echo options nvidia_drm modeset=1 | sudo tee /etc/modprobe.d/nvidia_drm.conf
    
  3. Restart your computer

from foliate.

mojo5 avatar mojo5 commented on May 27, 2024

Hi! I am using manjaro and have the same problem.
With this in the terminal:

** (process:2): WARNING **: 19:19:56.603: Error writing credentials to socket: Error sending message: Broken pipe
src/nv_gbm.c:99: GBM-DRV error (nv_gbm_bo_create): DRM_IOCTL_NVIDIA_GEM_ALLOC_NVKMS_MEMORY failed (ret=-1)

Failed to create GBM buffer of size 982x708: Invalid argument
src/nv_gbm.c:99: GBM-DRV error (nv_gbm_bo_create): DRM_IOCTL_NVIDIA_GEM_ALLOC_NVKMS_MEMORY failed (ret=-1)

Failed to create GBM buffer of size 982x708: Invalid argument
src/nv_gbm.c:99: GBM-DRV error (nv_gbm_bo_create): DRM_IOCTL_NVIDIA_GEM_ALLOC_NVKMS_MEMORY failed (ret=-1)

Failed to create GBM buffer of size 982x708: Invalid argument
Failed to create EGL images for DMABufs with file descriptors -1, -1 and -1

(com.github.johnfactotum.Foliate:18940): Gjs-WARNING **: 19:19:58.035: Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your await expression. Stack trace of the failed promise:
main@resource:///com/github/johnfactotum/Foliate/js/main.js:478:24
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
@/usr/bin/foliate:9:17

This happened after the proprietary NVIDIA driver update.

But with Open-Source driver "Foliate" works well, and Snap version works well too.

from foliate.

onkelT2 avatar onkelT2 commented on May 27, 2024

I am experiencing the same behavior as the original poster:

Gtk-Message: 17:16:56.500: Failed to load module "canberra-gtk-module"
Gtk-Message: 17:16:56.501: Failed to load module "canberra-gtk-module"
Failed to create /home/user/.var/app/com.github.johnfactotum.Foliate/cache for shader cache (No such file or directory)---disabling.
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 948x938: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 948x938: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 948x938: Permission denied
Failed to create EGL images for DMABufs with file descriptors -1, -1 and -1

(com.github.johnfactotum.Foliate:2): Gjs-WARNING **: 17:17:00.611: Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your
await expression. Stack trace of the failed promise:
main@resource:///com/github/johnfactotum/Foliate/js/main.js:478:24
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
@/app/bin/com.github.johnfactotum.Foliate:9:17

Version:

  • Foliate 2.6.4 (flatpak)
  • Pop!_OS 22.04 LTS

from foliate.

johnfactotum avatar johnfactotum commented on May 27, 2024

This definitely looks like a WebKitGTK similar to or the same as #1085.

from foliate.

claui avatar claui commented on May 27, 2024

I can confirm that @wenzezlaus’s fix works for me.
PureOS 10 (Byzantium)
Kernel 6.4.0-1-librem5

from foliate.

ritulahkar avatar ritulahkar commented on May 27, 2024

One easy solution I found is:

  1. Install Foliate as Flatpak
  2. Install Flatseal
  3. Add WEBKIT_DISABLE_DMABUF_RENDERER=1 to environment variable of foliate in Flatseal.

It should work.

from foliate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.