You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Window does not close after the program quits when executed using include from REPL #67
I can run the sample program basic.jl by include("basic.jl") and it works, but I cannot close the window at the end.
When I click the close button of the window or hit Command-Q, the program ends and REPL returns to the julia> prompt. But the window titled "Game" remains open, and the beach ball mouse cursor is rotating on the window.
Is this expected behavior?
julia> versioninfo()
Julia Version 1.9.2
Commit e4ee485e909 (2023-07-05 09:39 UTC)
Platform Info:
OS: macOS (arm64-apple-darwin22.4.0)
CPU: 10 × Apple M1 Max
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-14.0.6 (ORCJIT, apple-m1)
Threads: 4 on 8 virtual cores
When I run it in the REPL in VSCode, a print statement after SDL_Quit() prints, but then it hangs after that. Interestingly, if I run it in the debugger, it quits successfully.
Activity
mpeters2 commentedon Dec 6, 2023
It seems to hang at SDL_Quit()
mpeters2 commentedon Dec 10, 2023
When I run it in the REPL in VSCode, a print statement after SDL_Quit() prints, but then it hangs after that. Interestingly, if I run it in the debugger, it quits successfully.
JohnEdChristensen commentedon Aug 15, 2026
Also ran into this issue. I believe it is related to this libsdl-org/SDL#10081.
Modifying
examples/basic.jlto keep handling events for 250 ms after destroying the window caused the window to close as expected for me.