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

Segmentation fault on using imshow #274

Open
wizofe opened this issue Oct 21, 2022 · 1 comment
Open

Segmentation fault on using imshow #274

wizofe opened this issue Oct 21, 2022 · 1 comment

Comments

@wizofe
Copy link

wizofe commented Oct 21, 2022

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...

@simonschnake
Copy link

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

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

2 participants