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

Some GTK apps do not launch #1732

Open
aaron1857 opened this issue Oct 10, 2024 · 1 comment
Open

Some GTK apps do not launch #1732

aaron1857 opened this issue Oct 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@aaron1857
Copy link

aaron1857 commented Oct 10, 2024

Describe the bug

Some gtk apps seem to crash when trying to launch them. The apps do not open at all.

Below is an output when trying to launch flatseal from the command line.

flatpak run com.github.tchx84.Flatseal 

** (process:40516): WARNING **: 15:42:33.210: Error writing credentials to socket: Error sending message: Broken pipe

(com.github.tchx84.Flatseal:2): Gtk-WARNING **: 15:42:33.338: Unknown key gtk-modules in /home/aaron/.var/app/com.github.tchx84.Flatseal/config/gtk-4.0/settings.ini

(com.github.tchx84.Flatseal:2): Adwaita-WARNING **: 15:42:33.395: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead.
Gdk-Message: 15:42:33.911: Error 71 (Protocol error) dispatching to Wayland display.

This does not impact every app. I'll list some apps that work normally and some that do not launch. These are apps I have on my system, I am willing to install and test other things if needed.
Apps that do work:

  • Gnome Boxes
  • Bottles
  • Foliate
  • Box Buddy
  • Bazzite Portal
  • Proton VPN

Apps that do not work

  • Flatseal
  • Iotas
  • Resources (a system monitoring app)
  • Pods

EDIT: I removed Speech Note from the apps that don't work list since it does work. Furthermore, upon launching I realised it is not a gtk app.

What did you expect to happen?

I expected to open the app normally.

Output of rpm-ostree status

rpm-ostree status
State: idle
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-nvidia-open:latest
Digest: sha256:f0a715ec44064ebfa14504db0c72b3790542ce3bcd3d7f3b9fb068e6a04197e7
Version: 40.20240930.0 (2024-09-30T15:25:37Z)

ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-nvidia-open:latest
Digest: sha256:7714620ce66e84806949720204c07da491b6b31bc6304a27ca620893bf1508b9
Version: 40.20240922.0 (2024-09-23T05:09:18Z)

Hardware

I am using a Dell 5515 laptop. It has an NVIDIA GeForce RTX 3050 Ti Mobile GPU with an AMD integrated GPU.

Here is the Dell listing that contains the exact specifications.
https://www.dell.com/en-us/shop/dell-laptops-and-notebooks/new-dell-g15-ryzen-gaming-laptop/spd/g-series-15-5515-laptop/cag155w10p1c2100pa

Extra information or context

I believe this issue has been going on for a while, but I could properly investigate it earlier due to a lack of time. I have previously used Otto and Vapor themes in KDE settings, but I currently am on the Breeze Dark theme.

I have looked at this Reddit post.
As a result, I tried removing gtk-application-prefer-dark-theme=true in /var/home/aaron/.config/gtk-4.0/settings.ini but that did not work.

I even tried completely removing the gtk-4.0 folder and then reselecting the Breeze Light and then Breeze Dark theme in KDE settings to hopefully reset the settings to the default value. This did not work either.

I've decided not to mess with it further to avoid further messing something up.

@dosubot dosubot bot added the bug Something isn't working label Oct 10, 2024
@Sgaytor
Copy link

Sgaytor commented Oct 16, 2024

This is a known issue with the latest gnome 47 runtime which launches apps using the vulkan renderer by default. It seems to cause issues on systems with an iGPU + nvidia dGPU like yours.

The work-around for now is to set an environment variable which forces the use of the previous open-gl renderer:
mkdir -p ~/.config/environment.d && echo "GSK_RENDERER=ngl" >> ~/.config/environment.d/gsk.conf

You should make a note somewhere to remind yourself that you should remove this later when the issue is fixed so you can enjoy the performance improvements from the vulkan renderer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants