Skip to content

Error in test, hidden #1369

@dehann

Description

@dehann

Think this error is occuring in testSpecialEuclidean2Mani.jl

Just run regular IIF tests and watch the output.

ArgumentError: reducing over an empty collection is not allowed
Stacktrace:
  [1] _empty_reduce_error()
    @ Base ./reduce.jl:299
  [2] reduce_empty(op::Function, #unused#::Type{Int64})
    @ Base ./reduce.jl:309
  [3] mapreduce_empty(#unused#::typeof(identity), op::Function, T::Type)
    @ Base ./reduce.jl:343
  [4] reduce_empty(op::Base.MappingRF{typeof(identity), typeof(max)}, #unused#::Type{Int64})
    @ Base ./reduce.jl:329
  [5] reduce_empty_iter
    @ ./reduce.jl:355 [inlined]
  [6] mapreduce_empty_iter(f::Function, op::Function, itr::Vector{Int64}, ItrEltype::Base.HasEltype)
    @ Base ./reduce.jl:351
  [7] _mapreduce
    @ ./reduce.jl:400 [inlined]
  [8] _mapreduce_dim
    @ ./reducedim.jl:318 [inlined]
  [9] #mapreduce#672
    @ ./reducedim.jl:310 [inlined]
 [10] mapreduce
    @ ./reducedim.jl:310 [inlined]
 [11] #_maximum#690
    @ ./reducedim.jl:878 [inlined]
 [12] _maximum
    @ ./reducedim.jl:878 [inlined]
 [13] #_maximum#689
  @ ./reducedim.jl:877 [inlined]
 [14] _maximum
    @ ./reducedim.jl:877 [inlined]
 [15] #maximum#687
    @ ./reducedim.jl:873 [inlined]
 [16] maximum
    @ ./reducedim.jl:873 [inlined]
 [17] propagateBelief(dfg::LightDFG{SolverParams, DFGVariable, DFGFactor}, destvar::DFGVariable{SpecialEuclidean2}, factors::Vector{DFGFactor}; solveKey::Symbol, dens::Vector{ManifoldKernelDensity}, N::Int64, needFreshMeasurements::Bool, dbg::Bool, logger::Base.CoreLogging.SimpleLogger)
    @ IncrementalInference ~/.julia/dev/IncrementalInference/src/GraphProductOperations.jl:48
 [18] predictbelief(dfg::LightDFG{SolverParams, DFGVariable, DFGFactor}, destvert::DFGVariable{SpecialEuclidean2}, factors::Vector{DFGFactor}; asPartial::Bool, kw::Base.Iterators.Pairs{Symbol, Any, NTuple{4, Symbol}, NamedTuple{(:solveKey, :logger, :dens, :N), Tuple{Symbol, Base.CoreLogging.SimpleLogger, Vector{ManifoldKernelDensity}, Int64}}})
    @ IncrementalInference ~/.julia/dev/IncrementalInference/src/GraphProductOperations.jl:67
 [19] predictbelief(dfg::LightDFG{SolverParams, DFGVariable, DFGFactor}, destlbl::Symbol, fctlbls::Vector{Symbol}; kw::Base.Iterators.Pairs{Symbol, Any, NTuple{4, Symbol}, NamedTuple{(:solveKey, :logger, :dens, :N), Tuple{Symbol, Base.CoreLogging.SimpleLogger, Vector{ManifoldKernelDensity}, Int64}}})
    @ IncrementalInference ~/.julia/dev/IncrementalInference/src/GraphProductOperations.jl:76
 [20] localProduct(dfg::LightDFG{SolverParams, DFGVariable, DFGFactor}, sym::Symbol; solveKey::Symbol, N::Int64, dbg::Bool, logger::Base.CoreLogging.SimpleLogger)
    @ IncrementalInference ~/.julia/dev/IncrementalInference/src/GraphProductOperations.jl:108
 [21] localProductAndUpdate!(dfg::LightDFG{SolverParams, DFGVariable, DFGFactor}, sym::Symbol, setkde::Bool, logger::Base.CoreLogging.SimpleLogger; solveKey::Symbol)
    @ IncrementalInference ~/.julia/dev/IncrementalInference/src/GraphProductOperations.jl:139
 [22] solveCliqDownFrontalProducts!(subfg::LightDFG{SolverParams, DFGVariable, DFGFactor}, cliq::IncrementalInference.TreeClique, opts::SolverParams, logger::Base.CoreLogging.SimpleLogger; solveKey::Symbol, MCIters::Int64)
    @ IncrementalInference ~/.julia/dev/IncrementalInference/src/CliqStateMachineUtils.jl:531
 [23] solveCliqDownFrontalProducts!
    @ ~/.julia/dev/IncrementalInference/src/CliqStateMachineUtils.jl:472 [inlined]
 [24] solveDown_StateMachine(csmc::CliqStateMachineContainer{BayesTreeNodeData, LightDFG{SolverParams, DFGVariable, DFGFactor}, LightDFG{SolverParams, DFGVariable, DFGFactor}, MetaBayesTree})
    @ IncrementalInference ~/.julia/dev/IncrementalInference/src/CliqueStateMachine.jl:694
 [25] (::StateMachine{CliqStateMachineContainer})(userdata::CliqStateMachineContainer{BayesTreeNodeData, LightDFG{SolverParams, DFGVariable, DFGFactor}, LightDFG{SolverParams, DFGVariable, DFGFactor}, MetaBayesTree}, timeout::Nothing; pollinterval::Float64, breakafter::Function, verbose::Bool, verbosefid::Base.TTY, verboseXtra::IncrementalInference.CliqStatus, iterlimit::Int64, injectDelayBefore::Nothing, recordhistory::Bool, housekeeping_cb::IncrementalInference.var"#469#471"{IncrementalInference.TreeClique, CliqStateMachineContainer{BayesTreeNodeData, LightDFG{SolverParams, DFGVariable, DFGFactor}, LightDFG{SolverParams, DFGVariable, DFGFactor}, MetaBayesTree}})
    @ FunctionalStateMachine ~/.julia/packages/FunctionalStateMachine/2JZFG/src/StateMachine.jl:82
 [26] initStartCliqStateMachine!(dfg::LightDFG{SolverParams, DFGVariable, DFGFactor}, tree::MetaBayesTree, cliq::IncrementalInference.TreeClique, timeout::Nothing; oldcliqdata::BayesTreeNodeData, verbose::Bool, verbosefid::Base.TTY, drawtree::Bool, show::Bool, incremental::Bool, limititers::Int64, upsolve::Bool, downsolve::Bool, recordhistory::Bool, delay::Bool, logger::Base.CoreLogging.SimpleLogger, solve_progressbar::ProgressMeter.ProgressUnknown, algorithm::Symbol, solveKey::Symbol)
    @ IncrementalInference ~/.julia/dev/IncrementalInference/src/CliqueStateMachine.jl:64
 [27] tryCliqStateMachineSolve!(dfg::LightDFG{SolverParams, DFGVariable, DFGFactor}, treel::MetaBayesTree, cliqKey::Int64, timeout::Nothing; oldtree::MetaBayesTree, verbose::Bool, verbosefid::Base.TTY, drawtree::Bool, limititers::Int64, downsolve::Bool, incremental::Bool, delaycliqs::Vector{Symbol}, recordcliqs::Vector{Symbol}, solve_progressbar::ProgressMeter.ProgressUnknown, algorithm::Symbol, solveKey::Symbol)
    @ IncrementalInference ~/.julia/dev/IncrementalInference/src/SolverAPI.jl:112
 [28] (::IncrementalInference.var"#522#525"{MetaBayesTree, Bool, Bool, Base.TTY, Bool, Bool, Vector{Symbol}, Vector{Symbol}, Symbol, Symbol, LightDFG{SolverParams, DFGVariable, DFGFactor}, MetaBayesTree, Nothing, ProgressMeter.ProgressUnknown, Int64, Int64})()
    @ IncrementalInference ./task.jl:411

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions