Giter Club home page Giter Club logo

Comments (1)

mfsch avatar mfsch commented on June 19, 2024

I just came across what I assume to be the same bug when using heatmap(x, y, values). The error only appears when the x and y arguments are provided and the element type of the values includes Missing. I can reproduce it in a fresh environment and downgrading to Makie 0.19 fixes the issue, so it looks like the bug was introduced recently.

julia> heatmap(1:8, 1:8, zeros(Union{Missing,Float64}, 8, 8));
ERROR: StackOverflowError:
Stacktrace:
  [1] splitprec(::Type{Float64}, i::Int128)
    @ Base ./twiceprecision.jl:22
  [2] TwicePrecision
    @ Base ./twiceprecision.jl:211 [inlined]
  [3] TwicePrecision
    @ Base ./twiceprecision.jl:224 [inlined]
  [4] Base.TwicePrecision{Float64}(nd::Tuple{Int128, Int128}, nb::Int64)
    @ Base ./twiceprecision.jl:236
  [5] steprangelen_hp(::Type{Float64}, ref::Tuple{Int128, Int128}, step::Tuple{Int128, Int128}, nb::Int64, len::Int64, offset::Int64)
    @ Base ./twiceprecision.jl:344
  [6] _linspace(::Type{Float64}, start_n::Int64, stop_n::Int64, len::Int64, den::Int64)
    @ Base ./twiceprecision.jl:732
  [7] range_start_stop_length(start::Float64, stop::Float64, len::Int64)
    @ Base ./twiceprecision.jl:662
  [8] _range
    @ ./range.jl:166 [inlined]
  [9] range
    @ ./range.jl:147 [inlined]
 [10] to_linspace(interval::StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64}, N::Int64)
    @ Makie ~/.julia/packages/Makie/fyNiH/src/conversions.jl:709
 [11] convert_arguments(P::CellGrid, x::StepRangeLen{…}, y::StepRangeLen{…}, z::Matrix{…}) (repeats 58109 times)
    @ Makie ~/.julia/packages/Makie/fyNiH/src/conversions.jl:364
 [12] convert_arguments(P::CellGrid, x::UnitRange{Int64}, y::UnitRange{Int64}, z::Matrix{Union{Missing, Float64}})
    @ Makie ~/.julia/packages/Makie/fyNiH/src/conversions.jl:364
 [13] convert_arguments(::Type{Heatmap}, ::UnitRange{Int64}, ::Vararg{Any}; kw::@Kwargs{})
    @ Makie ~/.julia/packages/Makie/fyNiH/src/conversions.jl:10
 [14] convert_arguments
    @ Makie ~/.julia/packages/Makie/fyNiH/src/conversions.jl:7 [inlined]
 [15] (Heatmap)(args::Tuple{UnitRange{Int64}, UnitRange{Int64}, Matrix{Union{Missing, Float64}}}, plot_attributes::Dict{Symbol, Any})
    @ Makie ~/.julia/packages/Makie/fyNiH/src/interfaces.jl:139
 [16] _create_plot(::Function, ::Dict{Symbol, Any}, ::UnitRange{Int64}, ::Vararg{Any})
    @ Makie ~/.julia/packages/Makie/fyNiH/src/figureplotting.jl:248
 [17] heatmap(::UnitRange{Int64}, ::Vararg{Any}; kw::@Kwargs{})
    @ MakieCore ~/.julia/packages/MakieCore/5nuEY/src/recipes.jl:175
 [18] top-level scope
    @ REPL[4]:1
Some type information was truncated. Use `show(err)` to see complete types.

from makie.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.