Page MenuHomePhabricator

[Segmentation] nnUNet provokes error when closing MITK / Segmentation view
Closed, ResolvedPublic

Description

MITK crashes with the following error:
An invalid parameter was passed to a function that considers invalid parameters fatal.

That happens when calling name.back() with an empty name. It is produced by Directory::Load.
Call stack:

  • mitk::nnUNetTool::~nnUNetTool()
  • itksys::SystemTools::RemoveADirectory(this->GetMitkTempDir())
  • dir.Load(source)

To reproduce:

  1. open MITK, load an image
  2. open the Segmentation view
  3. create a new segmentation node
  4. close the Segmentation View
  5. open the Segmentation View again

Alternative:

  1. open MITK, load an image
  2. open the Segmentation view
  3. close the workbench via "x"

Happens on Windows, only in debug.

Revisions and Commits

rMITK MITK
Restricted Differential Revision
Restricted Differential Revision

Event Timeline

kalali renamed this task from [Segmentation] nnUNet when closing to [Segmentation] nnUNet provokes error when closing MITK / Segmentation view.Apr 20 2023, 10:31 AM
kalali triaged this task as Unbreak Now! priority.
kalali created this task.
kalali updated the task description. (Show Details)
a178n added a revision: Restricted Differential Revision.Apr 20 2023, 1:15 PM

Hi @kalali
The issue should be resolved now. You may test the latest develop and close it.

Hi @kalali
The issue should be resolved now. You may test the latest develop and close it.

Works for me!

Deleted branch from rMITK MITK: feature/T29528-nnunet-bugfixes.