DistributedFactorGraphs.jl icon indicating copy to clipboard operation
DistributedFactorGraphs.jl copied to clipboard

saveDFG related error

Open Affie opened this issue 5 years ago • 0 comments

This error came up with IIF and dbg on with subgraph save. Haven't looked at it, just logging.

BoundsError: attempt to access 0-element Array{UInt8,1} at index [115]
setindex! at ./array.jl:847 [inlined]
write at ./iobuffer.jl:451 [inlined]
write(::Base.GenericIOBuffer{Array{UInt8,1}}, ::Char) at ./io.jl:676
write(::Base.GenericIOBuffer{Array{UInt8,1}}, ::String; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /home/johan/.julia/packages/JSON2/ld4Kq/src/strings.jl:96
write at /home/johan/.julia/packages/JSON2/ld4Kq/src/strings.jl:96 [inlined]
macro expansion at /home/johan/.julia/packages/JSON2/ld4Kq/src/write.jl:73 [inlined]
write(::Base.GenericIOBuffer{Array{UInt8,1}}, ::PackedVariableNodeData; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /home/johan/.julia/packages/JSON2/ld4Kq/src/write.jl:94
write at /home/johan/.julia/packages/JSON2/ld4Kq/src/write.jl:94 [inlined]
write(::Base.GenericIOBuffer{Array{UInt8,1}}, ::Dict{Symbol,PackedVariableNodeData}; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /home/johan/.julia/packages/JSON2/ld4Kq/src/write.jl:24
write at /home/johan/.julia/packages/JSON2/ld4Kq/src/write.jl:17 [inlined]
#write#5 at /home/johan/.julia/packages/JSON2/ld4Kq/src/write.jl:14 [inlined]
write at /home/johan/.julia/packages/JSON2/ld4Kq/src/write.jl:14 [inlined]
packVariable(::LightDFG{SolverParams,DFGVariable,DFGFactor}, ::DFGVariable{ContinuousScalar}) at /home/johan/.julia/dev/DistributedFactorGraphs/src/services/Serialization.jl:118
saveDFG(::String, ::LightDFG{SolverParams,DFGVariable,DFGFactor}) at /home/johan/.julia/dev/DistributedFactorGraphs/src/FileDFG/services/FileDFG.jl:44
saveDFG at /home/johan/.julia/dev/DistributedFactorGraphs/src/FileDFG/services/FileDFG.jl:69 [inlined]
_dbgCSMSaveSubFG(::CliqStateMachineContainer{BayesTreeNodeData,LightDFG{SolverParams,DFGVariable,DFGFactor},LightDFG{SolverParams,DFGVariable,DFGFactor},BayesTree}, ::String) at /home/johan/.julia/dev/IncrementalInference/src/CliqStateMachineUtils.jl:113
buildCliqSubgraph_StateMachine(::CliqStateMachineContainer{BayesTreeNodeData,LightDFG{SolverParams,DFGVariable,DFGFactor},LightDFG{SolverParams,DFGVariable,DFGFactor},BayesTree}) at /home/johan/.julia/dev/IncrementalInference/src/CliqueStateMachine.jl:120
(::StateMachine{CliqStateMachineContainer})(::CliqStateMachineContainer{BayesTreeNodeData,LightDFG{SolverParams,DFGVariable,DFGFactor},LightDFG{SolverParams,DFGVariable,DFGFactor},BayesTree}, ::Nothing; pollinterval::Float64, breakafter::Function, verbose::Bool, verbosefid::Base.TTY, verboseXtra::IncrementalInference.CliqStatus, iterlimit::Int64, injectDelayBefore::Nothing, recordhistory::Bool, housekeeping_cb::IncrementalInference.var"#393#395"{IncrementalInference.TreeClique}) at /home/johan/.julia/packages/FunctionalStateMachine/2JZFG/src/StateMachine.jl:82
initStartCliqStateMachine!(::LightDFG{SolverParams,DFGVariable,DFGFactor}, ::BayesTree, ::IncrementalInference.TreeClique, ::Int64; oldcliqdata::BayesTreeNodeData, verbose::Bool, 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) at /home/johan/.julia/dev/IncrementalInference/src/CliqueStateMachine.jl:61
tryCliqStateMachineSolve!(::LightDFG{SolverParams,DFGVariable,DFGFactor}, ::BayesTree, ::Int64; oldtree::BayesTree, verbose::Bool, drawtree::Bool, limititers::Int64, downsolve::Bool, incremental::Bool, delaycliqs::Array{Symbol,1}, recordcliqs::Array{Symbol,1}, solve_progressbar::ProgressMeter.ProgressUnknown, algorithm::Symbol) at /home/johan/.julia/dev/IncrementalInference/src/SolverAPI.jl:101
(::IncrementalInference.var"#449#451"{BayesTree,Bool,Bool,Int64,Bool,Bool,Array{Symbol,1},Array{Symbol,1},Symbol,LightDFG{SolverParams,DFGVariable,DFGFactor},BayesTree,ProgressMeter.ProgressUnknown,Int64})() at ./threadingconstructs.jl:169

Affie avatar Oct 23 '20 17:10 Affie