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
Crashes when trying to render STL file on headless system #3368
Comments
What do you mean render STL files? I don't know the exact commands needed, but I believe the test servers rely on this script, which might help at least as a reference: |
Erm...
Of course I'm trying to render STL files from
I know how to work around this. But my point is it shouldn't be needed in the first place, as no window is opened. I haven't had a look at the code, all I can tell is to me as a user it is not obvious why an X server would be needed. The X server is also needed for If X11 is really needed for |
Yes, PNG needs X11 connection for the OpenGL context. There's no support for creating EGL offscreen contexts. STL should not require the X11 connection. So the bug seems to be that PNG crashes when the OpenGL context creation fails. A quick test with |
Just tried again, appears to work indeed.
Why doesn't the tool just abort at this point? It continues to run and then just segfaults. |
How might this be handled on a Windows build? Does it also require DISPLAY to be set? |
Windows uses WGL via https://github.com/openscad/openscad/blob/master/src/OffscreenContextWGL.cc |
We now support rendering using EGL, eliminating the need for X11. Requirement is that OpenCSG is >= 1.6.0. |
I'm trying to render STL files headlessly. However, OpenSCAD just segfaults.
Log:
Command:
openscad -o "$out_file" "$in_file" --viewall
Version:
OpenSCAD version 2020.06.22
(I've built an AppImage of OpenSCAD recently, I could get a commit hash if needed.)Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: