-
-
Notifications
You must be signed in to change notification settings - Fork 477
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
Headless rendering broken on Linux #988
Comments
I was getting a similar context creation failure under Mesa on Linux, which I dug into a bit on #1001. A quick, curious question: What happens if you use This is almost certainly not the correct long term fix, but I'd be interested to know if this workaround that worked for my case also works for you. Thanks. |
Hey @bwasty, while I couldn't repo this issue against master (via either Wayland + Headless, X11+ Headless, Wayland, X11, xvfb + X11, xvfb + X11 + Headless, OsMesa, xvfb + OsMesa), I did track down a bug relating to invalid drop order. Fix is here: #1125. I had to update your program, and I filed the changes I made here: bwasty/gltf-viewer#58. I'm going to assume this got fixed somewhere between when this bug got filed originally, and today, as there has been major changes to the headless api. If that's not the case, just tell me and I'll reopen this issue. |
…#988, afaik. Also adds debug to more structs. (#1125) Signed-off-by: Hal Gentz <[email protected]>
I'm trying to get headless rendering working for my glTF viewer (for screenshot generation). On macOS it works fine, but on Linux (Debian Stretch / Ubuntu 16.04) I'm either getting blank images or context creation errors. Here are some logs for both cases:
Black + Transparent image
It's strange that
gl::GetString()
doesn't show any renderer/version information andgl::GetError()
show nothing either.Context Creation fails
When explicitly requesting an OpenGL 3.3 Core context (by uncommenting these lines):
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: OsError("OSMesaCreateContextAttribs failed")', /checkout/src/libcore/result.rs:906:4
(from here)
According to
glxinfo
, OpenGL 3.3 should be supported:(on Ubuntu 16.04 the mesa version is
17.2.4
, but the behaviour is the same).Any ideas? You can reproduce this in Docker by checking out this branch and calling
More history/details here: bwasty/gltf-viewer#12
The text was updated successfully, but these errors were encountered: