Open xvries opened 1 month ago
#/hpc/home/xvries/.julia/packages/GLFW/wmoTL/src/glfw3.jl:529
function GetMonitorPos(monitor::Monitor)
x, y = Ref{Cint}(), Ref{Cint}()
ccall((:glfwGetMonitorPos, libglfw), Cvoid, (Monitor, Ref{Cint}, Ref{Cint}), monitor, x, y)
(x=x[], y=y[])
end
I guess Monitor is NULL here or something?
I did set:
ENV["DISPLAY"]=":0"
Well, doesn't mean Monitor
cant be null.
If you have a chance to debug this, I'd check monitor.handle
in the linked function:
https://github.com/JuliaGL/GLFW.jl/blob/master/src/glfw3.jl#L527-L531
Monitor.handle
equals Ptr{Nothing} @0x0000000000000
. So I guess its indeed null. Is this a problem in my X11 setup?
You can try to check for null and if null return (x=0, y=0)
and see if that fixes it.
I tried but the segfault reappears in the GetMonitorPhysicalSize
and after that in the GetVideoMode
for that last one I don't know what would be the defaults :).
Hm, maybe you can fix it closer to the root of the issue? E.g. check here for null: https://github.com/MakieOrg/Makie.jl/blob/master/GLMakie/src/glwindow.jl#L177-L188 And then just insert some defaults for the properties. I think we only need it for dpi/scalefactor, so the rest can be something like 0. I guess for dpi as a default we could use something like 90
Running into a segfault when precompiling GLMakie using X11 forwarding (headless server).
Any idea on how to solve?