-
Notifications
You must be signed in to change notification settings - Fork 81
Closed
Description
Is there a way to use GR without graphical server? At the moment, all my attempts lead to a segfault.
MWE with a clean Debian server with a fresh Julia 1.6.5 install.
hugo@vm:~/julia$ julia-1.6.5/bin/julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.6.5 (2021-12-19)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
(@v1.6) pkg> add GR
Updating registry at `~/.julia/registries/General`
Resolving package versions...
Updating `~/.julia/environments/v1.6/Project.toml`
[28b8d3ca] + GR v0.63.0
No Changes to `~/.julia/environments/v1.6/Manifest.toml`
julia> using GR
julia> histogram(randn(100))
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: linuxfb, minimal, offscreen, vnc, xcb.
Aborted
connect: Connection refused
GKS: can't connect to GKS socket application
signal (11): Segmentation fault
in expression starting at REPL[3]:1
gks_drv_socket at /home/hugo/.julia/artifacts/2e60af65a7f0e9e12670a01f780a09b94c86facf/lib/libGR.so (unknown line)
gks_ddlk.isra.0 at /home/hugo/.julia/artifacts/2e60af65a7f0e9e12670a01f780a09b94c86facf/lib/libGR.so (unknown line)
gks_open_ws at /home/hugo/.julia/artifacts/2e60af65a7f0e9e12670a01f780a09b94c86facf/lib/libGR.so (unknown line)
initgks at /home/hugo/.julia/artifacts/2e60af65a7f0e9e12670a01f780a09b94c86facf/lib/libGR.so (unknown line)
gr_clearws at /home/hugo/.julia/artifacts/2e60af65a7f0e9e12670a01f780a09b94c86facf/lib/libGR.so (unknown line)
clearws at /home/hugo/.julia/packages/GR/ziR7T/src/GR.jl:671 [inlined]
plot_data at /home/hugo/.julia/packages/GR/ziR7T/src/jlgr.jl:1221
plot_data at /home/hugo/.julia/packages/GR/ziR7T/src/jlgr.jl:1198 [inlined]
#histogram#50 at /home/hugo/.julia/packages/GR/ziR7T/src/jlgr.jl:2016
histogram at /home/hugo/.julia/packages/GR/ziR7T/src/jlgr.jl:2010
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2237 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2419
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1703 [inlined]
do_call at /buildworker/worker/package_linux64/build/src/interpreter.c:115
eval_value at /buildworker/worker/package_linux64/build/src/interpreter.c:204
eval_stmt_value at /buildworker/worker/package_linux64/build/src/interpreter.c:155 [inlined]
eval_body at /buildworker/worker/package_linux64/build/src/interpreter.c:562
jl_interpret_toplevel_thunk at /buildworker/worker/package_linux64/build/src/interpreter.c:670
jl_toplevel_eval_flex at /buildworker/worker/package_linux64/build/src/toplevel.c:877
jl_toplevel_eval_flex at /buildworker/worker/package_linux64/build/src/toplevel.c:825
jl_toplevel_eval_in at /buildworker/worker/package_linux64/build/src/toplevel.c:929
eval at ./boot.jl:360 [inlined]
eval_user_input at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:139
repl_backend_loop at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:200
start_repl_backend at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:185
#run_repl#42 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:317
run_repl at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:305
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2237 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2419
#875 at ./client.jl:387
jfptr_YY.875_26896.clone_1 at /home/hugo/julia/julia-1.6.5/lib/julia/sys.so (unknown line)
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2237 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2419
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1703 [inlined]
jl_f__call_latest at /buildworker/worker/package_linux64/build/src/builtins.c:714
#invokelatest#2 at ./essentials.jl:708 [inlined]
invokelatest at ./essentials.jl:706 [inlined]
run_main_repl at ./client.jl:372
exec_options at ./client.jl:302
_start at ./client.jl:485
jfptr__start_38548.clone_1 at /home/hugo/julia/julia-1.6.5/lib/julia/sys.so (unknown line)
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2237 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2419
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1703 [inlined]
true_main at /buildworker/worker/package_linux64/build/src/jlapi.c:560
repl_entrypoint at /buildworker/worker/package_linux64/build/src/jlapi.c:702
main at /buildworker/worker/package_linux64/build/cli/loader_exe.c:51
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
_start at julia-1.6.5/bin/julia (unknown line)
Allocations: 17888260 (Pool: 17882328; Big: 5932); GC: 25
Segmentation fault
Metadata
Metadata
Assignees
Labels
No labels