Skip to content

[🐞] BoundsError in test_quadtrees.jl #156

@ctroupin

Description

@ctroupin

Describe the bug
The test test_quadtrees.jl fails with Julia 1.12.1, while it passes with 1.11.7

Environment

  • Julia version: 1.11 (works) and 1.12 (fails)
  • Operating system: Linux

Full screen output
Preferably obtained by setting ENV["JULIA_DEBUG"] = "DIVAnd"

** Full stack trace with error message**

ERROR: LoadError: TaskFailedException

    nested task error: BoundsError: attempt to access 110×1 Matrix{Int64} at index [1:110, 2]
    Stacktrace:
     [1] throw_boundserror(A::Matrix{Int64}, I::Tuple{Base.Slice{Base.OneTo{Int64}}, Int64})
       @ Base ./essentials.jl:15
     [2] checkbounds
       @ ./abstractarray.jl:699 [inlined]
     [3] view
       @ ./subarray.jl:214 [inlined]
     [4] macro expansion
       @ ~/.julia/packages/DIVAnd/ciY3B/src/Quadtrees.jl:645 [inlined]
     [5] (::DIVAnd.Quadtrees.var"#7#8"{DIVAnd.Quadtrees.var"#9#10"{}})(tid::Int64; onethread::Bool)
       @ DIVAnd.Quadtrees ./threadingconstructs.jl:276
     [6] #7
       @ ./threadingconstructs.jl:243 [inlined]
     [7] (::Base.Threads.var"#threading_run##0#threading_run##1"{DIVAnd.Quadtrees.var"#7#8"{}, Int64})()
       @ Base.Threads ./threadingconstructs.jl:177
Stacktrace:
 [1] threading_run(fun::DIVAnd.Quadtrees.var"#7#8"{DIVAnd.Quadtrees.var"#9#10"{}}, static::Bool)
   @ Base.Threads ./threadingconstructs.jl:196
 [2] macro expansion
   @ ./threadingconstructs.jl:213 [inlined]
 [3] checkduplicates(x1::Tuple{…}, value1::Vector{…}, x2::Tuple{…}, value2::Vector{…}, delta::Vector{…}, deltavalue::Float64; maxcap::Int64, label1::Vector{…}, factor::Int64)
   @ DIVAnd.Quadtrees ~/.julia/packages/DIVAnd/ciY3B/src/Quadtrees.jl:644
 [4] checkduplicates(x1::Tuple{Vector{…}, Vector{…}}, value1::Vector{Float64}, x2::Tuple{Vector{…}, Vector{…}}, value2::Vector{Float64}, delta::Vector{Float64}, deltavalue::Float64)
   @ DIVAnd.Quadtrees ~/.julia/packages/DIVAnd/ciY3B/src/Quadtrees.jl:615
 [5] top-level scope
   @ ~/ULiege/Tools/DIVAnd.jl/test/test_quadtrees.jl:139
 [6] include(mapexpr::Function, mod::Module, _path::String)
   @ Base ./Base.jl:307
 [7] top-level scope
   @ REPL[10]:1
in expression starting at /home/ctroupin/ULiege/Tools/DIVAnd.jl/test/test_quadtrees.jl:139
Some type information was truncated. Use `show(err)` to see complete types.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions