I’m having a problem with a surface plot, using Plots.jl and the gr() backend. A minimal example is
using Plots
gr()
#plotlyjs()
x = range(0.9, length=100, stop=1.1)
y= range(0.9, length=100, stop=1.1)
p1 = surface(x, y, (x,y)->x+y)
with the plotlyjs() backend, the plot appears as expected, using the REPL, or VS Code. With the gr() backend, I get a crash out of julia, with the following message:
julia> include("MWE.jl")
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
X Error: BadMatch
Request Major code 152 (GLX)
Request Minor code 26 ()
Error Serial #45
Current Serial #45
❯
I am using Julia v1.7.2, GR v0.64.3, Plots v1.29.0. I recently installed and then removed Nvidia drivers. This is Debian testing. I’m not sure if this is a problem with my Linux installation, or with GR.