Export segment to labelmap broken in May 25 nightly

In the last few days, exporting a segment to a labelmap stopped working. Works fine in May 21 nightly, doesn’t work in May 25 nightly (latest build, downloaded for Mac this morning).

I have a debug build, I’m happy to help troubleshoot.

Thanks!

Errors from the log:

virtual double qSlicerSubjectHierarchyFolderPlugin::canOwnSubjectHierarchyItem(vtkIdType) const : Input item is invalid

GetItemDataNode: Failed to find subject hierarchy item by ID 0

ExportSegmentsToLabelmapNode: Failed to generate shared labelmap

bool qSlicerSegmentationsModuleWidget::exportFromCurrentSegmentation() : “Failed to export segments from segmentation Segmentation to labelmap node Segmentation-Air spaces-label!\n\nMost probably the segment cannot be converted into binary labelmap representation.”

I was able to reproduce the error. I’ll get back to you soon.

I’ve found the problem, this is a regression due to additional error checks that we introduced a few days ago (the error is caught by the test dashboard, too, but since it was such a small change, I did not check). The problem is fixed now. Thanks for reporting!

Awesome! Thanks!

-Hollister