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

Fedora 40 - zink_dri.so missing #220

Open
caedmon-kitty opened this issue May 15, 2024 · 10 comments
Open

Fedora 40 - zink_dri.so missing #220

caedmon-kitty opened this issue May 15, 2024 · 10 comments

Comments

@caedmon-kitty
Copy link

Describe the bug
Starting an application which uses mesa results in the error -
MESA-LOADER: failed to open zink: /usr/lib64/dri/zink_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri, suffix _dri)

To Reproduce
Steps to reproduce the behavior:

  1. Launch glxgears or glxinfo
  2. See the error message

Expected behavior
No error message.

Do not know if zink_dri.so is required for WSL 2. The glx apps appear to function normally.

[ x] I have searched Google for the error message.
[x ] I have checked official WSL troubleshooting documentation: https://docs.microsoft.com/en-us/windows/wsl/troubleshooting#confirm-wsl-is-enabled.
[x ] I have searched the official Microsoft WSL issues page: https://github.com/Microsoft/WSL/issues.
[x ] I have searched the WLinux issues page: https://github.com/WhitewaterFoundry/WLinux/issues.
[x ] I have reset WLinux: Settings->Apps->Apps & features->WLinux->Advanced Options->Reset.
[ ] I have disabled and re-enabled WSL in Windows Features.
[x ] I have run Windows 11 updates and restarted.

Fedora Remix for WSL Version
Remix for Fedora 40 Version 39.0.2.0

Find: Settings->Apps->Apps & features->Fedora Remix for WSL Version->Advanced Options->Version.
Also, cat /etc/os-release

Insert here:
NAME="Fedora Remix for WSL"
VERSION="40"
ID=fedoraremixforwsl
ID_LIKE=fedora
VERSION_ID=40
PLATFORM_ID="platform:f40"
PRETTY_NAME="Fedora Remix for WSL"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:fedoraproject:fedora:40"
HOME_URL="https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL"
SUPPORT_URL="https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL"
BUG_REPORT_URL="https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL/issues"
PRIVACY_POLICY_URL="https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL/blob/master/PRIVACY.md"
FEDORA_REMIX_VERSION=40.0.1

Windows Build

Run 'systeminfo | findstr /C:"OS"' in Command Prompt and insert here:
OS Name: Microsoft Windows 11 Pro
OS Version: 10.0.22631 N/A Build 22631
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
BIOS Version: LENOVO N3TET51W (1.51 ), 1/26/2024

@crramirez
Copy link
Contributor

Hello,

Thank you for reporting it. Zink is a driver that translate Opengl calls into Vulkan ones. The version 24 of mesa enables it by default. We tried to remove it and in fact it is not installed but now it complains.

We will wait to the release 24.1 of mesa to see if we can disable it. If not, we will leave the default message that is a little nicer than the one is showing today.

As you noticed, it doesn't affect the performance because it is useless in a WSL environment.

Regards,
Carlos

@renhiyama
Copy link

@crramirez how do I even run any gui apps like nautilus? I just installed a fresh install of fedora remix on wsl2, and installed nautilus only. I get this error:

** Message: 23:15:50.801: Connecting to org.freedesktop.Tracker3.Miner.Files
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen
Couldn't open libGLESv2.so.2: libGLESv2.so.2: cannot open shared object file: No such file or directory
[1]    1576 IOT instruction (core dumped)  nautilus

@renhiyama
Copy link

renhiyama commented Aug 16, 2024

nvm, I had to get the basic desktop packages, ran sudo dnf groupinstall "Basic Desktop"

I know it installs lot of other useless stuff, but atleast this is the "fastest" way to install a working gui environment on fedora wsl2.

I expect the devs of this remix to kindly add the required packages out of the box .🙏

@crramirez
Copy link
Contributor

I'll try to reproduce it and I'll tell you. Meanwhile try setting: export LIBGL_ALWAYS_SOFTWARE=1

@renhiyama
Copy link

Looks like that env fixes half of the problem. I uninstalled and reinstalled a fresh fedora installation without any packages again, only nautilus package installed. Here's what I saw:

ren@ELITEBOOK:~$ nautilus
** Message: 23:48:03.105: Connecting to org.freedesktop.Tracker3.Miner.Files
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen
Couldn't open libGLESv2.so.2: libGLESv2.so.2: cannot open shared object file: No such file or directory
Aborted (core dumped)
ren@ELITEBOOK:~$ LIBGL_ALWAYS_SOFTWARE=1 nautilus
** Message: 23:48:07.736: Connecting to org.freedesktop.Tracker3.Miner.Files
Couldn't open libGLESv2.so.2: libGLESv2.so.2: cannot open shared object file: No such file or directory
Aborted (core dumped)

also, I wanna suggest you to enable systemd out of the box I guess? nautilus needs systemctl, and I dont see any reason why to keep it disabled out of the box.

https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/

just need to add this to /etc/wsl.conf and restart wsl.

[boot]
systemd=true

@renhiyama
Copy link

Alright, searching for libGLESv2.so.2 file on google told its found in package called libglvnd-gles for fedora repo. Luckily, installing it has fixed the problem :)

@renhiyama
Copy link

also, if I dont use that env, the warning show up, but the app still opens successfully 👍

@crramirez
Copy link
Contributor

Thank you for the suggestions we will take them into consideration.

However, Nautilus and Gnome in general are too heavy and have a lot of requirements that the majority of users don't need.

Enabling systemd by default is something that we have considered however you are the first user who ask for it. Systemd increases the startup time and the resources consumed by the distro. And most of the time it is not needed but also generates problems and we try so not disrupt the current work flow.

Fedora Remix includes a script that you may find handy. It is called install-desktop.sh and will install a desktop environment available via remote desktop connection.

For a lightweight experience I recommend thunar instead of Nautilus and xfce4 instead of Gnome.

We will evaluate including more packages by default if the image doesn't grow too much and won't cause side effects.

@renhiyama
Copy link

I tried booting with and without systemd, I dont see any noticeable lag as compared to non-systemd based boot. Both takes like 3-4 sec to boot (after wsl --shutdown ofc). My cpu is ryzen 7 8840HS, a decent cpu.

Also I found out that thunar still has most of the deps like nautilus, namely gvfs, grub-tools, etc. I dont see much difference in download size, considering thunar should be lightweight and nautilus being heavy.

@renhiyama
Copy link

I will keep gnome software, and systemd running for my laptop ig. I have no problems with what comes out of the box. Good luck to future people and this team ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants