-
Notifications
You must be signed in to change notification settings - Fork 310
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
After Ubuntu 24.04 upgrade, GUI apps are extremely slow to open #1250
Comments
What I've tried so far: I tried upgrading mesa libraries as I thought this might be related to a broken version sudo add-apt-repository ppa:kisak/kisak-mesa
sudo apt update
sudo apt upgrade Now when I run nautilus from terminal, I see that my GPU is being detected For more context, I am running NVIDIA 555 drivers amalr@ubuntu ~ nautilus
** Message: 13:39:45.834: Connecting to org.freedesktop.Tracker3.Miner.Files
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
WARNING: Some incorrect rendering might occur because the selected Vulkan device (Microsoft Direct3D12 (NVIDIA GeForce RTX 3060 Laptop GPU)) doesn't support base Zink requirements: feats.features.logicOp have_EXT_custom_border_color have_EXT_line_rasterization
** (org.gnome.Nautilus:9946): WARNING **: 13:40:40.620: Unable to get contents of the bookmarks file: Error opening file /home/amalr/.gtk-bookmarks: No such file or directory
** (org.gnome.Nautilus:9946): WARNING **: 13:40:40.621: Unable to get contents of the bookmarks file: Error opening file /home/amalr/.gtk-bookmarks: No such file or directory
[1] 9946 segmentation fault nautilus |
Same problem here (Ubuntu 24.04), with evince, thunar, zenity, ... although it seems a certain kind of gui applications that have the problem. E.g. zenity takes 40 seconds to 1 minute to start with:
but yad is quick, xfce4-terminal is quick, glxgears and glxdemo are quick, google-chrome is quick:
|
MESA: error: ZINK: failed to choose pdev
glx: failed to create drisw screen
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen |
@linghengqian you might be right. my system just became slow on boot after i updated a clean 24.04. then a few reboots later programs starts slow. even terminal pops up after a minute. if a program somehow starts faster it acts like i opened it first time. for example dark theme set system wide but nautilus opens with light theme and ignores user settings. but DEB version of firefox pops up instantly without any issues. |
Try setting the GALLIUM_DRIVER environment variable to "d3d12" as a workaround. |
export GALLIUM_DRIVER=d3d12 does not change the behavior for me, still wait for about 45 seconds |
Same problem, nautilus and gnome-terminal take 30 seconds to start, and nautilus is loaded with the wrong theme. |
amalrajan what kernel version are you running? Since you don't have a custom kernel defined in your .wslconfig, this may be a completely separate issue, or Microsoft may have backported some of the new security. I am using https://github.com/Nevuly/WSL2-Linux-Kernel-Rolling and when I upgraded to 6.10 any application that uses the GPU (Firefox, Kitty) started taking around 30 seconds to load. I finally tracked it down to the fact that when they were trying to get access to the GPU they were throwing exceptions. I rolled back to kernel 6.9.9 and the problem went away. I don't have definitive proof that my problem was related to the new security that has been added in 6.10 or I would post it. All I can say for certain is that only apps that use the GPU were affected, and only rolling back the kernel solved my problem. |
same windows11 home version and 2404 |
Same symptoms for me, slow with 24.04, fast with 22.04. |
the default kernel. I believe it was 5.15.153.1-microsoft-standard-WSL2 across all vanilla installations |
Please see what I've reported here #1244 as what your experiencing sounds exactly the same |
6.9.9 invalid |
I meet the same problem and I realized that I can't resize the application window |
> Please see what I've reported here #1244 as what your experiencing sounds exactly the same @avlec yes, looks like it, from your report I got to Cannot use GUI apps/tools as Wayland socket doesn't exist in XDG_RUNTIME_DIR, which led me to trying: |
does this workaround help on X sessions too? |
@ViBE-HU read the issue I linked. It sounds like it might work from the viruscamp's repo with the workarounds. If you try please post here or on the other thread with your successes or failures. |
I am C++/Qt-QML developer recently started using WSL2 with Win-11 23H2. The fix given by virus camp addressed in #1244 seems to work. Now only thing is still that 'Zink' error exists: But no worries, work gets done, able to open the nautilus in very few secs instead of waiting it for a minute ! applies for other GUI apps ! |
+1, it seems to cure some symptoms only, as the ZINK Error is still present, so I do believer, there needs to be a more general fix to the issue. |
Hello,
solved all issues for me. To do this, first follow the steps at https://github.com/viruscamp/wslg-links, and then follow these steps: sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt update
sudo apt upgrade |
Should this become an OS patch? |
Windows build number:
10.0.22631.0
Your Distribution version:
Ubuntu 24.04
Your WSL versions:
2.1.5.0
Steps to reproduce:
nohup nautilus > /dev/null 2>&1 &
OR Windows Start Menu -> Launchnautilus
Ubuntu appnautilus
window to show upIf you simply do
nautilus
in terminal:This applies to any app, not just nautilus.
WSL logs:
WslLogs-2024-05-30_18-12-37.zip
WSL dumps:
No response
Expected behavior:
Before upgrading to Ubuntu 24.04, launching GUI apps were instantaneous.
Actual behavior:
After upgrading to Ubuntu 24.04, launching GUI apps takes 30-40 seconds.
The text was updated successfully, but these errors were encountered: