ImageView.jl
ImageView.jl copied to clipboard
Segmentation fault on using imshow
I have a minimal project which opens a NIFTI file and creates a raw array, which then I try to display using imshow
using NIfTI
using ImageView, Images
fgm = "masks/GM.nii"
img_gm = niread(fgm)
gm = img_gm.raw
When I run the final line, imshow(gm)
signal (11): Segmentation fault: 11
in expression starting at none:0
unknown function (ip: 0xc080006000031e00)
Allocations: 34142839 (Pool: 34128179; Big: 14660); GC: 19
System: Apple M1 Max 12.6 (21G115) julia version 1.8.2
Note: If I use the mandrill example then imshow works fine...
In general, the display of arrays on macOS is broken.
using ImageView, Images
a = rand(3, 128, 128)
imshow(a)
results in a Segmentation Fault.
Tested on M1 2021 MacBook Air Julia 1.8.3