I can run my simulation fine from the REPL.
You can find my code at: GitHub - aenarete/KiteControllers.jl: Controllers for airborne wind energy systems
But if I run it from bash
with the command:
julia --project -t 7,1 -e "push!(LOAD_PATH,joinpath(pwd(),\"src\"));include(\"./examples/autopilot.jl\")"
I get the following warning at the end of the simulation:
┌ Warning: error closing screen
│ exception =
│ GLFWError (NOT_INITIALIZED): The GLFW library is not initialized
│ Stacktrace:
│ [1] _ErrorCallbackWrapper(code::Int32, description::Cstring)
│ @ GLFW ~/.julia/packages/GLFW/BWxfF/src/callback.jl:43
│ [2] HideWindow
│ @ ~/.julia/packages/GLFW/BWxfF/src/glfw3.jl:604 [inlined]
│ [3] set_visibility!
│ @ ~/.julia/packages/GLFW/BWxfF/src/glfw3.jl:376 [inlined]
│ [4] set_screen_visibility!
│ @ ~/.julia/packages/GLMakie/QyIWu/src/screen.jl:402 [inlined]
│ [5] set_screen_visibility!
│ @ ~/.julia/packages/GLMakie/QyIWu/src/screen.jl:399 [inlined]
│ [6] close(screen::GLMakie.Screen{GLFW.Window}; reuse::Bool)
│ @ GLMakie ~/.julia/packages/GLMakie/QyIWu/src/screen.jl:625
│ [7] close
│ @ ~/.julia/packages/GLMakie/QyIWu/src/screen.jl:623 [inlined]
│ [8] renderloop(screen::GLMakie.Screen{GLFW.Window})
│ @ GLMakie ~/.julia/packages/GLMakie/QyIWu/src/screen.jl:978
│ [9] (::GLMakie.var"#69#70"{GLMakie.Screen{GLFW.Window}})()
│ @ GLMakie ~/.julia/packages/GLMakie/QyIWu/src/screen.jl:824
└ @ GLMakie ~/.julia/packages/GLMakie/QyIWu/src/screen.jl:980
Any idea how to get rid of this warning?