Just guessing based on the stacktrace: maybe the simulation stopped before a single episode ended and therefore an empty vector is passed to UnicodePlots, which produces this error message when you try e.g. using UnicodePlots; Plot(Float64[], Float64[])
. Did you try to omit the plot? Maybe just adding a semicolon after the run
function would be sufficient to suppress the plot and the error message?