View Issue Details

IDProjectCategoryView StatusLast Update
0004665Slicer4Core: Base Codepublic2018-12-18 04:01
ReporterfepegarAssigned Tojcfr 
PrioritynormalSeveritycrashReproducibilityalways
Status assignedResolutionopen 
PlatformmacOSOSSierraOS Version
Product VersionSlicer 4.10.0 
Target VersionFixed in Version 
Summary0004665: Slicer crashes when loading NIfTI in int64
Description

I tried opening an image created by this and Slicer crashed.

I can reproduce the issue with the code below.

Steps To Reproduce

In Python:

import numpy as np
import nibabel as nib
array = np.array([1], int)
affine = np.eye(4)
nii = nib.Nifti1Image(array, affine)
nii.to_filename('/tmp/voxel.nii.gz')

Load the image into Slicer.

Additional Information

Output:

Loading Slicer RC file [/Users/fernando/.slicerrc.py]
Slicer RC file loaded [14/12/2018 21:58:46]
Switch to module:  "ExpertSegmentation"
Loaded volume from file: /private/tmp/voxel.nii.gz. Dimensions: 1x1x1. Number of components: 1. Pixel type: long.

Generic Warning: In /Volumes/Dashboards/Preview/Slicer-0-build/VTK/Imaging/Core/vtkImageInterpolator.cxx, line 489
Support for VTK_LONG not compiled.

Generic Warning: In /Volumes/Dashboards/Preview/Slicer-0-build/VTK/Imaging/Core/vtkImageInterpolator.cxx, line 489
Support for VTK_LONG not compiled.

Generic Warning: In /Volumes/Dashboards/Preview/Slicer-0-build/VTK/Imaging/Core/vtkImageInterpolator.cxx, line 835
Support for VTK_LONG not compiled.

Generic Warning: In /Volumes/Dashboards/Preview/Slicer-0-build/VTK/Imaging/Core/vtkImageInterpolator.cxx, line 835
Support for VTK_LONG not compiled.

Generic Warning: In /Volumes/Dashboards/Preview/Slicer-0-build/VTK/Imaging/Core/vtkImageReslice.cxx, line 1788
Support for VTK_LONG not compiled.

Generic Warning: In /Volumes/Dashboards/Preview/Slicer-0-build/VTK/Imaging/Core/vtkImageReslice.cxx, line 1484
Support for VTK_LONG not compiled.

Generic Warning: In /Volumes/Dashboards/Preview/Slicer-0-build/VTK/Imaging/Core/vtkImageReslice.cxx, line 1709
Support for VTK_LONG not compiled.

[1]    10179 segmentation fault  /Applications/Slicer.app/Contents/MacOS/Slicer
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2018-12-14 17:06 fepegar New Issue
2018-12-14 17:06 fepegar Status new => assigned
2018-12-14 17:06 fepegar Assigned To => jcfr
2018-12-18 04:01 fepegar Steps to Reproduce Updated View Revisions