Update Newsflash Snap to 3.2.0
Closed this issue · 11 comments
The current Snap-Version has a bug regarding NVIDIA-graphiccards. The webview for an article only displays a blank page. This is fixed in the Version 3.2.0. Please update the snap-package to the new version.
Hi @janive first of all thanks for your help. The newsflash snap needs latest version of gtk4 and libadwaita due to the cargo packages it uses.
https://gitlab.com/news-flash/news_flash_gtk/-/blob/v.3.2.0/Cargo.toml?ref_type=tags#L20-25
Now, with core22
, the gnome content snap was not updated for gnome-46. I created a PR but the devs refused to do so. ubuntu/gnome-sdk#198
Now, as much I understood is it needs the latest update of webkitgtk. So, I updated webkitgtk to its latest version. Can you try to update it and see if you face such issue?
sudo snap refresh webkitgtk-6-gnome-2204 --edge
Hi @soumyaDghosh ,
I tried to update the webkit-snap as you mentioned. This seems not to fix the issue. Newsflash still renders a blank page.
Here is a result of snap list:
One information. I am on ubuntu 24.04 already. Does this matter in any way?
Hi @janive I must not say experience is smooth, but it works for me. Also, I am on 24.04
Kooha-2024-05-24-02-44-37.mp4
Can you show me some logs?
Run the snap from the terminal using the command newsflash
. Do what you want and paste what you get here. Another thing is not so great, but I recently snapped another similar app named gfeeds
. You can give that a try. Not live yet but will be soon.
Hi @soumyaDghosh,
here are some logs from the console:
jan@maximus:~$ newsflash
17:25:46 - INFO - NewsFlash 3.1.6 (io.gitlab.news_flash.NewsFlash) (news_flash_gtk::app:85)
17:25:46 - INFO - Loading backend freshrss (news_flash:119)
17:25:46 - INFO - Attempting to open config file: "/home/jan/snap/newsflash/56/.config/news-flash/freshrss.json" (news_flash::feed_api_implementations::freshrss::config:38)
17:25:46 - INFO - Successful load from config (news_flash_gtk::app:94)
** (news_flash:45497): WARNING **: 17:25:47.379: Could not open /sys/class/dmi/id/chassis_type: Datei »/sys/class/dmi/id/chassis_type« konnte nicht geöffnet werden: Permission denied
** (news_flash:45497): WARNING **: 17:25:47.379: Could not open /sys/firmware/acpi/pm_profile: Datei »/sys/firmware/acpi/pm_profile« konnte nicht geöffnet werden: Permission denied
17:25:47 - INFO - WebKit version: 2.42.2 (news_flash_gtk::article_view::imp:142)
17:25:47 - INFO - Networkmonitor connectivity: Local (available false) (news_flash_gtk::util:114)
17:25:48 - INFO - pinging 'http://example.com/' succeeded (news_flash_gtk::util:126)
** (process:45697): WARNING **: 17:25:48.712: Could not open /sys/class/dmi/id/chassis_type: Datei »/sys/class/dmi/id/chassis_type« konnte nicht geöffnet werden: Permission denied
** (process:45697): WARNING **: 17:25:48.712: Could not open /sys/firmware/acpi/pm_profile: Datei »/sys/firmware/acpi/pm_profile« konnte nicht geöffnet werden: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 677x797: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 677x797: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 677x797: Permission denied
Failed to create EGL images for DMABufs with file descriptors -1, -1 and -1
** (process:45887): WARNING **: 17:25:49.994: Could not open /sys/class/dmi/id/chassis_type: Datei »/sys/class/dmi/id/chassis_type« konnte nicht geöffnet werden: Permission denied
** (process:45887): WARNING **: 17:25:49.994: Could not open /sys/firmware/acpi/pm_profile: Datei »/sys/firmware/acpi/pm_profile« konnte nicht geöffnet werden: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 677x797: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 677x797: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 677x797: Permission denied
Failed to create EGL images for DMABufs with file descriptors -1, -1 and -1
17:25:50 - INFO - Networkmonitor connectivity: Full (available true) (news_flash_gtk::util:114)
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 677x797: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 677x797: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 677x797: Permission denied
Failed to create EGL images for DMABufs with file descriptors -1, -1 and -1
** (process:46032): WARNING **: 17:25:55.148: Could not open /sys/class/dmi/id/chassis_type: Datei »/sys/class/dmi/id/chassis_type« konnte nicht geöffnet werden: Permission denied
** (process:46032): WARNING **: 17:25:55.148: Could not open /sys/firmware/acpi/pm_profile: Datei »/sys/firmware/acpi/pm_profile« konnte nicht geöffnet werden: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 677x797: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 677x797: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 677x797: Permission denied
Failed to create EGL images for DMABufs with file descriptors -1, -1 and -1
** (process:46136): WARNING **: 17:25:56.185: Could not open /sys/class/dmi/id/chassis_type: Datei »/sys/class/dmi/id/chassis_type« konnte nicht geöffnet werden: Permission denied
** (process:46136): WARNING **: 17:25:56.185: Could not open /sys/firmware/acpi/pm_profile: Datei »/sys/firmware/acpi/pm_profile« konnte nicht geöffnet werden: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 677x797: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 677x797: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 677x797: Permission denied
Failed to create EGL images for DMABufs with file descriptors -1, -1 and -1
17:26:13 - INFO - Networkmonitor connectivity: Full (available true) (news_flash_gtk::util:114)
17:26:59 - INFO - Networkmonitor connectivity: Full (available true) (news_flash_gtk::util:114)
17:27:09 - INFO - Shutdown! (news_flash_gtk::app:2141)
@janive Can you try the latest build of newsflash from the edge channel a try. If that also doesn't work, try running this, I didn't want to use that because this significantly reduces performance.
WEBKIT_DISABLE_DMABUF_RENDERER=1 newsflash
I switched to the edge-channel. newsflash does not start. The following message is displayed in the terminal:
jan@maximus:~$ newsflash
18:42:21 - INFO - NewsFlash 3.1.6 (io.gitlab.news_flash.NewsFlash) (news_flash_gtk::app:85)
18:42:22 - INFO - Loading backend freshrss (news_flash:119)
18:42:22 - INFO - Attempting to open config file: "/home/jan/snap/newsflash/59/.config/news-flash/freshrss.json" (news_flash::feed_api_implementations::freshrss::config:38)
18:42:22 - INFO - Successful load from config (news_flash_gtk::app:94)
** (news_flash:56452): WARNING **: 18:42:22.352: Could not open /sys/class/dmi/id/chassis_type: Datei »/sys/class/dmi/id/chassis_type« konnte nicht geöffnet werden: Permission denied
** (news_flash:56452): WARNING **: 18:42:22.353: Could not open /sys/firmware/acpi/pm_profile: Datei »/sys/firmware/acpi/pm_profile« konnte nicht geöffnet werden: Permission denied
** (news_flash:56452): ERROR **: 18:42:22.355: Unable to spawn a new child process: Abspalten des Kindprozesses »/usr/lib/x86_64-linux-gnu/webkitgtk-6.0/WebKitNetworkProcess« gescheitert (No such file or directory)
Trace/Breakpoint ausgelöst (Speicherabzug geschrieben)
#3
Sorry that you faced it.
sudo /usr/lib/snapd/snap-discard-ns newsflash
Hi,
I tried your command. Newsflash starts again. The Bug with the blank page is not gone. I can wait, until the problem with the other needed package is up to date.
I use newsflash, because I have an own freshrss-instance :-)
If I can test anything for you or you need more information, from my side, I am glad to help.
Thanks a lot. That's just a suggestion. Anyways, for now you can run newsflash in this way, it'd definitely work.
WEBKIT_DISABLE_DMABUF_RENDERER=1 newsflash
I think, I broke the snap... I tried the edge and the stable channel. Can you give me a hint, how to repair it?
jan@maximus:~$ WEBKIT_DISABLE_DMABUF_RENDERER=1 newsflash
17:21:05 - INFO - NewsFlash 3.1.6 (io.gitlab.news_flash.NewsFlash) (news_flash_gtk::app:85)
17:21:05 - INFO - Loading backend freshrss (news_flash:119)
17:21:05 - INFO - Attempting to open config file: "/home/jan/snap/newsflash/62/.config/news-flash/freshrss.json" (news_flash::feed_api_implementations::freshrss::config:38)
17:21:05 - INFO - Successful load from config (news_flash_gtk::app:94)
Failed to register: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.318" (uid=1000 pid=24420 comm="/snap/newsflash/62/usr/bin/io.gitlab.news_flash.Ne" label="snap.newsflash.newsflash (enforce)") interface="org.gtk.Actions" member="DescribeAll" error name="(unset)" requested_reply="0" destination="io.gitlab.news_flash.NewsFlash" (uid=1000 pid=11734 comm="xdg-dbus-proxy --args=46" label="flatpak (unconfined)")
jan@maximus:~$ newsflash
17:21:09 - INFO - NewsFlash 3.1.6 (io.gitlab.news_flash.NewsFlash) (news_flash_gtk::app:85)
17:21:09 - INFO - Loading backend freshrss (news_flash:119)
17:21:09 - INFO - Attempting to open config file: "/home/jan/snap/newsflash/62/.config/news-flash/freshrss.json" (news_flash::feed_api_implementations::freshrss::config:38)
17:21:09 - INFO - Successful load from config (news_flash_gtk::app:94)
Failed to register: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.320" (uid=1000 pid=24628 comm="/snap/newsflash/62/usr/bin/io.gitlab.news_flash.Ne" label="snap.newsflash.newsflash (enforce)") interface="org.gtk.Actions" member="DescribeAll" error name="(unset)" requested_reply="0" destination="io.gitlab.news_flash.NewsFlash" (uid=1000 pid=11734 comm="xdg-dbus-proxy --args=46" label="flatpak (unconfined)")
jan@maximus:~$
Why is it calling flatpak
? Did you installed both and somehow mixed both? Well, there is obviously a fix. But, you'll have to delete the app data. If you're okay with that, then remove the data from $HOME/snap/newsflash