JuliaGL / GLFW.jl

Julia interface to GLFW, a multi-platform library for creating windows with OpenGL contexts and managing input and events.
http://www.glfw.org/
MIT License
138 stars 33 forks source link

No GLXFBConfigs returned using X11 forwarding #234

Open dsfenn opened 7 months ago

dsfenn commented 7 months ago

I'm running Julia on a headless server, with X11 forwarding, using GLFW 3.4.1. When using either a Linux or Windows client, I get this error:

julia> window = GLFW.CreateWindow(640, 480, "GLFW.jl")
ERROR: GLFWError (API_UNAVAILABLE): GLX: No GLXFBConfigs returned
Stacktrace:
 [1] _ErrorCallbackWrapper(code::Int32, description::Cstring)
   @ GLFW ~/.julia/packages/GLFW/BWxfF/src/callback.jl:43
 [2] CreateWindow(width::Int64, height::Int64, title::String, monitor::GLFW.Monitor, share::GLFW.Window)
   @ GLFW ~/.julia/packages/GLFW/BWxfF/src/glfw3.jl:499
 [3] CreateWindow
   @ ~/.julia/packages/GLFW/BWxfF/src/glfw3.jl:499 [inlined]
 [4] CreateWindow(width::Int64, height::Int64, title::String)
   @ GLFW ~/.julia/packages/GLFW/BWxfF/src/glfw3.jl:499
 [5] top-level scope
   @ REPL[2]:1

In case it's relevant, I'm able to run glxgears fine.

Also, in case it's relevant, here's the output of glxinfo:

dsfenn@pfe25:~> glxinfo | grep OpenGL
OpenGL vendor string: Mesa
OpenGL renderer string: llvmpipe (LLVM 16.0.6, 256 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 23.1.4
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.5 (Compatibility Profile) Mesa 23.1.4
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.1.4
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:

Thanks

EDIT: This post initially stated that this problem only occurred using a Windows client, as I seemed to have success with a Linux client at the beginning. However, it's now not working for either Windows or Linux, so I've edited the post to reflect that.

sebastian-east commented 1 month ago

I am also getting the exact same error when attempting to use X forwarding between a windows and linux machine, also with GLFW 3.4.1 (I can also run glxgears fine, and X forwarding is working with WGLMakie and python plotting libraries). Anyone have any suggestions?