Linux headless issue - confusing

Started by raptavio, January 12, 2017, 22:12:36

Previous topic - Next topic

raptavio

OK. Let me describe three scenarios for headless LWJGL development for 3D model analysis in an AWS headless environment.

LWJGL v 2.9.3 is being used.

Scenario one:
-Ubuntu server
-Installed Xvfb, X11 server utils
-Using Xvfb as the virtual display

LWJGL works as expected.

Scenario two:
-RedHat server
-Installed Xvfb,  X11 server utils
-Using Xvfb as the virtual display

LWJGL doesn't work, on initializing display, error is as follows:
org.lwjgl.LWJGLException: No display mode extension is available

Adding several other Mesa RPMs didn't help.

Scenario three:
-RedHat server, as above
-Using Tiger VNC as the virtual display

LWJGL works as expected.
Switching off Tiger VNC and using Xvfb as the virtual display did not work, so the dependencies of Tiger VNC are not (apparently) the issue.

So why would Xvfb work on a Ubuntu server, but not on a RedHat server, but VNC works on the exact same RedHat server?

spasi

Sorry, I don't think I can help you with the issue you're having.

But, are we talking about AWS GPU Instances or Elastic GPUs? Or generic instances without a GPU? If the former, have a look at EGL Eye. LWJGL 3 should be able to handle this case just fine.

raptavio

Completely headless. Non-GPU instances. I considered it a triumph I got LWJGL to work in Linux without a GPU.