It really seems like there’s a bug in Plots/GR at the moment, or my setup is somehow broken. Could someone else try to reproduce this?
julia> using Plots
julia> x = 1:5; y = 1:10; z = [x + y for x ∈ 1:5, y ∈ 1:10];
julia> surface(x, y, z') # fine
# Close the Gtk window
julia> surface(x, y, z')
read: No error
Error showing value of type Plots.Plot{Plots.GRBackend}:
ERROR: GR3 error (/workspace/srcdir/gr/lib/gr3/gr3.c, l. 1886): invalid value
(@v1.7) pkg> st Plots
Status `C:\Users\ngudat\.julia\environments\v1.7\Project.toml`
[91a5bcdd] Plots v1.25.6
(@v1.7) pkg> st -m GR
Status `C:\Users\ngudat\.julia\environments\v1.7\Manifest.toml`
[28b8d3ca] GR v0.63.1