Open maleadt opened 2 years ago
I think for this you could use the xvfb-run
script like it is done in the CI: https://github.com/JuliaPlots/GLMakie.jl/blob/8954fc34354a09ceb11159a8e8e35429c05a710f/.github/workflows/ci.yml#L41-L42
That shouldn't be necessary; I'm actually running an X server, while xvfb
starts a new one that isn't backed by the actual GPU I want to use. The problem is that GLMakie looks up the monitor, while there isn't one.
When running on a headless server (with an X server and everything, but no active monitor), GLMakie errors when rendering a plot using
save
as follows:While this should probably error properly, it could also be supported by using a fallback DPI when no monitor is connected.