Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

saveDFG related error #676

Open
Affie opened this issue Oct 23, 2020 · 0 comments
Open

saveDFG related error #676

Affie opened this issue Oct 23, 2020 · 0 comments

Comments

@Affie
Copy link
Member

Affie commented Oct 23, 2020

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant