GR.jl icon indicating copy to clipboard operation
GR.jl copied to clipboard

process hang because of using GR

Open vtjnash opened this issue 4 years ago • 2 comments

Seems like SIGCHLD is getting blocked

julia> versioninfo()
Julia Version 1.7.0-DEV.913
Commit 77af742418* (2021-04-12 19:46 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.7.0)
  CPU: Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, skylake)

julia> using Plots

julia> plot(1:10)

julia> run(`true`)
[hung]

vtjnash avatar Apr 13 '21 05:04 vtjnash

Could you please try to start Julia this way:

#!/bin/sh
export GKS_NO_EXIT_HANDLER=1
/opt/julia/usr/bin/julia "$@"

jheinen avatar Apr 13 '21 14:04 jheinen

That does not seem to have any effect. Breakpointing in lldb, I see this is a "feature" of the system function, used here: https://github.com/sciapp/gr/blob/master/lib/gks/socket.c#L84

Perhaps that could change to using posix_spawn instead?

vtjnash avatar Apr 13 '21 15:04 vtjnash