Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with NVidia graphics card and WebKitGtk 6+ #4

Closed
soumyaDghosh opened this issue Jun 23, 2024 · 1 comment
Closed

Issues with NVidia graphics card and WebKitGtk 6+ #4

soumyaDghosh opened this issue Jun 23, 2024 · 1 comment

Comments

@soumyaDghosh
Copy link

Introduction

So, from sometimes now, I have started getting errors of blank page with webkitgtk in nvidia devices. Apparently users were not able to use the DMABUF renderer under Nvidia devices. First I got such issue with Foliate.

johnfactotum/foliate#1107

Later on I started getting such issues with the NewsFlash snap.

soumyaDghosh/newsflash-snap#5
soumyaDghosh/newsflash-snap#4

The log mostly is this

 ~  __NV_PRIME_RENDER_OFFLOAD=1 newsflash
libpxbackend-1.0.so: cannot open shared object file: No such file or directory
Failed to load module: /home/soumyaxubuntu/snap/newsflash/common/.cache/gio-modules/libgiolibproxy.so
libpxbackend-1.0.so: cannot open shared object file: No such file or directory
Failed to load module: /home/soumyaxubuntu/snap/newsflash/common/.cache/gio-modules/libgiolibproxy.so
libpxbackend-1.0.so: cannot open shared object file: No such file or directory
Failed to load module: /home/soumyaxubuntu/snap/newsflash/common/.cache/gio-modules/libgiolibproxy.so
00:05:07 - INFO  - NewsFlash 3.3.0 (io.gitlab.news_flash.NewsFlash) (news_flash_gtk::app:80)
00:05:07 - WARN  - No account configured               (news_flash_gtk::app:91)

** (news_flash:23479): WARNING **: 00:05:09.033: Could not open /sys/class/dmi/id/chassis_type: Failed to open file “/sys/class/dmi/id/chassis_type”: Permission denied

** (news_flash:23479): WARNING **: 00:05:09.033: Could not open /sys/firmware/acpi/pm_profile: Failed to open file “/sys/firmware/acpi/pm_profile”: Permission denied
libpxbackend-1.0.so: cannot open shared object file: No such file or directory
Failed to load module: /home/soumyaxubuntu/snap/newsflash/common/.cache/gio-modules/libgiolibproxy.so
00:05:09 - INFO  - WebKit version: 2.44.2              (news_flash_gtk::article_view::imp:145)
libpxbackend-1.0.so: cannot open shared object file: No such file or directory
Failed to load module: /home/soumyaxubuntu/snap/newsflash/common/.cache/gio-modules/libgiolibproxy.so
00:05:09 - INFO  - Networkmonitor connectivity: Local (available false) (news_flash_gtk::util:45)
00:05:09 - INFO  - pinging 'http://example.com/' succeeded (news_flash_gtk::util:57)
00:05:10 - INFO  - Can't set offline false because not logged in yet (news_flash_gtk::app:2041)
00:05:12 - INFO  - Networkmonitor connectivity: Full (available true) (news_flash_gtk::util:45)
00:05:13 - INFO  - Loading backend local_rss           (news_flash:120)

(news_flash:23479): Adwaita-WARNING **: 00:05:18.458: AdwNavigationPage 0x5e301c29cfd0 is missing a title. To hide a header bar title, consider using AdwHeaderBar:show-title instead.
00:05:18 - INFO  - url http://feeds.feedburner.com/d0od (news_flash_gtk::discover:272)
00:05:19 - INFO  - Favicon downloaded from feed data.  (news_flash::util::favicon_cache:196)
00:05:22 - INFO  - add feed 'http://feeds.feedburner.com/d0od' (news_flash_gtk::app:1120)
00:05:23 - INFO  - Downloading new icon for 'FeedID("http://feeds.feedburner.com/d0od")' (news_flash::util::favicon_cache:99)
00:05:23 - ERROR - Failed to set background message: Portal request failed: org.freedesktop.portal.Error.Failed: No sandboxed instance of the application found (news_flash_gtk::app:2020)
00:05:24 - ERROR - Failed to set background message: Portal request failed: org.freedesktop.portal.Error.Failed: No sandboxed instance of the application found (news_flash_gtk::app:2020)
00:05:25 - INFO  - Favicon downloaded backend source url (news_flash::util::favicon_cache:180)

** (process:23748): WARNING **: 00:05:30.712: Could not open /sys/class/dmi/id/chassis_type: Failed to open file “/sys/class/dmi/id/chassis_type”: Permission denied

** (process:23748): WARNING **: 00:05:30.712: Could not open /sys/firmware/acpi/pm_profile: Failed to open file “/sys/firmware/acpi/pm_profile”: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 504x604: Permission denied
00:05:41 - INFO  - Shutdown!                           (news_flash_gtk::app:1947)

The main problems are these two line,

KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 504x604: Permission denied

Now, there is one interesting this I noticed. With the newsflash snap from the stable channel which is still core22, webkitgtk is able to render the pages. Though the scroll is not at all smooth, which I guess is a bug in Gtk too which is fixed. But, in core24 which also has the latest release from newsflash in the edge channel, doesn't render the pages and rather throws this error.

To Reproduce

  1. Follow this instruction from here and install the snap from the edge channel
  2. Run it from the terminal with the nvidia card. Because I have a hybrid setup, I ran it this way __NV_PRIME_RENDER_OFFLOAD=1 newsflash
  3. Add an rss feed with local rss account
  4. See the page for the posts not load and terminal throws this error

Additional

I have tried to replicate the same environment of the snap in parity with the other package format where it works perfectly works. It also uses the webkitgtk version 2.44.2. I tried both 2.44.2 and 2.45.3, the result is same. Also, may be the webkitgtk some of those files under sys to have better performance, but I am not sure about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant