GLFW.jl
GLFW.jl copied to clipboard
GLFW error messages on headless system
This i the output you get when running GLFW on a headless system:
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "X11: RandR gamma ramp support seems broken")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "Linux: Failed to watch for joystick connections in /dev/input: No such file or directory")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "Linux: Failed to open joystick device directory /dev/input: No such file or directory")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "X11: RandR monitor support seems broken")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "X11: RandR gamma ramp support seems broken")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "Linux: Failed to watch for joystick connections in /dev/input: No such file or directory")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "Linux: Failed to open joystick device directory /dev/input: No such file or directory")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "X11: RandR monitor support seems broken")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "X11: RandR gamma ramp support seems broken")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "Linux: Failed to watch for joystick connections in /dev/input: No such file or directory")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "Linux: Failed to open joystick device directory /dev/input: No such file or directory")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "X11: RandR monitor support seems broken")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "X11: RandR gamma ramp support seems broken")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "Linux: Failed to watch for joystick connections in /dev/input: No such file or directory")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "Linux: Failed to open joystick device directory /dev/input: No such file or directory")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "X11: RandR monitor support seems broken")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "X11: RandR gamma ramp support seems broken")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "Linux: Failed to watch for joystick connections in /dev/input: No such file or directory")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "Linux: Failed to open joystick device directory /dev/input: No such file or directory")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "X11: RandR monitor support seems broken")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "X11: RandR gamma ramp support seems broken")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "Linux: Failed to watch for joystick connections in /dev/input: No such file or directory")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "Linux: Failed to open joystick device directory /dev/input: No such file or directory")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "X11: RandR monitor support seems broken")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "X11: RandR gamma ramp support seems broken")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "Linux: Failed to watch for joystick connections in /dev/input: No such file or directory")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "Linux: Failed to open joystick device directory /dev/input: No such file or directory")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "X11: RandR monitor support seems broken")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "X11: RandR gamma ramp support seems broken")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "Linux: Failed to watch for joystick connections in /dev/input: No such file or directory")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "Linux: Failed to open joystick device directory /dev/input: No such file or directory")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "X11: RandR monitor support seems broken")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "X11: RandR gamma ramp support seems broken")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "Linux: Failed to watch for joystick connections in /dev/input: No such file or directory")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "Linux: Failed to open joystick device directory /dev/input: No such file or directory")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "X11: RandR monitor support seems broken")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "X11: RandR gamma ramp support seems broken")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "Linux: Failed to watch for joystick connections in /dev/input: No such file or directory")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "Linux: Failed to open joystick device directory /dev/input: No such file or directory")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
┌ Warning: GLFW.GLFWError(PLATFORM_ERROR::ErrorCode = 65544, "X11: RandR monitor support seems broken")
└ @ GLFW ~/.julia/packages/GLFW/pkSlg/src/GLFW.jl:38
So first of all, is it a bug that they multiplied!? :D And second, it would be really nice if we can not print anything at all - after all everything just works exactly like it should. Maybe we can just actually check ourselves for RandR + Joystick support and if it's not there, just completely ignore those messages!
It is weird that it happens so many times. I'd prefer to not completely ignore these non-fatal errors though. Maybe we should make an optional parameter for Initialize that determines whether they get handled or not?
so should probably just have an env variable?! ;)
Yeah, maybe. Out of curiosity, when are you using GLFW on a headless system for "real" work? I was under the impression that these warnings would only occur in CI.
For example: https://nextjournal.com/sdanisch/makie-examples Interestingly it doesn't show all the error output in that article right now - not sure why, but usually it's there :P