Heatmap weird error in Plots.jl

Hi ,

I would like to ask for your support cause I am getting an error I have never seen before.

My code…


using Plots
gr()

xs = [string("x", i) for i = 1:10]
ys = [string("y", i) for i = 1:4]
z = float((1:4) * reshape(1:10, 1, :))
heatmap(xs, ys, z, aspect_ratio = 1)

I obtain this error

Illegal inttoptr
      %33 = ptrtoint double addrspace(13)* %32 to i64
Illegal inttoptr
      %52 = inttoptr i64 %51 to i8 addrspace(13)*

signal (6): Aborted
in expression starting at none:0
gsignal at /usr/bin/../lib/x86_64-linux-gnu/libc.so.6 (unknown line)
abort at /usr/bin/../lib/x86_64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 0x7fd215f7cd04)
_ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE at /usr/bin/../lib/x86_64-linux-gnu/libLLVM-8.so.1 (unknown line)
_ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE at /usr/bin/../lib/x86_64-linux-gnu/libLLVM-8.so.1 (unknown line)
_ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE at /usr/bin/../lib/x86_64-linux-gnu/libLLVM-8.so.1 (unknown line)
unknown function (ip: 0x7fd216066ac1)
unknown function (ip: 0x7fd2160692d8)
unknown function (ip: 0x7fd2160698cd)
unknown function (ip: 0x7fd215fa4b4a)
unknown function (ip: 0x7fd215fd5ed3)
unknown function (ip: 0x7fd215ffb84b)
jl_invoke at /usr/bin/../lib/x86_64-linux-gnu/libjulia.so.1 (unknown line)
permutedims at ./multidimensional.jl:1397 [inlined]
transpose_z at /home/vmh/.julia/packages/Plots/LWw1t/src/utils.jl:353
unknown function (ip: 0x7fd1e429b03d)
gr_display at /home/vmh/.julia/packages/Plots/LWw1t/src/backends/gr.jl:1634
unknown function (ip: 0x7fd1e4279f68)
gr_display at /home/vmh/.julia/packages/Plots/LWw1t/src/backends/gr.jl:678
_show at /home/vmh/.julia/packages/Plots/LWw1t/src/backends/gr.jl:1975
_showjuno at /home/vmh/.julia/packages/Plots/LWw1t/src/output.jl:276 [inlined]
showjuno at /home/vmh/.julia/packages/Plots/LWw1t/src/output.jl:260
show at /home/vmh/.julia/packages/Plots/LWw1t/src/output.jl:212
unknown function (ip: 0x7fd216006df8)
#base64encode#3 at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Base64/src/encode.jl:208
base64encode##kw at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Base64/src/encode.jl:203 [inlined]
_binstringmime at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Base64/src/Base64.jl:46 [inlined]
#stringmime#6 at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Base64/src/Base64.jl:43
stringmime##kw at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Base64/src/Base64.jl:43
#stringmime#7 at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Base64/src/Base64.jl:44
stringmime##kw at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Base64/src/Base64.jl:44 [inlined]
displayinplotpane at /home/vmh/.julia/packages/Atom/27HB0/src/display/showdisplay.jl:84
displayandrender at /home/vmh/.julia/packages/Atom/27HB0/src/display/showdisplay.jl:131
#204 at /home/vmh/.julia/packages/Atom/27HB0/src/eval.jl:136
unknown function (ip: 0x7fd216006df8)
jl_f__apply_latest at /usr/bin/../lib/x86_64-linux-gnu/libjulia.so.1 (unknown line)
#invokelatest#1 at ./essentials.jl:712 [inlined]
invokelatest at ./essentials.jl:711 [inlined]
macro expansion at /home/vmh/.julia/packages/Media/ItEPc/src/dynamic.jl:24 [inlined]
eval at /home/vmh/.julia/packages/Atom/27HB0/src/eval.jl:113
unknown function (ip: 0x7fd1e52b1bda)
unknown function (ip: 0x7fd216006df8)
jl_f__apply_latest at /usr/bin/../lib/x86_64-linux-gnu/libjulia.so.1 (unknown line)
#invokelatest#1 at ./essentials.jl:712
unknown function (ip: 0x7fd216006df8)
invokelatest at ./essentials.jl:711
unknown function (ip: 0x7fd216006df8)
macro expansion at /home/vmh/.julia/packages/Atom/27HB0/src/eval.jl:41 [inlined]
#184 at ./task.jl:358
unknown function (ip: 0x7fd200230bcc)
unknown function (ip: 0x7fd216013cbb)
unknown function (ip: (nil))
Allocations: 117403001 (Pool: 117374477; Big: 28524); GC: 118

What is this ?
How do I fix it ?

Thank you

what is your Plots version and Julia version? this code runs fine in my environment

Julia 1.5
Plots v1.5.8

Thanks for coming

My julia is

versioninfo()
Julia Version 1.4.1
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
Environment:
  JULIA_DEPOT_PATH = /home/vmh/.julia
  JULIA_EDITOR = atom  -a
  JULIA_NUM_THREADS = 2

