-
-
Notifications
You must be signed in to change notification settings - Fork 308
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
GLMakie fails to run on a headless system on Ubuntu 22.04 #1953
Comments
Thanks, I'm trying to fix this on my side too, also in headless mode on 22.04. Reproducer: $ LIBGL_DEBUG=verbose LIBGL_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri: julia -e 'using GLMakie; display(Figure())'
libGL: screen 0 does not appear to be DRI2 capable
libGL: MESA-LOADER: failed to open /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so: [...]/bin/../lib/julia/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /lib/x86_64-linux-gnu/libLLVM-13.so.1)
libGL error: MESA-LOADER: failed to open swrast: [...]/bin/../lib/julia/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /lib/x86_64-linux-gnu/libLLVM-13.so.1) (search paths /usr/lib/x86_64-linux-gnu/dri:, suffix _dri)
libGL error: failed to load driver: swrast
┌ Warning: GLFW couldn't create an OpenGL window.
│ This likely means, you don't have an OpenGL capable Graphic Card,
│ or you don't have an OpenGL 3.3 capable video driver installed.
│ Have a look at the troubleshooting section in the GLMakie readme:
│ https://github.com/JuliaPlots/Makie.jl/tree/master/GLMakie#troubleshooting-opengl.
└ @ GLMakie ~/.julia/packages/GLMakie/TfSB1/src/screen.jl:339
ERROR: GLFWError (VERSION_UNAVAILABLE): GLX: Failed to create context: GLXBadFBConfig This is likely due to a $ ldd --version
ldd (Ubuntu GLIBC 2.35-0ubuntu3) 2.35 Maybe this issue should go in $ julia -e 'using GLFW; GLFW.Window()' |
With the dependency |
Updating
Now getting this error:
|
@t-bltg Sounds like this has been reduced to this old issue then: JuliaGL/GLFW.jl#198 |
Ha, good catch, this workaround works: LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 julia -e 'using GLFW; GLFW.Window(); readline()'
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 julia -e 'using GLMakie; display(Figure()); readline()' |
I would consider this closed, then. This is just JuliaGL/GLFW.jl#198 with different wrapping. |
Xref JuliaLang/julia#34276. |
I am creating this issue so we can track how to get GLMakie to run on Ubuntu 22.04 in headless mode. Currently running into this error when using the setup that worked on 20.04:
That is with these dependencies installed:
build-essential cmake xorg-dev mesa-utils xvfb libgl1 freeglut3-dev
from following this guide.Julia v1.7.2. Makie v0.16.6. GLMakie v0.5.5. Ubuntu 22.04.
The text was updated successfully, but these errors were encountered: