Page MenuHomePhabricator

Workbench crashes when loading created segmentation
Closed, ResolvedPublic

Description

Steps to reproduce:

  • Load image, e.g. Pic3D.nrrd
  • Create segmentation
  • Save segmentation (Choose file writer: MITK Multilabel Image)
  • Close project
  • Load segmentation (Choose file reader: MITK Multilabel Image)

--> Workbench crashes

The workbench does not crash if ITK NrrdImageIO is selected as file reader.

Seems to be related to the locale setting. Error message "Could not parse string as number: bad lexical cast: source type value could not be interpreted as target
" is printed before crash.

Event Timeline

After setting my system locale to LC_NUMERIC=en_US.UTF-8 the problem does not occur anymore. Should we set the required locale within MITK in that case?

User goch has pushed new remote branch:

bug-19662-fix-missused-LocaleSwitch

[015291]: Merge branch 'bug-19662-fix-missused-LocaleSwitch'

Merged commits:

2016-04-08 13:24:25 Caspar Goch [0d64d0]
Create variable instead of just calling the constructor