And Plots

Pkg.installed()

"Plots"          => v"1.5.7"

Thanks for coming

My julia is

versioninfo()
Julia Version 1.4.1
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
Environment:
  JULIA_DEPOT_PATH = /home/vmh/.julia
  JULIA_EDITOR = atom  -a
  JULIA_NUM_THREADS = 2

And Plots

Pkg.installed()

"Plots"          => v"1.5.7"

@jling I installed Plot last version by

pkg> add Plots#master

And I got

Pkg.installed()

 "Plots"          => v"1.5.9"

But I get an error, something quite similar

Illegal inttoptr
      %33 = ptrtoint double addrspace(13)* %32 to i64
Illegal inttoptr
      %52 = inttoptr i64 %51 to i8 addrspace(13)*

signal (6): Aborted
in expression starting at none:0
gsignal at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
abort at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 0x7fcc37e61d04)
_ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE at /lib/x86_64-linux-gnu/libLLVM-8.so.1 (unknown line)
_ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE at /lib/x86_64-linux-gnu/libLLVM-8.so.1 (unknown line)
_ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE at /lib/x86_64-linux-gnu/libLLVM-8.so.1 (unknown line)
unknown function (ip: 0x7fcc37f4bac1)
unknown function (ip: 0x7fcc37f4e2d8)
unknown function (ip: 0x7fcc37f4e8cd)
unknown function (ip: 0x7fcc37e89b4a)
unknown function (ip: 0x7fcc37ebaed3)
unknown function (ip: 0x7fcc37ee084b)
jl_invoke at /lib/x86_64-linux-gnu/libjulia.so.1 (unknown line)
permutedims at ./multidimensional.jl:1397 [inlined]
transpose_z at /home/vmh/.julia/packages/Plots/shY1Z/src/utils.jl:353
unknown function (ip: 0x7fcc05076a3d)
gr_display at /home/vmh/.julia/packages/Plots/shY1Z/src/backends/gr.jl:1634
unknown function (ip: 0x7fcc050530a8)
gr_display at /home/vmh/.julia/packages/Plots/shY1Z/src/backends/gr.jl:678
_show at /home/vmh/.julia/packages/Plots/shY1Z/src/backends/gr.jl:1975
_showjuno at /home/vmh/.julia/packages/Plots/shY1Z/src/output.jl:276 [inlined]
showjuno at /home/vmh/.julia/packages/Plots/shY1Z/src/output.jl:260
show at /home/vmh/.julia/packages/Plots/shY1Z/src/output.jl:212
unknown function (ip: 0x7fcc37eebdf8)
#base64encode#3 at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Base64/src/encode.jl:208
base64encode##kw at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Base64/src/encode.jl:203 [inlined]
_binstringmime at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Base64/src/Base64.jl:46 [inlined]
#stringmime#6 at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Base64/src/Base64.jl:43
stringmime##kw at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Base64/src/Base64.jl:43
#stringmime#7 at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Base64/src/Base64.jl:44
stringmime##kw at /build/julia-98cBbp/julia-1.4.1+dfsg/usr/share/julia/stdlib/v1.4/Base64/src/Base64.jl:44 [inlined]
displayinplotpane at /home/vmh/.julia/packages/Atom/27HB0/src/display/showdisplay.jl:84
displayandrender at /home/vmh/.julia/packages/Atom/27HB0/src/display/showdisplay.jl:131
#204 at /home/vmh/.julia/packages/Atom/27HB0/src/eval.jl:136
unknown function (ip: 0x7fcc37eebdf8)
jl_f__apply_latest at /lib/x86_64-linux-gnu/libjulia.so.1 (unknown line)
#invokelatest#1 at ./essentials.jl:712 [inlined]
invokelatest at ./essentials.jl:711 [inlined]
macro expansion at /home/vmh/.julia/packages/Media/ItEPc/src/dynamic.jl:24 [inlined]
eval at /home/vmh/.julia/packages/Atom/27HB0/src/eval.jl:113
unknown function (ip: 0x7fcc06dc42fa)
unknown function (ip: 0x7fcc37eebdf8)
jl_f__apply_latest at /lib/x86_64-linux-gnu/libjulia.so.1 (unknown line)
#invokelatest#1 at ./essentials.jl:712
unknown function (ip: 0x7fcc37eebdf8)
invokelatest at ./essentials.jl:711
unknown function (ip: 0x7fcc37eebdf8)
macro expansion at /home/vmh/.julia/packages/Atom/27HB0/src/eval.jl:41 [inlined]
#184 at ./task.jl:358
unknown function (ip: 0x7fcc22125abc)
unknown function (ip: 0x7fcc37ef8cbb)
unknown function (ip: (nil))
Allocations: 120983022 (Pool: 120953181; Big: 29841); GC: 117


try Julia 1.5 then, this indeed looks very weird, you may want to open and issue on github

Thank you very much @jling
I am afraid I do not know how open an issue, but I would it if you think it may be of benefit

Julia 1.5 solved the situation

1 Like