microsoft / wslg

Enabling the Windows Subsystem for Linux to include support for Wayland and X server related scenarios
MIT License
9.9k stars 296 forks source link

After Ubuntu 24.04 upgrade, GUI apps are extremely slow to open #1250

Open amalrajan opened 1 month ago

amalrajan commented 1 month ago

Windows build number:

10.0.22631.0

Your Distribution version:

Ubuntu 24.04

Your WSL versions:

2.1.5.0

Steps to reproduce:

  1. Run nohup nautilus > /dev/null 2>&1 & OR Windows Start Menu -> Launch nautilus Ubuntu app
  2. It takes 30-40 seconds for nautilus window to show up

If you simply do nautilus in terminal:

amalr@ubuntu ~ nautilus
** Message: 19:52:38.704: Connecting to org.freedesktop.Tracker3.Miner.Files
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen
MESA: error: ZINK: failed to choose pdev
glx: failed to create drisw screen

** (org.gnome.Nautilus:57971): WARNING **: 19:53:29.621: Unable to get contents of the bookmarks file: Error opening file /home/amalr/.gtk-bookmarks: No such file or directory

** (org.gnome.Nautilus:57971): WARNING **: 19:53:29.622: Unable to get contents of the bookmarks file: Error opening file /home/amalr/.gtk-bookmarks: No such file or directory

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.

amalrajan commented 1 month ago

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 Even though, it still takes 40 seconds for the app to show up on my screen

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
dolorain commented 3 weeks ago

same problem image

cvnmlr commented 1 week ago

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:

$ zenity --info --text ok
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen
MESA: error: ZINK: failed to choose pdev
glx: failed to create drisw screen

but yad is quick, xfce4-terminal is quick, glxgears and glxdemo are quick, google-chrome is quick:

$ google-chrome
MESA: error: ZINK: failed to choose pdev
glx: failed to create drisw screen
 wsl --status
Default Distribution: Ubuntu-24.04
Default Version: 2
linghengqian commented 1 week ago
ViBE-HU commented 1 week ago

@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.

Parsifa1 commented 6 days ago

I have the same problem: the environment is wsl-nixos. When I try to run kitty: image