jheinen / GR.jl

Plotting for Julia based on GR, a framework for visualisation applications
Other
354 stars 76 forks source link

GR crashing on OS X #231

Open dlfivefifty opened 5 years ago

dlfivefifty commented 5 years ago
julia> versioninfo()
Julia Version 1.1.0
Commit 80516ca202 (2019-01-21 21:24 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.5.0)
  CPU: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
Environment:
  JULIA_NUM_THREADS = 4

(v1.1) pkg> add GR
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
 Resolving package versions...
  Updating `~/.julia/environments/v1.1/Project.toml`
  [28b8d3ca] + GR v0.40.0
  Updating `~/.julia/environments/v1.1/Manifest.toml`
 [no changes]

julia> using GR

julia> plot(1:10)
2019-06-12 13:27:50.560 julia[19032:3306225] *** Terminating app due to uncaught exception 'GKSTermHasDiedException', reason: 'The connection to GKSTerm has timed out.'
*** First throw call stack:
(
)
libc++abi.dylib: terminating with uncaught exception of type NSException

signal (6): Abort trap: 6
in expression starting at no file:0
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 19794066 (Pool: 19790298; Big: 3768); GC: 46
Abort trap: 6
jamie-arcc commented 5 years ago

I couldn't replicate. What version of macOS are you using?

╭─jamie@onizuka ~
╰─$ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.1.0 (2019-01-21)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> versioninfo()
Julia Version 1.1.0
Commit 80516ca202 (2019-01-21 21:24 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin14.5.0)
  CPU: Intel(R) Core(TM) m3-7Y32 CPU @ 1.10GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)

julia> using GR

julia> plot(1:10)

julia>
Screen Shot 2019-06-17 at 14 47 52
dlfivefifty commented 5 years ago

Mojave 10.14.5.

I tried again on a fresh .julia and it is still there.

jheinen commented 5 years ago

What's the output of the following command(s):

using GR
p = joinpath(ENV["GRDIR"], "lib", "libGR.so")
run(`otool -L $p`)
dlfivefifty commented 5 years ago
julia> using GR

julia> p = joinpath(ENV["GRDIR"], "lib", "libGR.so")
"/Users/solver/.julia/packages/GR/TMylY/src/../deps/gr/lib/libGR.so"

julia> run(`otool -L $p`)
/Users/solver/.julia/packages/GR/TMylY/src/../deps/gr/lib/libGR.so:
    @rpath/libGR.so (compatibility version 0.0.0, current version 0.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.200.5)
Process(`otool -L /Users/solver/.julia/packages/GR/TMylY/src/../deps/gr/lib/libGR.so`, ProcessExited(0))
jheinen commented 5 years ago

Could you please try to remove the run-time (/Users/solver/.julia/packages/GR/TMylY/src/../deps/gr) and rebuild GR:

ENV["GRDIR"]=""
] build GR
dlfivefifty commented 5 years ago

still crashes

jheinen commented 5 years ago

Do you have any environment variables that affect the load process, e.g. DYLD_LIBRARY_PATH, DYLD_FALLBACK_FRAMEWORK_PATH or DYLD_FALLBACK_LIBRARY_PATH?

I am also wondering about the libSystem version on your system - should be /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.250.1) on Mojave 10.14.5 ...

dlfivefifty commented 5 years ago

I have none of those defined...

dlfivefifty commented 5 years ago

Hmm, it somehow fixed itself, I'm not sure what could have changed.

dlfivefifty commented 4 years ago

Ha, it now un-fixed itself and is crashing again! 🤦‍♂️

julia> using GR

julia> plot(1:10)
2019-10-04 11:53:27.060 julia[58528:28708754] *** Terminating app due to uncaught exception 'GKSTermHasDiedException', reason: 'The connection to GKSTerm has timed out.'
*** First throw call stack:
(
)
libc++abi.dylib: terminating with uncaught exception of type NSException

signal (6): Abort trap: 6
in expression starting at REPL[3]:1
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 16393896 (Pool: 16390613; Big: 3283); GC: 37
Abort trap: 6