Hi, I’ve been trying to run a kivy demo app via ssh x11 forwarding, and it shows for a moment, but then it core dumps.
The app gives a warning about not having a recent enough version of OpenGL (1.4 and required at least 2.0) and hints that if you have problems you should try upgrading to at least 2.0. However, I can’t seem to find my way to upgrade to such libraries. Would anyone give me a hand on this? Basically upgrading to a more recent version of Opengl/Mesa .
Following is the console log from my last run, and also the glxinfo that shows the OpenGL/Mesa versions.
I’m trying this on a nano with Jetpack 4.2.1
Thank you.
Regards,
Eduardo
glxinfo output:
(nspi) drakorg@drakorg-desktop:~/workspace/nspi/kivy_$ glxinfo | grep -i version
MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: swrast
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
OpenGL version string: 1.4 (2.1 Mesa 10.5.4)
Console output:
Hello from the pygame community. https://www.pygame.org/contribute.html
[INFO ] [Image ] Providers: img_tex, img_dds, img_pygame, img_pil, img_gif (img_ffpyplayer ignored)
[INFO ] [Text ] Provider: pygame(['text_pango'] ignored)
[INFO ] [Window ] Provider: x11(['window_egl_rpi', 'window_pygame'] ignored)
MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: swrast
FBConfig selected:
Doublebuffer: Yes
Red Bits: 8, Green Bits: 8, Blue Bits: 8, Alpha Bits: 8, Depth Bits: 24
[INFO ] [GL ] Using the "OpenGL" graphics system
[INFO ] [GL ] Backend used <gl>
[INFO ] [GL ] OpenGL version <b'1.4 (2.1 Mesa 10.5.4)'>
[INFO ] [GL ] OpenGL vendor <b'Mesa Project'>
[INFO ] [GL ] OpenGL renderer <b'Software Rasterizer'>
[INFO ] [GL ] OpenGL parsed version: 1, 4
[CRITICAL] [GL ] Minimum required OpenGL version (2.0) NOT found!
OpenGL version detected: 1.4
Version: b'1.4 (2.1 Mesa 10.5.4)'
Vendor: b'Mesa Project'
Renderer: b'Software Rasterizer'
Try upgrading your graphics drivers and/or your graphics hardware in case of problems.
The application will leave now.
Fatal Python error: (pygame parachute) Segmentation Fault
Current thread 0x0000007f8d76f010 (most recent call first):
File "/home/drakorg/.local/share/virtualenvs/nspi-ClYdI6po/lib/python3.6/site-packages/kivy/core/gl/__init__.py", line 75 in print_gl_version
File "/home/drakorg/.local/share/virtualenvs/nspi-ClYdI6po/lib/python3.6/site-packages/kivy/core/gl/__init__.py", line 39 in init_gl
File "/home/drakorg/.local/share/virtualenvs/nspi-ClYdI6po/lib/python3.6/site-packages/kivy/core/window/__init__.py", line 1225 in initialize_gl
File "/home/drakorg/.local/share/virtualenvs/nspi-ClYdI6po/lib/python3.6/site-packages/kivy/core/window/__init__.py", line 1254 in create_window
File "/home/drakorg/.local/share/virtualenvs/nspi-ClYdI6po/lib/python3.6/site-packages/kivy/core/window/__init__.py", line 981 in __init__
File "/home/drakorg/.local/share/virtualenvs/nspi-ClYdI6po/lib/python3.6/site-packages/kivy/core/__init__.py", line 71 in core_select_lib
File "/home/drakorg/.local/share/virtualenvs/nspi-ClYdI6po/lib/python3.6/site-packages/kivy/core/window/__init__.py", line 2068 in <module>
File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 678 in exec_module
File "<frozen importlib._bootstrap>", line 665 in _load_unlocked
File "<frozen importlib._bootstrap>", line 955 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 971 in _find_and_load
File "/home/drakorg/.local/share/virtualenvs/nspi-ClYdI6po/lib/python3.6/site-packages/kivy/base.py", line 123 in ensure_window
File "/home/drakorg/.local/share/virtualenvs/nspi-ClYdI6po/lib/python3.6/site-packages/kivy/metrics.py", line 174 in dpi
File "/home/drakorg/.local/share/virtualenvs/nspi-ClYdI6po/lib/python3.6/site-packages/kivy/utils.py", line 505 in __g
et__
File "helloworld.py", line 14 in build
File "/home/drakorg/.local/share/virtualenvs/nspi-ClYdI6po/lib/python3.6/site-packages/kivy/app.py", line 829 in run
File "helloworld.py", line 18 in <module>
Aborted (core dumped)