-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
VSCode is sluggish and buggy on Fedora 37 with wayland + Nvidia drivers #169504
Comments
I am also not sure that is this a problem with Electron or Wayland with Nvidia drivers. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Can you confirm if you are launching the application with |
Yes, I have tried that and the errors still remain. |
I am seeing the same logs, that logs occurs when running an all of electron app in wayland environment, and I use Arch + Wayland and it outputs the same log but no problem at all then I think maybe VSCode is slow because of other issue |
Yeah, it appears that the issue exist outside of VSCode and likely is related to Electron, which is why this issue has been labeled as an upstream issue. |
@LukaHietala can you check if the issue persists with our exploration builds that comes with a newer runtime. Thanks! |
It was WAY more buggier, it was hard to even run the
Errors``` [6000:0124/213313.259547:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable. [main 2023-01-24T19:33:13.314Z] [File Watcher (node.js)] Request to start watching: /home/lukahietala/.config/Code/User (excludes: , includes: ),/home/lukahietala/.config/Code/User/settings.json (excludes: , includes: ) [main 2023-01-24T19:33:13.320Z] Sending env to running instance... libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null) [main 2023-01-24T19:33:13.321Z] [File Watcher (node.js)] Started watching: '/home/lukahietala/.config/Code/User' [main 2023-01-24T19:33:13.321Z] [File Watcher (node.js)] Started watching: '/home/lukahietala/.config/Code/User/settings.json' MESA-LOADER: failed to retrieve device information MESA-LOADER: failed to open nvidia-drm: /usr/lib64/dri/nvidia-drm_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib64/dri, suffix _dri) failed to load driver: nvidia-drm MESA-LOADER: failed to open zink: /usr/lib64/dri/zink_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib64/dri, suffix _dri) failed to load driver: zink MESA-LOADER: failed to open kms_swrast: /usr/lib64/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib64/dri, suffix _dri) failed to load driver: kms_swrast MESA-LOADER: failed to open swrast: /usr/lib64/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib64/dri, suffix _dri) failed to load swrast driver [main 2023-01-24T19:33:13.356Z] Sent env to running instance. Terminating... [main 2023-01-24T19:33:13.357Z] Lifecycle#kill() [main 2023-01-24T19:33:13.357Z] Lifecycle#onWillShutdown.fire() ``` |
There are still issue with loading the dri files, can you check the permission of these files ? Also, try launching with
You seem to be hitting the same issue as https://bugs.chromium.org/p/chromium/issues/detail?id=1378258 |
@deepak1556 The command you provided worked, but did not solve the issue and I also checked the permissions of nvidia drm files and they are root level things. But it's weird that they work on X11 and not on Wayland even though the permissions are the same |
I have the same configution except I use Fedora Silverblue 37, and I run vscode in a toolbox. Without the Adding I can provide logs if needed |
There is not much we can do here given this is an issue in the runtime, you can use the Xwayland workaround mentioned in upstream to use |
Yeah, when I was testing the permissions and stuff I enabled |
Also having this problem on VSCode on Fedora 37 Wayland on two different laptops. One has an Intel Core 11k chip, where the problem is fixed by disabling Wayland launch flags. The other has a modern AMD Ryzen 6k chip, which has the problems no matter what when running on a Wayland display server. Neither of these machines have dedicated graphics. For some reason, I'm not experiencing the problem on my MacBook Pro M1 Pro on Fedora 37 Wayland (w/ Asahi kernel). Which definitely SHOULD break first, but whatever... 😮💨 Is anyone else facing these problems on these non-NVIDIA machines too? |
Yes of course, but for some reason it worked now. Again misunderstanding ig. I meant I didn't add these flags. Ofc VSCode had those flag for quite some time. |
Can you tell me how to add these flags ? I'm new to fedora |
From |
I've struggled with this for months on end (years? probably) with no result. On Fedora 38, I seem to get it working finally with code --ozone-platform="wayland" --enable-features="WaylandWindowDecorations" It seems to be responsive for now and no black pop ups. |
For anybody wondering if these issues have been fixed by the latest nvidia driver version 545, that supposedly fixes many Wayland-related issues... - no, not much has been fixed. Still laggy and unrendered frames. Nvidia Driver Version: 545.29.02 VSCode: Version: 1.84.1 |
I guess that's Chromium/Electron problem, not Nvidia, interesting enough, I did not discover this issue on Ubuntu. Haven't tried other distributions though, on Fedora KDE issue also exists |
vscode is literally unusable on Gnome/Wayland/Nvidia/Archlinux. gnome 45.0-1 |
At current moment there is one way - just switch to X11 |
Actually if I disable the gpu rendering, then it is OK. |
I'm using Fedora 38 KDE Plasma desktop environment with Wayland windowing system. GPU model is RTX-3060-LHR and driver version is 545.29.06. If I launch vscode from terminal with
everything works fine. But without the |
Same problem here: Fedora 39
|
Based on the recent comments there is a mix of users who have the issue resolved and others still facing the issue. Can users still facing the issue, confirm that they are running the wayland backend by passing the flag |
Yep, all I did was creating a
|
Fixed the problem by doing what @mikajed said, adding the |
I'm on a fresh install of Fedora 39 workstation running an Nvidia 3060 with wayland, the code-flags.conf didn't seem to work for me, running Happy to try other steps if you'd like. |
I'm guessing you're launching vscode from the terminal by
into it. |
You could also try to
additional to the |
Similar experience here. My OS details -
GPU - NVIDIA GeForce RTX 3050Ti
Tried to add the options -
But still facing the same issue. |
That was what I tried, I added the terminal warning message in case that'd help with troubleshooting. Those two lines in the ~/.config/code-flags.conf don't resolve the issue for me.
No luck with this either. |
Weird.... After reinstalling vscode through dnf, this method no longer work for me. So for now, I just disable hardware acceleration by
|
I faced this problem on a fresh KDE Neon (Plasma 6.0.2) install on an AMD platform with an NVIDIA GPU (driver version: 535.161.07). I tried the latest regular code (version: 1.87.2) with various combinations of parameters and nothing fully fixed the black flickering and the jumpiness to the view port and cursor when scrolling. All the issues went away for me by running the latest code-insider version from the Microsoft PPA (version: 1.88.0-1711043310) with the flags: I wasn't sure how to pass those parameters permanently to code-insiders. The
Only slight annoyance is that it prints the |
Problem still persists on F40 KDE Spin + Nvidia 550.76 + vscode 1.88.1 |
Same issue persist on Fedora 40 with VS Code 1.89.0, I followed the steps by @larspontoppidan and it worked. |
Reading the replies and stuff, it seems like the issue is not even with Chromium/Electron, but rather the Buying nvidia machine I thought that situation with nvidia+Wayland got better.
|
I am also experiencing the issue on F40 KDE + vscode 1.89.1 VS code does not appear to honor the flags when added to If you dislike seeing the warning from the terminal, it seems to work for me if I only pass |
@waweber will try that, and if I don't reply to you again, it means it worked. |
Same issue. I added to vscode and chromium-browser and it worked : In |
Does this issue occur when all extensions are disabled?: Yes
1.74.1/Insider/Exploration (w/ newer runtime)
Fedora 37
Similar issue #134255 (closed and didn't solve my issue)
Edit: Similar Upstream issue bugs.chromium.org id=1378258
VSCode stable and insider versions are sometimes unresponsive and buggy on my system when I am using Wayland with NVIDIA drivers on Fedora OS. This happens usually when I am typing on input fields or hovering over buttons. I have tried to find a solutions to this problem like:
--enable-features=Vulkan
) (doesn't work)--disable-gpu
) (doesn't work)--ozone-platform="wayland" --enable-features="WaylandWindowDecorations"
) (doesn't work)--disable-gpu-sandbox
) (doesn't work)Full list of problems (What i have noticed so there might be more problems):
Errors (
code --verbose
):'[9130:1218/182922.095257:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable.
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open nvidia-drm: /usr/lib64/dri/nvidia-drm_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib64/dri, suffix _dri)
failed to load driver: nvidia-drm
MESA-LOADER: failed to open zink: /usr/lib64/dri/zink_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib64/dri, suffix _dri)
failed to load driver: zink
MESA-LOADER: failed to open kms_swrast: /usr/lib64/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib64/dri, suffix _dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib64/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib64/dri, suffix _dri)
failed to load swrast driver
All of those errors come on Wayland, not on X11.
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: