GLMakie heatmap and certain input matrix sizes

Hi,

I’m trying to do the following:

using GLMakie
m = randn(45825,3)
r,c = size(m)
fig = Figure()
ax = Axis(fig[1,1])
h = heatmap!(ax,1:r,1:c,m)

But I get this error in my heatmap call:

UNSUPPORTED (log once): POSSIBLE ISSUE: unit 0 GLD_TEXTURE_INDEX_1D is unloadable and bound to sampler type (Float) - using zero texture because texture unloadable
Heatmap{Tuple{Vector{Float64}, Vector{Float64}, Matrix{Float32}}}

Any ideas on what could be causing this issue? It works perfectly fine with other sizes e.g. m = randn(12800,3).

Thanks a lot for your help!

I see a different error:

julia> m = randn(16_383, 3);

julia> r, c = size(m);

julia> heatmap(1:r, 1:c, m) # works

julia> m = randn(16_384, 3);

julia> r, c = size(m);

julia> heatmap(1:r, 1:c, m)
Error showing value of type Makie.FigureAxisPlot:

SYSTEM (REPL): showing an error caused an error
ERROR: 1-element ExceptionStack:
Failed to resolve gl_renderobject:
(...)
Due to ERROR: glTexImage 1D: width too large. Width: 16385

so it seems to be a restriction on the maximum input size.

1 Like

I get the message: “ERROR: glTexImage 1D: width too large. Width: 45826”.

A workaround, consisting in tiling the plot, is provided in the manual:

1 Like