Page MenuHomePhabricator

[Segmentation Utils] Workbench crashes for Morphological operations
Closed, ResolvedPublic

Description

None of the morphological operations works in Segmentation utils on the latest 2023.04 release installer.

Steps:

  1. Load Pic3D.nrrd
  2. Draw a mask using eg. Add tool
  3. Goto Seg Utils > Morphological Operations
  4. Click eg. Dilation -> Workbench Crash (core dumped)

OS: Windows 10, Ubuntu

Revisions and Commits

rMITK MITK
Restricted Differential Revision
Restricted Differential Revision

Event Timeline

a178n triaged this task as Unbreak Now! priority.May 22 2023, 10:18 AM
a178n created this task.

Can reproduce. When debugging, the error is caused while trying to clone a LabelSetImage. While creating a new mitk::Image from a reference, it tries to get:

ImageDataItemPointer volume = other.GetVolumeData(0);
this->SetVolume(volume->GetData(), 0);

but volume is nullptr.
I'm not sure if this just needs a nullptr safeguard (and eventually an additional default initialization?) or if this should not be able to happen in the first place.

No that should not happen. What is the rest of the stack trace? Does it fail to clone a layer image or the LabelSetImage itself?

This is more of the stack trace:

MitkCore.dll!mitk::ImageDataItem::GetData() Zeile 131
MitkCore.dll!mitk::Image::Image(const mitk::Image & other) Zeile 83
MitkMultilabel.dll!mitk::LabelSetImage::LabelSetImage(const mitk::LabelSetImage & other) Zeile 75
MitkMultilabel.dll!mitk::LabelSetImage::InternalClone() Zeile 494
MitkMultilabel.dll!mitk::LabelSetImage::Clone() Zeile 33
MitkSegmentationUI.dll!ModifyLabelProcessing<3>(mitk::LabelSetImage * labelSetImage, itk::SmartPointer<mitk::SurfaceInterpolationController> surfaceInterpolator, unsigned int timePoint) Zeile 203
MitkSegmentationUI.dll!QmitkSlicesInterpolator::OnModifyLabelChanged(const itk::Object * caller, const itk::EventObject & __formal) Zeile 1915
s434n moved this task from Backlog to Cycle on the MITK (v2023.12) board.
s434n added a revision: Restricted Differential Revision.Nov 8 2023, 4:41 PM