Page MenuHomePhabricator

Crash while creating segmentation image for 3D+t images
Closed, ResolvedPublic

Description

The application crashes if a segmentation image is created for 3D+t images. Happens in mitkTool in line 150 (memset). A hint may be that the image volumes for timesteps > 1 are NULL in initial segmentation image.

Event Timeline

The problem was that memset has accessed memory that was not allocated for the image itself. The volumes for each time step seem not to be continuous in memory. memset is now executed separately for each volume in case of 4D data.

However another issue occured for 4D images. An execption is thrown in SurfaceInterpolationControlle::SetCurrentSegmentationInterpolationList line 257 as the itkImage variable as well as the callback function GetImageBase are hard coded to dimension 3. Anyway because this is not related the bug here I moved it to T15686