Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
MESA-LOADER cannot load radeonsi and swrast
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
happysmash27
Tux's lil' helper
Tux's lil' helper


Joined: 28 Mar 2016
Posts: 138

PostPosted: Sun May 17, 2020 2:11 am    Post subject: MESA-LOADER cannot load radeonsi and swrast Reply with quote

Apparently, GTA V is being given away for free on the epic games store, so I decided to download their launcher to install it, and later try to run it, when I actually have time to do so. Unfortunately, this has brought about the same error that I currently also get in my steam install:

Code:
2020-05-16 18:25:29,381: Replacing /mnt/MEGA/Lutris/epic-games-store/drive_c/windows/system32/d3d11 with DXVK version
2020-05-16 18:25:29,383: Replacing /mnt/MEGA/Lutris/epic-games-store/drive_c/windows/system32/d3d10core with DXVK version
2020-05-16 18:25:29,384: Replacing /mnt/MEGA/Lutris/epic-games-store/drive_c/windows/system32/d3d9 with DXVK version
2020-05-16 18:25:29,385: Replacing /mnt/MEGA/Lutris/epic-games-store/drive_c/windows/system32/dxvk_config with DXVK version
2020-05-16 18:25:29,387: Replacing /mnt/MEGA/Lutris/epic-games-store/drive_c/windows/syswow64/d3d11 with DXVK version
2020-05-16 18:25:29,388: Replacing /mnt/MEGA/Lutris/epic-games-store/drive_c/windows/syswow64/d3d10core with DXVK version
2020-05-16 18:25:29,389: Replacing /mnt/MEGA/Lutris/epic-games-store/drive_c/windows/syswow64/d3d9 with DXVK version
2020-05-16 18:25:29,391: Replacing /mnt/MEGA/Lutris/epic-games-store/drive_c/windows/syswow64/dxvk_config with DXVK version
lutris-wrapper: Epic Games Store
Running ~/.local/share/lutris/runners/wine/lutris-5.6-2-x86_64/bin/wine /mnt/MEGA/Lutris/epic-games-store/drive_c/Program Files (x86)/Epic Games/Launcher/Portal/Binaries/Win32/EpicGamesLauncher.exe -opengl -SkipBuildPatchPrereq
Initial process has started with pid 10824
Waiting for game to be considered started (first non-excluded process started)
esync: up and running.
user.reg:671: Malformed value '"HDA ATI HDMI HDMI/DP,pc"=3 (js)"="disabled"'
LogInit: Display: Command Line: "C:\Program Files (x86)\Epic Games\Launcher\Portal\Binaries\Win32\EpicGamesLauncher.exe" -opengl -SkipBuildPatchPrereq -SaveToUserDir -Messaging

Highlighting the specific error
Code:
libGL error: MESA-LOADER: failed to open radeonsi (search paths /usr/lib32/dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib32/dri)
libGL error: failed to load driver: swrast

Code:
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  150 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  257
  Current serial number in output stream:  256
Initial process has exited.
All children have exited.
Exit with returncode 256
2020-05-16 18:25:41,595: Game still running (state: running)
2020-05-16 18:25:41,596: Stopping Epic Games Store (wine)


The same error on steam, with all instances of my home directory replaced with "~":

