View Issue Details

IDProjectCategoryView StatusLast Update
0002774Slicer4Core: Building (CMake, Superbuild)public2014-03-06 04:55
Reportersankhesh Assigned Tojcfr  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSUbuntuOS Version12.04
Product VersionSlicer 4.2.0 
Target VersionSlicer 4.2.2-1Fixed in VersionSlicer 4.2.2-1 
Summary0002774: SlicerApp-real does not work in QtCreator
Description

When I try to run SlicerApp-real in QtCreator launched with the Slicer launcher, the executable crashes with the following error:

Starting /home/sankhesh/Projects/Slicer/bld-new-workdir/Slicer-build/bin/SlicerApp-real...
/home/sankhesh/Projects/Slicer/bld/Slicer-build/bin/libMRMLCorePythonD.so: undefined symbol: _ZN44vtkMRMLDiffusionTensorVolumeSliceDisplayNode11GetPolyDataEv
/home/sankhesh/Projects/Slicer/bld/Slicer-build/bin/libMRMLCorePythonD.so: undefined symbol: _ZN44vtkMRMLDiffusionTensorVolumeSliceDisplayNode11GetPolyDataEv
/home/sankhesh/Projects/Slicer/bld/Slicer-build/bin/libMRMLCorePythonD.so: undefined symbol: _ZN44vtkMRMLDiffusionTensorVolumeSliceDisplayNode11GetPolyDataEv
/home/sankhesh/Projects/Slicer/bld/Slicer-build/bin/libMRMLCorePythonD.so: undefined symbol: _ZN44vtkMRMLDiffusionTensorVolumeSliceDisplayNode11GetPolyDataEv
/home/sankhesh/Projects/Slicer/bld/Slicer-build/bin/libMRMLCorePythonD.so: undefined symbol: _ZN44vtkMRMLDiffusionTensorVolumeSliceDisplayNode11GetPolyDataEv
/home/sankhesh/Projects/Slicer/bld/Slicer-build/bin/libMRMLCorePythonD.so: undefined symbol: _ZN44vtkMRMLDiffusionTensorVolumeSliceDisplayNode11GetPolyDataEv
/home/sankhesh/Projects/Slicer/bld/Slicer-build/bin/libMRMLCorePythonD.so: undefined symbol: _ZN44vtkMRMLDiffusionTensorVolumeSliceDisplayNode11GetPolyDataEv
/home/sankhesh/Projects/Slicer/bld/Slicer-build/bin/libMRMLCorePythonD.so: undefined symbol: _ZN44vtkMRMLDiffusionTensorVolumeSliceDisplayNode11GetPolyDataEv
/home/sankhesh/Projects/Slicer/bld/Slicer-build/bin/libMRMLCorePythonD.so: undefined symbol: _ZN44vtkMRMLDiffusionTensorVolumeSliceDisplayNode11GetPolyDataEv
/home/sankhesh/Projects/Slicer/bld/Slicer-build/bin/libMRMLCorePythonD.so: undefined symbol: _ZN44vtkMRMLDiffusionTensorVolumeSliceDisplayNode11GetPolyDataEv
/home/sankhesh/Projects/Slicer/bld/Slicer-build/bin/libMRMLCorePythonD.so: undefined symbol: _ZN44vtkMRMLDiffusionTensorVolumeSliceDisplayNode11GetPolyDataEv
/home/sankhesh/Projects/Slicer/bld/Slicer-build/bin/libMRMLCorePythonD.so: undefined symbol: _ZN44vtkMRMLDiffusionTensorVolumeSliceDisplayNode11GetPolyDataEv
/home/sankhesh/Projects/Slicer/bld/Slicer-build/bin/libMRMLCorePythonD.so: undefined symbol: _ZN44vtkMRMLDiffusionTensorVolumeSliceDisplayNode11GetPolyDataEv
/home/sankhesh/Projects/Slicer/bld/Slicer-build/bin/libMRMLCorePythonD.so: undefined symbol: _ZN44vtkMRMLDiffusionTensorVolumeSliceDisplayNode11GetPolyDataEv
/home/sankhesh/Projects/Slicer/bld/Slicer-build/bin/libMRMLCorePythonD.so: undefined symbol: _ZN44vtkMRMLDiffusionTensorVolumeSliceDisplayNode11GetPolyDataEv
Number of registered modules: 117
Traceback (most recent call last):
File "/home/sankhesh/Projects/Slicer/bld/Slicer-build/lib/Slicer-4.2/qt-scripted-modules/DICOM.py", line 33, in init
if slicer.mrmlScene.GetTagByClassName( "vtkMRMLScriptedModuleNode" ) != 'ScriptedModule':
AttributeError: GetTagByClassName
qSlicerScriptedLoadableModuleWidget::setPythonSource "/home/sankhesh/Projects/Slicer/bld/Slicer-build/lib/Slicer-4.2/qt-scripted-modules/DICOM.py" - Failed to instantiate scripted pythonqt class "DICOM" 0x24ad410
Fail to instantiate module "DICOM"
Traceback (most recent call last):
File "/home/sankhesh/Projects/Slicer/bld/Slicer-build/lib/Slicer-4.2/qt-scripted-modules/DataProbe.py", line 25, in init
if slicer.mrmlScene.GetTagByClassName( "vtkMRMLScriptedModuleNode" ) != 'ScriptedModule':
AttributeError: GetTagByClassName
qSlicerScriptedLoadableModuleWidget::setPythonSource "/home/sankhesh/Projects/Slicer/bld/Slicer-build/lib/Slicer-4.2/qt-scripted-modules/DataProbe.py" - Failed to instantiate scripted pythonqt class "DataProbe" 0x24c25f0 http://na-mic.org/Mantis/bug_report_advanced_page.php
Fail to instantiate module "DataProbe"
Traceback (most recent call last):
File "/home/sankhesh/Projects/Slicer/bld/Slicer-build/lib/Slicer-4.2/qt-scripted-modules/Editor.py", line 29, in init
if slicer.mrmlScene.GetTagByClassName( "vtkMRMLScriptedModuleNode" ) != 'ScriptedModule':
AttributeError: GetTagByClassName
qSlicerScriptedLoadableModuleWidget::setPythonSource "/home/sankhesh/Projects/Slicer/bld/Slicer-build/lib/Slicer-4.2/qt-scripted-modules/Editor.py" - Failed to instantiate scripted pythonqt class "Editor" 0x25c8b30
Fail to instantiate module "Editor"
SystemError: Objects/classobject.c:508: bad argument to internal function
qSlicerScriptedLoadableModuleWidget::setPythonSource "/home/sankhesh/Projects/Slicer/bld/Slicer-build/lib/Slicer-4.2/qt-scripted-modules/RSNA2012ProstateDemo.py" - Failed to instantiate scripted pythonqt class "RSNA2012ProstateDemo" 0x2ac6760
Fail to instantiate module "RSNA2012ProstateDemo"
Traceback (most recent call last):
File "/home/sankhesh/Projects/Slicer/bld/Slicer-build/lib/Slicer-4.2/qt-scripted-modules/SampleData.py", line 25, in init
if slicer.mrmlScene.GetTagByClassName( "vtkMRMLScriptedModuleNode" ) != 'ScriptedModule':
AttributeError: GetTagByClassName
qSlicerScriptedLoadableModuleWidget::setPythonSource "/home/sankhesh/Projects/Slicer/bld/Slicer-build/lib/Slicer-4.2/qt-scripted-modules/SampleData.py" - Failed to instantiate scripted pythonqt class "SampleData" 0x2aa0230
Fail to instantiate module "SampleData"
Number of instantiated modules: 112
[VGL] NOTICE: Pixel format of 2D X server does not match pixel format of
[VGL] Pbuffer. Disabling PBO readback.
The program has unexpectedly finished.
/home/sankhesh/Projects/Slicer/bld-new-workdir/Slicer-build/bin/SlicerApp-real exited with code 0

