I’m on my Windows laptop. And the GLMakie reports an Error.
julia> f = Figure();
julia> # do some plots to f, without ERROR here, but next:
julia> f
Error showing value of type Figure:
SYSTEM (REPL): showing an error caused an error
ERROR: 1-element ExceptionStack:
Failed to resolve gl_renderobject:
[ComputeEdge] gl_renderobject = #register_robj!##0((positions_transformed_f32c, space, scaled_color, alpha_colormap, scaled_colorrange, gl_indices, gl_valid_vertex, gl_total_length, gl_last_length, uniform_pattern, uniform_pattern_length, linecap, gl_miter_limit, joinstyle, uniform_linewidth, scene_origin, model_f32c, lowclip_color, highclip_color, nan_color, debug, uniform_clip_planes, uniform_num_clip_planes, depth_shift, visible, fxaa, resolution, projection, projectionview, view, upvector, eyeposition, view_direction, ), changed, cached)
@ C:\Users\34682\.julia\packages\GLMakie\jOD8L\src\plot-primitives.jl:245
[ComputeEdge] positions_transformed_f32c = #364((positions_transformed, model, f32c, space, ), changed, cached)
@ C:\Users\34682\.julia\packages\Makie\kJl0u\src\compute-plots.jl:331
with edge inputs:
positions_transformed = 1-dimensional DenseAxisArray{Point{2, Float64},1,...} with index sets:
Dimension 1, 1:4
And data, a 4-element Vector{Point{2, Float64}}:
[1.0, 1.0]
[2.0, 0.0]
[3.0, 0.0]
[4.0, 0.0]
model = [1.0 0.0 0.0 0.0; 0.0 1.0 0.0 0.0; 0.0 0.0 1.0 0.0; 0.0 0.0 0.0 1.0]
f32c = Makie.LinearScaling([1.0, 1.0, 1.0], [0.0, 0.0, 0.0])
space = :data
Triggered by update of:
arg1, transform_func, f32c, space, arg2 or model
Due to ERROR: MethodError: similar(::JuMP.Containers.DenseAxisArray{Point{…}, 1, Tuple{…}, Tuple{…}}, ::Type{Point{…}}, ::Tuple{UnitRange{…}}) is ambiguous.
Also, I find this behavior a bit primitive:
julia> s.x
1-dimensional DenseAxisArray{Float64,1,...} with index sets:
Dimension 1, [1, 2, 3, 4]
And data, a 4-element Vector{Float64}:
1.0
1.0
1.0
1.0
julia> [i for i = s.x]
ERROR: MethodError: no method matching similar(::Type{Vector{Float64}}, ::Tuple{Vector{Int64}})
The function `similar` exists, but no method is defined for this combination of argument types.
How to fix this Error, or is this a behavior specific to Windows?