Code:
Restarting Steam by request...
~/.local/share/Steam/steam.sh: linio 112: DISTRIB_RELEASE: Neligita variablo
~/.local/share/Steam/steam.sh: linio 112: DISTRIB_RELEASE: Neligita variablo
Running Steam on gentoo  64-bit
STEAM_RUNTIME has been set by the user to: ~/.local/share/Steam/ubuntu12_32/steam-runtime
Forced use of runtime version for 32-bit libdbus-1.so.3. Host: 3.19.11 Runtime: 3.5.8
Found newer runtime version for 32-bit libGLU.so.1. Host: 1.3.1 Runtime: 1.3.8004
Forced use of runtime version for 32-bit libcurl.so.4. Host: 4.6.0 Runtime: 4.2.0
Forced use of runtime version for 32-bit libdbusmenu-glib.so.4. Host: 4.0.12 Runtime: 4.0.13
Forced use of runtime version for 32-bit libdbusmenu-gtk.so.4. Host: 4.0.12 Runtime: 4.0.13
Forced use of runtime version for 32-bit libgtk-x11-2.0.so.0. Host: 0.2400.32 Runtime: 0.2400.10
Found newer runtime version for 32-bit libjack.so.0. Host: 0.0.28 Runtime: 0.1.0
Found newer runtime version for 32-bit libpangox-1.0.so.0. Host: 0.0.0 Runtime: 0.3000.0
Found newer runtime version for 32-bit libstdc++.so.6. Host: 6.0.9 Runtime: 6.0.21
Found newer runtime version for 64-bit libGLU.so.1. Host: 1.3.1 Runtime: 1.3.8004
Forced use of runtime version for 64-bit libcurl.so.4. Host: 4.6.0 Runtime: 4.2.0
Found newer runtime version for 64-bit libdbusmenu-glib.so.4. Host: 4.0.12 Runtime: 4.0.13
Found newer runtime version for 64-bit libdbusmenu-gtk.so.4. Host: 4.0.12 Runtime: 4.0.13
Found newer runtime version for 64-bit libjack.so.0. Host: 0.0.28 Runtime: 0.1.0
Found newer runtime version for 64-bit libpangox-1.0.so.0. Host: 0.0.0 Runtime: 0.3000.0
Steam client's requirements are satisfied
~/.local/share/Steam/ubuntu12_32/steam
Installing breakpad exception handler for appid(steam)/version(1589513816)

Highlighting the specific error:
Code:
libGL error: MESA-LOADER: failed to open radeonsi (search paths /usr/lib32/dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib32/dri)
libGL error: failed to load driver: swrast

Code:
Installing breakpad exception handler for appid(steam)/version(1589513816)
[2020-05-16 18:57:05] Startup - updater built May 15 2020 03:04:07
SteamUpdateUI: An X Error occurred
X Error of failed request:  GLXBadContext
SteamUpdateUI: An X Error occurred
X Error of failed request:  BadValue (integer parameter out of range for operation)
Major opcode of failed request:  150 (GLX)
Minor opcode of failed request:  3 (X_GLXCreateContext)
Value in failed request:  0x0
Serial number of failed request:  40
xerror_handler: X failed, continuing
Major opcode of failed request:  150 (GLX)
Minor opcode of failed request:  6 (X_GLXIsDirect)
Serial number of failed request:  41
xerror_handler: X failed, continuing
[2020-05-16 18:57:05] Verifying installation...
[2020-05-16 18:57:06] Verification complete
/data/src/steamUI/Main.cpp (2707) : Assertion Failed: !"Fatal Error: Could not load module 'bin/vgui2_s.dll'"
/data/src/steamUI/Main.cpp (2707) : Assertion Failed: !"Fatal Error: Could not load module 'bin/vgui2_s.dll'"
Installing breakpad exception handler for appid(steam)/version(1589513816)
Error: Could not load module 'vgui2_s.so'.


(The last error about vgui2_s.so is new, and in the context of this thread, I do not care about fixing it. I will get to that one later).

I remember finding a fix for this in Steam somewhere, with deleting some libraries. I am not sure where this was, but it only worked for some time, as eventually steam updated again and the libraries where re-added.

What would be the best method of fixing this library issue for both programs, in a way that is hopefully more permanent than the old fix I found for Steam? If I am able to find it again, I will also post that solution here too, by the way, just in case I don't get a better response compared to it.

Edit: Some libraries for Lutris:

