Skip to content

Segmentation fault on using imshow #274

@wizofe

Description

@wizofe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions