Closed felixcremer closed 7 months ago
That's a really weird error.... I can't explain it unless some package incorrectly overloaded base array methods... Note the stack trace:
ERROR: MethodError: no method matching mean(::SubArray{Float64, 2, Matrix{Float64}, Tuple{UnitRange{Int64}, UnitRange{Int64}}, false})
...
Stacktrace:
[1] downsample(img::Matrix{Float64}, xsize::Int64, ysize::Int64)
So there is an error in downsample
which gets called with a completely normal array.
This function gets called in font rendering code, which only gets called if a font + glyph hasn't been added to the texture atlas already (most glyphs + default fonts are already in there).
So I suspect, the recipe renders a new glyph, and somewhere some incorrectly overloaded array methods break the font rendering. It could be a Makie problem, but the function that errors hasn't been changed in ages and most dependencies for it neither.
How can there be no mean
method for SubArray
?
Where is the AbstractArray
method??
I restarted my computer and now I can't reproduce the issue anymore. I am going to close this for now until I get a proper reproducer.
This was a Revise bug which deleted the fallback. This is fixed in Revise 3.5.14.
Ahh yes I've been getting that with other things too
I am trying to plot a band from a geotiff that I opened with Rasters. The plot command works but when I try to show the Figure it fails with the error below. This seems to have nothing to do with the actual data but is somewhere in the font handling code. I am opening the issue here, because it is not happening when I plot a normal Array. The underlying data is the testdata from ArchGDAL.
@SimonDanisch maybe you have some idea?