Comments (8)
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.
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.
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:
-
Check if you have modesetting enabled via
cat /sys/module/nvidia_drm/parameters/modeset
-
If you see printed
N
then you need to enable it withecho options nvidia_drm modeset=1 | sudo tee /etc/modprobe.d/nvidia_drm.conf
-
Restart your computer
from foliate.
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.
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.
This definitely looks like a WebKitGTK similar to or the same as #1085.
from foliate.
I can confirm that @wenzezlaus’s fix works for me.
PureOS 10 (Byzantium)
Kernel 6.4.0-1-librem5
from foliate.
One easy solution I found is:
- Install Foliate as Flatpak
- Install Flatseal
- Add
WEBKIT_DISABLE_DMABUF_RENDERER=1
to environment variable of foliate in Flatseal.
It should work.
from foliate.
Related Issues (20)
- Book titles and button icons don't render correctly when in grid view
- No keyboard shortcuts for searching through books library
- Keyboard shortcut for toggling / pinning sidebars does not work when sidebar is not focused/shown HOT 1
- Inside a book, `Ctrl+F` search keyboard shortcut does not work if the book pages are focused instead of the sidebar HOT 1
- Text is cutoff at bottom HOT 2
- font - smoothing HOT 1
- [Bug Report] Unable to open a pdf file
- Non-obvious way to bookmark a page. HOT 6
- "Trasnslate" popup does not close upon selecting any language HOT 1
- Using Festival TTS with v3.1.1 HOT 2
- Foliate hangs when loading file on Kubunti 24.04 HOT 1
- List keyboard shortcuts HOT 2
- Synchronize page turn with text-to-speech HOT 1
- cant open a any epub HOT 1
- syntax highlighting of code blocks only works for default theme HOT 6
- Offset value for pagination HOT 1
- Is it possible to remove the border? HOT 3
- Option to watch folders
- Possible to downgrade GTK dependency? HOT 2
- Improved search navigation suggestions HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from foliate.