Skip to content
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

GLFW error messages on headless system #169

Open
SimonDanisch opened this issue Sep 6, 2018 · 4 comments
Open

GLFW error messages on headless system #169

SimonDanisch opened this issue Sep 6, 2018 · 4 comments

Comments

@SimonDanisch
Copy link
Member

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!

@jayschwa
Copy link
Member

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?

@SimonDanisch
Copy link
Member Author

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

@jayschwa
Copy link
Member

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.

@SimonDanisch
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants