Open goretkin opened 3 years ago
with the latest versions, I can only ever get a segfault (which I think is a problem with macOS. other platforms will probably throw StackOverflowError
without the process crashing)
[13f3f980] CairoMakie v0.6.5
[ee78f7c6] Makie v0.15.2
I haven't looked at the code, but a good trick to prevent stack overflows is something like
foo(x::T) = ...
foo(x) = foo(convert(T, x)::T)
The convert(T, x)::T
ensures if you don't get a T
out, you get an immediate error rather than foo(x)
endlessly calling itself.
This could be fixed by adding the relevant methods for `Makie.to_color()
The functions for it are here: https://github.com/MakieOrg/Makie.jl/blob/2b5931ee92c00603a669d02b8103bff49315024b/src/conversions.jl#L908-L919
causes a stack overflow (and sometimes a segfault)