community
community copied to clipboard
ubuntu 22.04 libGL error
Software Versions
- Anaconda Python:3.9
- OS:ubuntu 22.04
- Kivy:2.1.0
- Kivy installation method: pip install kivy[full] kivy_examples
Describe the bug A clear and concise description of what the bug is.
The issue tracker is a tool to address bugs only (search known bugs: https://git.io/vM1iE). Please use the #support Discord channel at https://chat.kivy.org/ or Stack Overflow for support questions, more information at https://git.io/vM1yQ.
Expected behavior A clear and concise description of what you expected to happen.
To Reproduce A short, runnable example that reproduces the issue with latest kivy master.
Code and Logs and screenshots
import kivy
kivy.require('2.1.0') # replace with your current kivy version !
from kivy.app import App
from kivy.uix.label import Label
class MyApp(App):
def build(self):
return Label(text='Hello world')
if __name__ == '__main__':
MyApp().run()
python aa.py
[INFO ] [Logger ] Record log in /home/mm/.kivy/logs/kivy_22-05-08_6.txt
[INFO ] [Kivy ] v2.1.0
[INFO ] [Kivy ] Installed at "/home/mm/anaconda3/lib/python3.9/site-packages/kivy/__init__.py"
[INFO ] [Python ] v3.9.7 (default, Sep 16 2021, 13:09:58)
[GCC 7.5.0]
[INFO ] [Python ] Interpreter at "/home/mm/anaconda3/bin/python"
[INFO ] [Logger ] Purge log fired. Processing...
[INFO ] [Logger ] Purge finished!
[INFO ] [Factory ] 189 symbols loaded
[INFO ] [ImageLoaderFFPy] Using ffpyplayer 4.3.5
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_ffpyplayer
[INFO ] [Text ] Provider: sdl2
[INFO ] [Window ] Provider: sdl2
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_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: iris
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_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: iris
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
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 152 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 96
Current serial number in output stream: 97
Additional context Add any other context about the problem here.
The code you provided just woks fine with kivy 2.1.0, python 3.8.9 venv, pycharm 2022.1, ubuntu 20.04LTS. There is probably something missing in your installation or the environment
That seems to be confirmed from multiple sources. (E.g. Stackoverflow)
@monkeycc can you attach some more info about your hardware?
uname -a Linux mm-ROG-Strix-G733ZX-G733ZX 5.15.0-27-generic #28-Ubuntu SMP Thu Apr 14 04:55:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
cat /proc/cpuinfo | grep 'model name' |uniq model name : 12th Gen Intel(R) Core(TM) i9-12900H
cat /proc/meminfo | grep MemTotal MemTotal: 32525680 kB
lspci | grep 'VGA' 00:02.0 VGA compatible controller: Intel Corporation Alder Lake-P Integrated Graphics Controller (rev 0c) 01:00.0 VGA compatible controller: NVIDIA Corporation GA103M [GeForce RTX 3080 Ti Mobile] (rev a1)
nvidia-smi | NVIDIA-SMI 510.60.02 Driver Version: 510.60.02 CUDA Version: 11.6
nvcc -V nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2022 NVIDIA Corporation Built on Tue_Mar__8_18:18:20_PST_2022 Cuda compilation tools, release 11.6, V11.6.124 Build cuda_11.6.r11.6/compiler.31057947_0
sudo gedit /etc/modprobe.d/blacklist.conf blacklist nouveau options nouveau modeset=0
doubt
pytorch cuda
- OpenGL CUDA conflict ??
- ubuntu 22.04
doubt OpenGL CUDA conflict ?? @drahba @misl6
please send output of
sudo ldconfig -p | grep -i gl.so
sudo ldconfig -p | grep -i gl.so
libwayland-egl.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libwayland-egl.so.1
libwayland-egl.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libwayland-egl.so
libcogl.so.20 (libc6,x86-64) => /lib/x86_64-linux-gnu/libcogl.so.20
libOpenGL.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libOpenGL.so.0
libOpenGL.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libOpenGL.so
libGL.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libGL.so.1
libGL.so.1 (libc6) => /lib/i386-linux-gnu/libGL.so.1
libGL.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libGL.so
libEGL.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libEGL.so.1
libEGL.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libEGL.so
@T-Dynamos
@monkeycc Try this
sudo rm /usr/lib/i386-linux-gnu/libGL.so.1
After that upgrade Ubuntu using apt then try running kivy, I also use ubutnu 22.04 and kivy is working fine
Thank you for your help
test fails, the same error message will be reported
sudo ldconfig -p | grep -i gl.so
libwayland-egl.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libwayland-egl.so.1
libwayland-egl.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libwayland-egl.so
libcogl.so.20 (libc6,x86-64) => /lib/x86_64-linux-gnu/libcogl.so.20
libOpenGL.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libOpenGL.so.0
libOpenGL.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libOpenGL.so
libGL.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libGL.so.1
libGL.so.1 (libc6) => /lib/i386-linux-gnu/libGL.so.1
libGL.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libGL.so
libEGL.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libEGL.so.1
libEGL.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libEGL.so
Same issue here on Ubuntu 22.04.
My lappy configs:
- Ryzen 5 4800H, integrated Radeon GPU.
- GTX 1650 Notebook GPU, 4GB.
Anyone able to find a solution?
This does not seem to be an issue anymore on Kivy==2.2.0rc1 (Installable via pip install --pre kivy).
@kXborg @monkeycc can you confirm that?
@misl6 checking
Yeah seems fine now. Thanks
Thank you for confirming that @kXborg !
@monkeycc , feel free to re-open the issue if it persists on your side.