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

OpenGL exception while trying to run the resolver #3

Closed
meisterT opened this issue Apr 28, 2019 · 4 comments
Closed

OpenGL exception while trying to run the resolver #3

meisterT opened this issue Apr 28, 2019 · 4 comments

Comments

@meisterT
Copy link

Running bazel run scoreboards/resolver -- --url https://www.domjudge.org/demoweb/api/ --groups="NWERC - Eindhoven University of Technology" gives:

Fetching https://www.domjudge.org/demoweb/api/contests...
Fetching https://www.domjudge.org/demoweb/api/contests/nwerc18/state...
Fetching https://www.domjudge.org/demoweb/api/contests/nwerc18/scoreboard...
Fetching https://www.domjudge.org/demoweb/api/contests/nwerc18/judgement-types...
Fetching https://www.domjudge.org/demoweb/api/contests/nwerc18/languages...
Fetching https://www.domjudge.org/demoweb/api/contests/nwerc18/problems...
Fetching https://www.domjudge.org/demoweb/api/contests/nwerc18/groups...
Fetching https://www.domjudge.org/demoweb/api/contests/nwerc18/organizations...
Fetching https://www.domjudge.org/demoweb/api/contests/nwerc18/teams...
Fetching https://www.domjudge.org/demoweb/api/contests/nwerc18/submissions...
Fetching https://www.domjudge.org/demoweb/api/contests/nwerc18/judgements...
Exception in thread "main" java.lang.IllegalStateException: There is no OpenGL context current in the current thread.
	at org.lwjgl.opengl.GL.createCapabilities(GL.java:378)
	at org.lwjgl.opengl.GL.createCapabilities(GL.java:322)
	at me.hex539.resolver.ResolverWindow.run(ResolverWindow.java:62)
	at me.hex539.resolver.Executive.main(Executive.java:64)

btw. all the example command lines need to be updated since we updated our demoweb instance recently. Also the resolver from the end of this command line needs to be removed:
https://github.com/hex539/scoreboard/tree/master/scoreboards/resolver

@hex539
Copy link
Owner

hex539 commented Apr 28, 2019

Your command works for me on Ubuntu 18.04 LTS and Debian unstable. Can you let me know what OS you're using so I can try it out and have a look at where the actual issue is?

btw. all the example command lines need to be updated since we updated our demoweb instance recently. Also the resolver from the end of this command line needs to be removed:
https://github.com/hex539/scoreboard/tree/master/scoreboards/resolver

Thanks for flagging

hex539 added a commit that referenced this issue Apr 28, 2019
It's unclear why the window would not be created unless something is
wrong with the host OS (eg. no opengl support). This will help to
collect some data on what is going on.
@meisterT
Copy link
Author

I am using debian buster. The new log after your most recent commit is this:

[LWJGL] GLFW_API_UNAVAILABLE error
	Description : GLX: GLX extension not found
	Stacktrace  :
		org.lwjgl.glfw.GLFW.nglfwCreateWindow(GLFW.java:1666)
		org.lwjgl.glfw.GLFW.glfwCreateWindow(GLFW.java:1847)
		me.hex539.resolver.ResolverWindow.run(ResolverWindow.java:57)
		me.hex539.resolver.Executive.main(Executive.java:64)
Failed to create a GLFW window for OpenGL.

@meisterT
Copy link
Author

Well, this is embarrassing. I tried to run glxgears which also failed so I debugged a bit and had to remove some nvidia drivers (I don't have an nvidia card)...

@hex539
Copy link
Owner

hex539 commented Apr 28, 2019

Perfect, the new error is clear enough about what went wrong. Score one for LWJGL.

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