julia: UndefRefError: access to undefined reference

Viewed 380

I'm trying to create a POMDP model and solve it. But during the solving process, I get this error:

  Got exception outside of a @test
  UndefRefError: access to undefined reference
  Stacktrace:
    [1] getindex
      @ ./array.jl:801 [inlined]
    [2] iterate
      @ ./array.jl:777 [inlined]
    [3] iterate
      @ ./iterators.jl:159 [inlined]
    [4] write(io::IOStream, pomdp::AccPOMDP)
      @ POMDPFiles ~/.julia/packages/POMDPFiles/vOfxh/src/write.jl:64
    [5] #3
      @ ~/.julia/packages/POMDPSolve/LzAMF/src/solver.jl:175 [inlined]
    [6] open(::POMDPSolve.var"#3#4"{AccPOMDP}, ::String, ::Vararg{String, N} where N; kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
      @ Base ./io.jl:330
    [7] open
      @ ./io.jl:328 [inlined]
    [8] solve(solver::POMDPSolveSolver, pomdp::AccPOMDP)
      @ POMDPSolve ~/.julia/packages/POMDPSolve/LzAMF/src/solver.jl:174
    [9] macro expansion
      @ ~/jl/acc/acc_dev.jl:556 [inlined]
   [10] macro expansion
      @ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Test/src/Test.jl:1151 [inlined]
   [11] top-level scope
      @ ~/jl/acc/acc_dev.jl:546
   [12] include(mod::Module, _path::String)
      @ Base ./Base.jl:386
   [13] exec_options(opts::Base.JLOptions)
      @ Base ./client.jl:285
   [14] _start()
      @ Base ./client.jl:485

I'm not so familiar with the Julia Stacktrace, so could you please help me fix this problem?

1 Answers

Caused by stateindex(...) and states(...) wrong implementation in my POMDP model. But after I fix this ans start to solve the problem, the solving just kept run and finally failed. Just want to complain, Julia POMDP is really hard to use in reality...

Related