GLFW.jl icon indicating copy to clipboard operation
GLFW.jl copied to clipboard

GLFW error messages on headless system

Open SimonDanisch opened this issue 7 years ago • 4 comments

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!

SimonDanisch avatar Sep 06 '18 12:09 SimonDanisch

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?

jayschwa avatar Sep 10 '18 02:09 jayschwa

so should probably just have an env variable?! ;)

SimonDanisch avatar Sep 10 '18 11:09 SimonDanisch

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.

jayschwa avatar Sep 10 '18 22:09 jayschwa

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

SimonDanisch avatar Sep 11 '18 07:09 SimonDanisch