Code:
~ % ls ~/.local/share/lutris/runtime/lib32
koku-xinput-wine               libfmodex-4.26.36.so  liblua5.1.so.0        libpng14.so.14          libthreadutil.so.6
libaio.so.1                    libfontconfig.so.1    liblua5.2.so.0        libpng15.so.15          libtiff.so.5
liballeg.so.4.4                libfribidi.so.0       libluajit-5.1.so.2    libpng16.so.16          libtinfo.so.5
libaudio.so.2                  libfuse.so.2          libmad.so.0           libportaudio.so.2       libupnp.so.6
libavcodec-ffmpeg.so.56        libgcrypt.so.11       libmikmod.so.3        libreadline.so.6        libv4lconvert.so.0
libavformat-ffmpeg.so.56       libgif.so.7           libminiupnpc.so.10    libSDL-1.2.so.0         libwebp.so.5
libavutil-ffmpeg.so.54         libgloox.so.13        libmng.so.1           libSDL2-2.0.so.0        libwx_baseu-3.0.so.0
libboost_filesystem.so.1.58.0  libgomp.so.1          libmodplug.so.0       libSDL2_image-2.0.so.0  libwx_gtk2u_adv-3.0.so.0
libboost_iostreams.so.1.58.0   libhistory.so.6       libmodplug.so.1       libSDL2_mixer-2.0.so.0  libwx_gtk2u_aui-3.0.so.0
libboost_system.so.1.58.0      libicudata.so.55      libmpeg2convert.so.0  libSDL_gfx.so.15        libwx_gtk2u_core-3.0.so.0
libcairo.so.2                  libicui18n.so.55      libmpeg2.so.0         libSDL_net-1.2.so.0     libx264.so.148
libcdio.so.13                  libicuuc.so.55        libmpg123.so.0        libSDL_sound-1.0.so.1   libXinerama.so.1
libcgmanager.so.0              libIrrlicht.so.1.8    libncurses.so.5       libSDL_ttf-2.0.so.0     libxshmfence.so.1
libdatrie.so.1                 libixml.so.2          libncursesw.so.5      libsnappy.so.1          libxslt.so.1
libenet.so.7                   libjansson.so.4       libnih-dbus.so.1      libSoundTouch.so.1      libz.so.1
libexslt.so.0                  libjbig.so.0          libnih.so.1           libsoxr.so.0            libzzip-0.so.13
libfaad.so.2                   libjson-c.so.2        libopenjpeg.so.5      libstdc++.so.5
libfluidsynth.so.1             libleveldb.so.1       libphysfs.so.1        libswscale-ffmpeg.so.3


Some libraries for Steam:

Code:
bin32 % ls ~/.local/share/Steam/ubuntu12_32/steam-runtime/lib/i386-linux-gnu
libacl.so.1       libcom_err.so.2     libgcrypt.so.11.7.0      libncursesw.so.5    libssl.so.1.0.0      libwrap.so.0
libacl.so.1.1.0   libcom_err.so.2.1   libglib-2.0.so.0         libncursesw.so.5.9  libtinfo.so.5        libwrap.so.0.7.6
libattr.so.1      libcrypto.so.1.0.0  libglib-2.0.so.0.3200.3  libpci.so.3         libtinfo.so.5.9      libz.so.1
libattr.so.1.1.0  libdbus-1.so.3      libgpg-error.so.0        libpci.so.3.1.8     libudev.so.0         libz.so.1.2.3.4
libbz2.so.1       libdbus-1.so.3.5.8  libgpg-error.so.0.8.0    libpcre.so.3        libudev.so.0.13.0
libbz2.so.1.0     libexpat.so.1       libkeyutils.so.1         libpcre.so.3.12.1   libusb-1.0.so.0
libbz2.so.1.0.4   libexpat.so.1.5.2   libkeyutils.so.1.4       libpng12.so.0       libusb-1.0.so.0.1.0
libcap.so.2       libgcc_s.so.1       libncurses.so.5          libpng12.so.0.46.0  libuuid.so.1
libcap.so.2.22    libgcrypt.so.11     libncurses.so.5.9        libselinux.so.1     libuuid.so.1.3.0


Some more steam libraries:

Code:
bin32 % ls ~/.local/share/Steam/ubuntu12_32/steam-runtime/lib/x86_64-linux-gnu
libacl.so.1       libcom_err.so.2     libgcrypt.so.11.7.0      libncursesw.so.5    libssl.so.1.0.0      libwrap.so.0
libacl.so.1.1.0   libcom_err.so.2.1   libglib-2.0.so.0         libncursesw.so.5.9  libtinfo.so.5        libwrap.so.0.7.6
libattr.so.1      libcrypto.so.1.0.0  libglib-2.0.so.0.3200.3  libpci.so.3         libtinfo.so.5.9      libz.so.1
libattr.so.1.1.0  libdbus-1.so.3      libgpg-error.so.0        libpci.so.3.1.8     libudev.so.0         libz.so.1.2.3.4
libbz2.so.1       libdbus-1.so.3.5.8  libgpg-error.so.0.8.0    libpcre.so.3        libudev.so.0.13.0
libbz2.so.1.0     libexpat.so.1       libkeyutils.so.1         libpcre.so.3.12.1   libusb-1.0.so.0
libbz2.so.1.0.4   libexpat.so.1.5.2   libkeyutils.so.1.4       libpng12.so.0       libusb-1.0.so.0.1.0
libcap.so.2       libgcc_s.so.1       libncurses.so.5          libpng12.so.0.46.0  libuuid.so.1
libcap.so.2.22    libgcrypt.so.11     libncurses.so.5.9        libselinux.so.1     libuuid.so.1.3.0


