Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theres ars some broken erros when I run "using Plots" in julia script by key "shift + Enter" in Juno IDE #767

Open
prehonor opened this issue Sep 11, 2020 · 0 comments

Comments

@prehonor
Copy link

The content of julia script show:
using Plots
Base.@kwdef mutable struct Lorenz
dt::Float64 = 0.02
σ::Float64 = 10
ρ::Float64 = 28
β::Float64 = 8/3
x::Float64 = 1
y::Float64 = 1
z::Float64 = 1
end

function step!(l::Lorenz)
dx = l.σ * (l.y - l.x); l.x += l.dt * dx
dy = l.x * (l.ρ - l.z) - l.y; l.y += l.dt * dy
dz = l.x * l.y - l.β * l.z; l.z += l.dt * dz
end

attractor = Lorenz()

The errors are:
Press Enter to start a new session.
Starting Julia...
_
_ _ ()_ | Documentation: https://docs.julialang.org
() | () () |
_ _ | | __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ ` | |
| | || | | | (| | | Version 1.1.1 (2019-05-16)
/ |'|||'_| |
|__/ |

signal (11): Segmentation fault
in expression starting at /home/prehonor/.julia/packages/PlotThemes/4DCOG/src/juno_smart.jl:3
jl_compile_linfo at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
_ZL11emit_invokeR12jl_codectx_tP9jl_expr_tP11_jl_value_t.isra.0 at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
_ZL9emit_exprR12jl_codectx_tP11_jl_value_tl at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
_ZL18emit_ssaval_assignR12jl_codectx_tlP11_jl_value_t at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
_ZL13emit_functionP21_jl_method_instance_tP15_jl_code_info_tmP20_jl_llvm_functions_tPK13jl_cgparams_t.isra.0 at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_compile_linfo at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
_ZL11emit_invokeR12jl_codectx_tP9jl_expr_tP11_jl_value_t.isra.0 at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
_ZL9emit_exprR12jl_codectx_tP11_jl_value_tl at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
_ZL18emit_ssaval_assignR12jl_codectx_tlP11_jl_value_t at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
_ZL13emit_functionP21_jl_method_instance_tP15_jl_code_info_tmP20_jl_llvm_functions_tPK13jl_cgparams_t.isra.0 at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_compile_linfo at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_compile_method_internal at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_fptr_trampoline at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_invoke at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
#distinguishable_colors at ./none:0
unknown function (ip: 0x7f05a403c52e)
jl_fptr_trampoline at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_apply_generic at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
#expand_palette#3 at /home/prehonor/.julia/packages/PlotThemes/4DCOG/src/PlotThemes.jl:14
#expand_palette at ./none:0
unknown function (ip: 0x7f05a403a6ad)
jl_fptr_trampoline at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_apply_generic at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
do_call at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
eval_value at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
eval_body at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_interpret_toplevel_thunk_callback at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
unknown function (ip: 0xfffffffffffffffe)
unknown function (ip: 0x7f058cbc127f)
unknown function (ip: 0x72)
jl_interpret_toplevel_thunk at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_toplevel_eval_flex at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_parse_eval_all at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_load at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
include at ./boot.jl:326 [inlined]
include_relative at ./loading.jl:1038
include at ./sysimg.jl:29 [inlined]
include at /home/prehonor/.julia/packages/PlotThemes/4DCOG/src/PlotThemes.jl:3
jl_fptr_trampoline at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_apply_generic at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
do_call at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
eval_value at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
eval_body at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_interpret_toplevel_thunk_callback at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
unknown function (ip: 0xfffffffffffffffe)
unknown function (ip: 0x7f05b133b61f)
unknown function (ip: 0x7)
jl_interpret_toplevel_thunk at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_toplevel_eval_flex at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_toplevel_eval_in at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
eval at ./boot.jl:328 [inlined]
eval at /home/prehonor/.julia/packages/PlotThemes/4DCOG/src/PlotThemes.jl:3 [inlined]
#16 at /home/prehonor/.julia/packages/Requires/QnsKK/src/require.jl:85
jl_fptr_trampoline at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_apply_generic at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
err at /home/prehonor/.julia/packages/Requires/QnsKK/src/require.jl:42
jl_fptr_trampoline at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_invoke at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
#15 at /home/prehonor/.julia/packages/Requires/QnsKK/src/require.jl:84
jl_fptr_trampoline at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_apply_generic at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
withpath at /home/prehonor/.julia/packages/Requires/QnsKK/src/require.jl:32
#14 at /home/prehonor/.julia/packages/Requires/QnsKK/src/require.jl:83
jl_fptr_trampoline at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_apply_generic at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
listenpkg at /home/prehonor/.julia/packages/Requires/QnsKK/src/require.jl:15
macro expansion at /home/prehonor/.julia/packages/Requires/QnsKK/src/require.jl:81 [inlined]
init at /home/prehonor/.julia/packages/PlotThemes/4DCOG/src/PlotThemes.jl:62
jl_fptr_trampoline at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_apply_generic at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_module_run_initializer at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_init_restored_modules at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
_include_from_serialized at ./loading.jl:633
_require_search_from_serialized at ./loading.jl:713
_tryrequire_from_serialized at ./loading.jl:648
_require_search_from_serialized at ./loading.jl:702
_require at ./loading.jl:937
require at ./loading.jl:858
require at ./loading.jl:853
jl_apply_generic at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
eval_import_path.isra.0.constprop.0 at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_toplevel_eval_flex at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_parse_eval_all at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
include_string at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/lib/julia/sys.so (unknown line)
include_string at /home/prehonor/.julia/packages/CodeTools/VsjEq/src/eval.jl:30
unknown function (ip: 0x7f05a665a823)
jl_fptr_trampoline at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_apply_generic at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
#202 at /home/prehonor/.julia/packages/Atom/ZeFbA/src/eval.jl:119
withpath at /home/prehonor/.julia/packages/CodeTools/VsjEq/src/utils.jl:30
jl_fptr_trampoline at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_invoke at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
withpath at /home/prehonor/.julia/packages/Atom/ZeFbA/src/eval.jl:9 [inlined]
#201 at /home/prehonor/.julia/packages/Atom/ZeFbA/src/eval.jl:118 [inlined]
with_logstate at ./logging.jl:395
jl_fptr_trampoline at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_invoke at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
with_logger at ./logging.jl:491 [inlined]
#200 at /home/prehonor/.julia/packages/Atom/ZeFbA/src/eval.jl:117 [inlined]
hideprompt at /home/prehonor/.julia/packages/Atom/ZeFbA/src/repl.jl:127
macro expansion at /home/prehonor/.julia/packages/Atom/ZeFbA/src/eval.jl:116 [inlined]
eval at /home/prehonor/.julia/packages/Atom/ZeFbA/src/eval.jl:113
unknown function (ip: 0x7f05a664d3fb)
jl_fptr_trampoline at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_apply_generic at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_f__apply at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_f__apply_latest at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
#invokelatest#1 at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/lib/julia/sys.so (unknown line)
jl_apply_generic at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_f__apply at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
invokelatest at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/lib/julia/sys.so (unknown line)
jl_apply_generic at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_f__apply at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
#184 at /home/prehonor/.julia/packages/Atom/ZeFbA/src/eval.jl:41
jl_fptr_trampoline at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
jl_apply_generic at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
start_task at /nix/store/dka6d11qx64h5qwa26mjkyy5v6mjgiks-julia-1.1.1/bin/../lib/libjulia.so.1 (unknown line)
unknown function (ip: 0xffffffffffffffff)
Allocations: 60955306 (Pool: 60946332; Big: 8974); GC: 116

Julia has exited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant