Unable to launch Slicer QT on Arch Linux

Hello, I recently updated to the newest pre-release of slicer, 4.13-2022-02-09 r30598, but for some reason, I am no longer able to access QT designer, when launching it I get the errors below:

Designer: The class attribute for the class qSlicerDiffusionTensorVolumeDisplayWidgetPlugin does not match the class name qSlicerDiffusionTensorVolumeDisplayWidget.
QMetaProperty::read: Unable to handle unregistered datatype 'ctkDICOMTableManager*' for property 'ctkDICOMQueryRetrieveWidget::dicomTableManager'
QMetaProperty::read: Unable to handle unregistered datatype 'QTableView*' for property 'ctkDICOMTableView::tblDicomDatabaseView'
Traceback (most recent call last):
  File "/home/tsims/Slicer/bin/../lib/Python/lib/python3.9/subprocess.py", line 73, in <module>
    import msvcrt
ModuleNotFoundError: No module named 'msvcrt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/tsims/Slicer/bin/../lib/Python/lib/python3.9/pydoc.py", line 66, in <module>
    import platform
  File "/home/tsims/Slicer/bin/../lib/Python/lib/python3.9/platform.py", line 119, in <module>
    import subprocess
  File "/home/tsims/Slicer/bin/../lib/Python/lib/python3.9/subprocess.py", line 78, in <module>
    import _posixsubprocess
ImportError: /home/tsims/Slicer/bin/../lib/Python/lib/python3.9/lib-dynload/_posixsubprocess.so: undefined symbol: PyTuple_Type
QMetaProperty::read: Unable to handle unregistered datatype 'QFrame::Shape' for property 'ctkCollapsibleButton::contentsFrameShape'
QMetaProperty::read: Unable to handle unregistered datatype 'QFrame::Shadow' for property 'ctkCollapsibleButton::contentsFrameShadow'
QMetaProperty::read: Unable to handle unregistered datatype 'QFileDialog::AcceptMode' for property 'ctkDirectoryButton::acceptMode'
QMetaProperty::read: Unable to handle unregistered datatype 'QSlider::TickPosition' for property 'ctkDoubleRangeSlider::tickPosition'
QMetaProperty::read: Unable to handle unregistered datatype 'QSlider::TickPosition' for property 'ctkDoubleSlider::tickPosition'
QMetaProperty::read: Unable to handle unregistered datatype 'QEasingCurve::Type' for property 'ctkBasePopupWidget::easingCurve'
QMetaProperty::read: Unable to handle unregistered datatype 'QSettings*' for property 'ctkSettingsPanel::settings'
QMetaProperty::read: Unable to handle unregistered datatype 'QSettings*' for property 'ctkSettingsDialog::settings'
QMetaProperty::read: Unable to handle unregistered datatype 'ctkSettingsPanel*' for property 'ctkSettingsDialog::currentPanel'
QMetaProperty::read: Unable to handle unregistered datatype 'QSlider::TickPosition' for property 'ctkSliderWidget::tickPosition'
This function is deprecated. Use currentNodeID() instead
qMRMLNodeComboBox::baseName failed: no node types have been set yet
QMetaProperty::read: Unable to handle unregistered datatype 'QComboBox::SizeAdjustPolicy' for property 'qMRMLNodeComboBox::sizeAdjustPolicy'
QMetaProperty::read: Unable to handle unregistered datatype 'QFrame::Shape' for property 'ctkCollapsibleButton::contentsFrameShape'
QMetaProperty::read: Unable to handle unregistered datatype 'QFrame::Shadow' for property 'ctkCollapsibleButton::contentsFrameShadow'
This function is deprecated. Use currentNodeID() instead
qMRMLNodeFactory::baseName failed: class name vtkMRMLColorTableNode not found
QMetaProperty::read: Unable to handle unregistered datatype 'QComboBox::SizeAdjustPolicy' for property 'qMRMLNodeComboBox::sizeAdjustPolicy'
This function is deprecated. Use currentNodeID() instead
QMetaProperty::read: Unable to handle unregistered datatype 'QComboBox::SizeAdjustPolicy' for property 'qMRMLNodeComboBox::sizeAdjustPolicy'
QObject::connect: No such slot qMRMLDisplayNodeWidget::set3DVisible(bool)
QObject::connect:  (sender name:   'ThreeDVisibilityCheckBox')
QObject::connect:  (receiver name: 'qMRMLDisplayNodeWidget')
QMetaProperty::read: Unable to handle unregistered datatype 'QSlider::TickPosition' for property 'ctkSliderWidget::tickPosition'
This function is deprecated. Use currentNodeID() instead
qMRMLNodeComboBox::baseName failed: no node types have been set yet
QMetaProperty::read: Unable to handle unregistered datatype 'QComboBox::SizeAdjustPolicy' for property 'qMRMLNodeComboBox::sizeAdjustPolicy'
QString qMRMLPlotViewControllerWidget::viewLabel() const  failed: must set view node first
QMetaProperty::read: Unable to handle unregistered datatype 'vtkMRMLScene*' for property 'qMRMLRangeWidget::mrmlScene'
QMetaProperty::read: Unable to handle unregistered datatype 'vtkMRMLDisplayNode::ScalarRangeFlagType' for property 'qMRMLScalarsDisplayWidget::scalarRangeMode'
qMRMLSliceControllerWidget::setSliceViewName failed: MRMLSliceNode is invalid
QString qMRMLSliceControllerWidget::sliceViewLabel() const  failed: must set view node first
qMRMLSliceControllerWidget::setSliceViewName failed: MRMLSliceNode is invalid
QString qMRMLSliceControllerWidget::sliceViewLabel() const  failed: must set view node first
QMetaProperty::read: Unable to handle unregistered datatype 'QSlider::TickPosition' for property 'ctkSliderWidget::tickPosition'
qMRMLTableView:: bool qMRMLTableView::transposed() const  failed: invalid node
qMRMLTableView:: bool qMRMLTableView::firstRowLocked() const  failed: invalid node
qMRMLTableView:: bool qMRMLTableView::firstColumnLocked() const  failed: invalid node
virtual void qSlicerMarkupsPlaceWidget::setup() : Markups module is not found, some markup manipulation features will not be available
bool qSlicerMarkupsPlaceWidget::placeModePersistency() const  failed: interactionNode is invalid
qSlicerMarkupsPlaceWidget::deleteAllMarkupsOptionVisible method is deprecated, please use deleteAllControlPointsOptionVisible instead
virtual void qSlicerSimpleMarkupsWidget::setup() : Markups module is not found, some markup manipulation features will not be available
virtual void qSlicerMarkupsPlaceWidget::setup() : Markups module is not found, some markup manipulation features will not be available
virtual void qSlicerSimpleMarkupsWidget::setup() : Markups module is not found, some markup manipulation features will not be available
virtual void qSlicerMarkupsPlaceWidget::setup() : Markups module is not found, some markup manipulation features will not be available
error: [/home/tsims/Slicer/bin/./designer-real] exit abnormally - Report the problem.

This happens regardless of whether I launch QT Designer through the slicer interface, or using the command line Slicer --designer

I’m confused as to what’s going on here, Is there a dependency I’m missing on my system?
Thanks!

This may have been fixed just recently in 9766f4f which was solving a Designer crash at startup. This commit is currently the latest commit on the Slicer master branch but since it was merged after the nightly factory Slicer Preview build was started the fix is not available in Today’s preview. It will be available in tomorrow’s Slicer Preview build, or if you build Slicer from source you can use the latest master .

Re https://github.com/Slicer/Slicer/issues/6174

Awesome! Thank you so much for bringing this to my attention. I haven’t been able to build slicer from source myself, but I can definitely wait for tomorrows preview build, Thank you!

Sorry to drudge this back up, but after updating to the latest slicer nightly release(4.13.0-2022-02-10) I am still having this issue…

Is there anything else I can try to get QT running again, or should I just try to build from source?

Same observation with 4.13.0-2022-02-10 on Arch.

You may try :

./Slicer --launch designer-qt4

This works on my box. designer-qt5 fails too, like designer-real from factory Slicer.

Thank you for the advice! Unfortunately, I don’t seem to have designer-qt4, running that command gets me: error: Application does NOT exists [designer-qt4]

I’m working on building Slicer from source now to see if that helps at all.

The fix was incomplete. A full fix was committed today, which will be available in the Slicer Preview Release tomorrow. If you need Qt designer to work urgently then you can download a release from 1-2 weeks ago, for example from a week ago: http://download.slicer.org/?offset=-7