Page MenuHomePhabricator

[Segmentation] Creating a new group while interpolating causes crash
Closed, ResolvedPublic

Description

While (2D) interpolation is running, adding a new group to the segmentation causes a crash.

Steps to reproduce:

  • open any image
  • draw a segmentation in two slices to interpolate between them
  • while the interpolation is active, press the "G+" button to add a new group
  • -> Crash

Revisions and Commits

Event Timeline

s434n triaged this task as High priority.May 2 2023, 2:54 PM
s434n created this task.

I think this is caused because the interpolator gets notified of a new group being added as soon as that happens, but before a new label has been added to the group. When trying to update the interpolation, it tries to get the value of the active label inside QmitkSlicesInterpolator::OnInterpolationActivated(), which causes the error because there is no active label set.

s434n added a revision: Restricted Differential Revision.