Open ailzhang opened 2 years ago
Don't think there's a good way to fix this. The true-headless EGL support is a feature of Nvidia's linux driver as a server visualization package. When DISPLAY is set, the driver will try to find a proper display output that matches the env settings. (Maybe it's because the terminal have X over SSH support and it set up the X DISPLAY settings?)
X11 is a huge mess of spaghetti, I think the best we can do is try to unset DISPLAY if we failed to initialize EGL and retry?
Yea for Linux one we can simply try unsetting DISPLAY to workaround. I'm not sure about whether it's expected to work on windows tho (it didn't work when I tested but maybe I did it wrong?
@bobcao3 Do you happen to have any idea why our EGL setup doesn't work on windows? :D
This is a bit confusing so I'm opening an issue to track here:
DISPLAY
is set (e.glocalhost:10.0
) in my ssh window, EGL will use that and can only load up to EGL1.0. But if I dounset DISPLAY
then EGL can correctly find 1.5 and pass all tests.Maybe relevant: