Replies: 7 comments
-
The isue is that the swrest cant be found although i have ensured that the library directory is specified in the ld conf. For some reason the linker still looks for swrast in usr/lib/dri although the file is in /usr/lib/x86_64-linux-gnu/. The worst part is that i cant change the behaviour. Ive made sure that the directory of swrst is specified in the dynamic linker folder. |
Beta Was this translation helpful? Give feedback.
-
The problem orignates from error involving libGLU.so.1, while running a Python script that imports gmsh and dolfinx in a WSL Ubuntu environment. I solved initial problem by manual instalation of:
according to original post: https://fenicsproject.discourse.group/t/oserror-libglu-so-1/6021 although that error on its own is bizzare and should not have been a problem in the first place. |
Beta Was this translation helpful? Give feedback.
-
@deadP1rx On Ubuntu 22.04 with radeon driver |
Beta Was this translation helpful? Give feedback.
-
hey, thx for the answer.
Ive created additional local file that specifies /usr/lib/x86_64-linux-gnu/dri but u r right that it might not be necessary, but I am quite desperate at the moment. I ve previously checked with ldconfig -p | grep swrast if the library appears in the cache but it returns nothing. Basic GLX info looks fine, it specifies device, opengl version etc.. The gmsh works fine in the python environment. Apparently the problem is just with the GUI. I tried also running pyvista for mesh visualisation with ipywidgets with trame but that explodes kernel every time i call the plot, func, even for simple examples. So i guess that the problem affects all graphics based processes (assuming that those errors are connected) All that is quite unique behaviour, and i have not seen anything like that before |
Beta Was this translation helpful? Give feedback.
-
Converted to a discussion since the issue isn't related to WSL |
Beta Was this translation helpful? Give feedback.
-
Encountered this issue when trying to use networkx on a conda environment on WSL. My swrast_dri.so is there under "/usr/lib/x86_64-linux-gnu/dri" and even though the mesa-loader says that is a search path, it doesn't find the drivers. |
Beta Was this translation helpful? Give feedback.
-
I encountered a very similar error when doing something with Python plots using
Note you need to modify the path and libstdc++.so.* version according to your machine. And backup your |
Beta Was this translation helpful? Give feedback.
-
Windows Version
Microsoft Windows [Version 10.0.22621.2428]
WSL Version
1.2.5.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.90.1
Distro Version
Ubuntu 22.04
Other Software
Anaconda
Repro Steps
start gmsh
Expected Behavior
open gmsh
Actual Behavior
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
XRequest.148: BadMatch (invalid parameter attributes) 0x0
Segmentation fault
Diagnostic Logs
No response
Beta Was this translation helpful? Give feedback.
All reactions