Steps To Reproduce
  1. Slicer --launch qtcreator
  2. Run SlicerApp-real
TagsNo tags attached.

Activities

jcfr

jcfr

2012-11-19 12:00

administrator   ~0007323

Since both QtCreator and Slicer link against python, it is expected to have a problem.

Two solutions:
1) Build QtCreator against the same python that is used by Slicer (tedious ...)
2) Start Slicer outside of QtCreator with the flag "--attach-process", then use "the attach process" feature of gdb (od ddd)

jcfr

jcfr

2014-03-06 04:53

administrator   ~0010759

Closing resolved issues that have not been updated in more than 3 months

Issue History

Date Modified Username Field Change
2012-11-19 11:57 sankhesh New Issue
2012-11-19 11:57 sankhesh Status new => assigned
2012-11-19 11:57 sankhesh Assigned To => jcfr
2012-11-19 12:00 jcfr Note Added: 0007323
2012-11-19 12:00 jcfr Status assigned => resolved
2012-11-19 12:00 jcfr Fixed in Version => Slicer 4.2.2
2012-11-19 12:00 jcfr Resolution open => fixed
2012-11-19 12:00 jcfr Target Version => Slicer 4.2.2
2014-03-06 04:53 jcfr Note Added: 0010759
2014-03-06 04:55 jcfr Status resolved => closed