GithubHelp home page GithubHelp logo

Comments (9)

johnfactotum avatar johnfactotum commented on May 27, 2024

It's a WebKitGTK/Nvidia problem. See

from foliate.

nestorwendt avatar nestorwendt commented on May 27, 2024

Adding the kernel parameter nvidia_drm.modeset=1 fixed the problem for me.

from foliate.

mauromotion avatar mauromotion commented on May 27, 2024

Adding the kernel parameter nvidia_drm.modeset=1 fixed the problem for me.

I've tried adding that parameter and I get a different error now, and a different Foliate behaviour. It still doesn't show the eBook, though, but it doesn't hang. It's just blank.

`❯ foliate

(com.github.johnfactotum.Foliate:5349): Gjs-WARNING **: 12:21:11.202: 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`

Is it still Nvidia's fault?

from foliate.

nestorwendt avatar nestorwendt commented on May 27, 2024

I've tried adding that parameter and I get a different error now, and a different Foliate behaviour. It still doesn't show the eBook, though, but it doesn't hang. It's just blank.

I'm using foliate-git from AUR, maybe you can try that.

from foliate.

mauromotion avatar mauromotion commented on May 27, 2024

I've tried adding that parameter and I get a different error now, and a different Foliate behaviour. It still doesn't show the eBook, though, but it doesn't hang. It's just blank.

I'm using foliate-git from AUR, maybe you can try that.

Thanks, using foliate-git works. Albeit in a weird way, as in I can't access any preferences, I can only switch from light to dark mode and that's it. ALso the gtk buttons look different (which I don't care but still). At least the books are readable.

I'm not sure this is an Nvidia bug at this point. If it is, it only manifests itself with Foliate.

I will have to look for an alternative.

from foliate.

johnfactotum avatar johnfactotum commented on May 27, 2024

It's just blank. [...] Is it still Nvidia's fault?

It's probably a WebKitGTK bug on Nvidia.

I don't have Nvidia, and v2.6.4 works for me on Arch Linux.

I can't access any preferences, I can only switch from light to dark mode and that's it.

If you're talking about the "Preferences" item in the main menu of the library view, that indeed doesn't work, as it's not implemented yet (among other things that are still missing from the GTK 4 rewrite).

There are some preferences, though, that you can change in "Font & Layout Settings" in the view menu.

ALso the gtk buttons look different

That's just GNOME's new Adwaita stylesheet for GTK 4, which looks different from the GTK 3 version.

from foliate.

mauromotion avatar mauromotion commented on May 27, 2024

Fair enough. Thanks.

from foliate.

wenzezlaus avatar wenzezlaus commented on May 27, 2024

Starting foliate with WEBKIT_DISABLE_COMPOSITING_MODE=1 fixed the problem for me.
Arch Linux 6.5.7-arch1-1

from foliate.

nobane avatar nobane commented on May 27, 2024

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.

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.