All these libraries in the steam part appear to be symlinks, based on the ls colours. ~/.steam/bin32 also seems to symlink to ~/.local/share/Steam/ubuntu12_32/:

Code:
bin32 % ls ~/.local/share/Steam/ubuntu12_32/
chromehtml.so           libavcodec.so.57    libsteamwebrtc.so              mssmixer.mix                steam-runtime.checksum
crashhandler.so         libavformat.so.57   libswscale.so.4                mssmp3.asi                  steam-runtime.old
driverhelper.py         libavresample.so.3  libtier0_s.so                  mssogg.asi                  steam-runtime.tar.xz
filesystem_stdio.so     libavutil.so.55     libv8.so                       mssvoice.asi                steam-runtime.tar.xz.part0
fossilize_replay        libicui18n.so       libvideo.so                    panorama                    steam-runtime.tar.xz.part1
friendsui.so            libicuuc.so         libVkLayer_steam_fossilize.so  serverbrowser.so            steam-runtime.tar.xz.part2
gameoverlayrenderer.so  libmiles.so         libvstdlib_s.so                steam                       steamservice.so
gameoverlayui           libopenvr_api.so    libx264.so.142                 steamclient.so              steamui.so
gameoverlayui.so        liboverride.so      libx264.so.142.crypt           steam_monitor               streaming_client
gldriverquery           libSDL2-2.0.so.0    libx264.so.142.md5             steamoverlayvulkanlayer.so  vgui2_s.so
libaudio.so             libsteam.so         mssdsp.flt                     steam-runtime
bin32 % ls ~/.steam/bin32
chromehtml.so           libavcodec.so.57    libsteamwebrtc.so              mssmixer.mix                steam-runtime.checksum
crashhandler.so         libavformat.so.57   libswscale.so.4                mssmp3.asi                  steam-runtime.old
driverhelper.py         libavresample.so.3  libtier0_s.so                  mssogg.asi                  steam-runtime.tar.xz
filesystem_stdio.so     libavutil.so.55     libv8.so                       mssvoice.asi                steam-runtime.tar.xz.part0
fossilize_replay        libicui18n.so       libvideo.so                    panorama                    steam-runtime.tar.xz.part1
friendsui.so            libicuuc.so         libVkLayer_steam_fossilize.so  serverbrowser.so            steam-runtime.tar.xz.part2
gameoverlayrenderer.so  libmiles.so         libvstdlib_s.so                steam                       steamservice.so
gameoverlayui           libopenvr_api.so    libx264.so.142                 steamclient.so              steamui.so
gameoverlayui.so        liboverride.so      libx264.so.142.crypt           steam_monitor               streaming_client
gldriverquery           libSDL2-2.0.so.0    libx264.so.142.md5             steamoverlayvulkanlayer.so  vgui2_s.so
libaudio.so             libsteam.so         mssdsp.flt                     steam-runtime


Edit 2: [url]this similar issue[/url] made me wonder if there actually were libraries for this on my system, but that they needed some tweaks to be found. I used the find command to look:

Code:
in32 % find /usr/ -iname "*swrast*"
/usr/lib32/dri/kms_swrast_dri.so
/usr/lib32/dri/swrast_dri.so
find: ‘/usr/share/polkit-1/rules.d’: Mankas permeso
/usr/lib64/dri/kms_swrast_dri.so
/usr/lib64/dri/swrast_dri.so
find: ‘/usr/portage/packages’: Mankas permeso
bin32 % find /usr/ -iname "*radeonsi*"
/usr/lib32/dri/radeonsi_dri.so
find: ‘/usr/share/polkit-1/rules.d’: Mankas permeso
/usr/lib64/dri/radeonsi_dri.so
find: ‘/usr/portage/packages’: Mankas permeso


It seems they did, but the names weren't exactly as expected, so I decided to try to symbolically link to them:

Code:
dri # ln -s swrast_dri.so swrast.so
dri # ln -s radeon_dri.so radeon.so
dri # ln -s radeonsi_dri.so radeonsi.so


This did not fix any issue, so I will delete the symbolic links.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum