Electron(?) issues with Nvidia drivers

Dear openSUSE community,

I switched to openSUSE Tumbleweed from Fedora yesterday and must say that I really enjoy this distro so far. I will probably remain here after distrohopping for a long while.
There is one problem however: all electron/chromium based applications show up as a black screen. This includes for my desktop: Vivaldi, Discord, Spotify, Standard Notes
All of the above mentioned programs are used by me daily and the programs not working without workaround. I found a post on reddit that states adding the ¨ --no-gpu-sandbox"flag would fix the issue. This worked for several apps, but it is quite a crude workaround for now. The post was also already from september 2021 so I’m almost inclined to believe it has been fixed by now.

Therefore my question: is there any way to fix this?

Additional information

Aforementioned reddit thread: https://www.reddit.com/r/openSUSE/comments/ptqlfu/psa_vscode_and_some_nonpatched_electron/

GPU: GTX1060
Drivers version: 510.54

Hi and welcome to the Forum :slight_smile:
Try adding --no-sandbox as well and see if that helps.

I am not certain this is related to a specific GPU. The key is sandbox. And for some reason this doesn’t happen for all electron apps, for instance, VS Code is running fine. I think this sort of issue is more visible in cutting-edge distros, since glibc & seccomp profiles are regularly updated, while the electron sandbox falls behind.

Things you can do:

  • Reach out to your software providers to have their electron version fixed;
  • Use a packaging format including full user-space dependencies (flatpak, containers, etc.)
  • Keep using --no-gpu-sandbox as required