JuliaMultimedia / SimpleDirectMediaLayer.jl

SDL2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Window does not close after the program quits when executed using include from REPL

shg opened this issue · comments

commented

I am testing this package on macOS.

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

It seems to hang at SDL_Quit()

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.