[GoFigure2-developers] VTK 6.0

47 views
Skip to first unread message

Kishore Mosaliganti

unread,
May 23, 2012, 2:37:22 PM5/23/12
to Arnaud Gelas, gofigure2-...@lists.sourceforge.net
Ok, I jusr pushed a new branch called feature_ITKv4VTK6Integration off the feature_ITKv4Integration branch. In the new branch, I made all the changes for making it compatible to VTK 6.0.

There is one small CMake problem in that it is not linking to vtkLSM library. Can you fix that? It should take you 2 min. Everything else is all set.

Kishore

On Wed, May 23, 2012 at 11:31 AM, Kishore Mosaliganti <kisho...@gmail.com> wrote:
Hi Arnaud,

Do you know what is the role of vtkTypeRevisionMacro() and vtkCxxRevisionMacro() before the definition of a class ? It seems to cause problems in VTK 6.0 and a lot of my code has it.

Kishore


Kishore Mosaliganti

unread,
May 23, 2012, 5:04:24 PM5/23/12
to Arnaud Gelas, gofigure2-...@lists.sourceforge.net
Hi all,

The branch compiles correctly now with vtk 6.0. But it does not produce any visualization -- only dark screen. Some minor bugs have been introduced into the pipeline.

Kishore

Arnaud Gelas

unread,
May 24, 2012, 2:10:48 AM5/24/12
to Kishore Mosaliganti, gofigure2-...@lists.sourceforge.net
Have you fixed the issue with vtkLSM ?

Kishore Mosaliganti

unread,
May 24, 2012, 7:04:29 AM5/24/12
to Arnaud Gelas, gofigure2-...@lists.sourceforge.net
Hi Arnaud,

I sorted the vtkLSM issue in the second commit of the branch by adding it to the target link libraries. 

However, the images are not being loaded, only a black screen exists upon opening GF2. It seems like somewhere an Update() is required. I will try to step through my changes and see where that is happening.

Kishore

Arnaud Gelas

unread,
May 24, 2012, 7:08:43 AM5/24/12
to Kishore Mosaliganti, gofigure2-...@lists.sourceforge.net
Cool!

Have you figured out the bug when using the one click segmentation?

Kishore Mosaliganti

unread,
May 24, 2012, 7:14:11 AM5/24/12
to Arnaud Gelas, gofigure2-...@lists.sourceforge.net
Hi Arnaud,

I will look at the one-click problem on master branch today and get back to you. It might not be a GF2 bug since it was working before my Ubuntu 12.04 update.

Kishore

Kishore Mosaliganti

unread,
May 24, 2012, 1:08:23 PM5/24/12
to Arnaud Gelas, gofigure2-...@lists.sourceforge.net
Hi Arnaud,

It seems like Master is failing in release mode only and works fine in debug mode.

To make sure everything is right, I recompiled ITK 3.20.1 and VTK 5.8 in release mode from scratch. The output at at the command line is:

QAbstractItemView::setSelectionModel() failed: Trying to set a selection model, which works on a different model than the view.
QAbstractItemView::setSelectionModel() failed: Trying to set a selection model, which works on a different model than the view.
QAbstractItemView::setSelectionModel() failed: Trying to set a selection model, which works on a different model than the view.
Segmentation fault (core dumped)

The crash happens when I use one-click segmentation. I used Qt debugger to further narrow down the location.

0    itk::CropImageFilter<itk::Image<float, 3u>, itk::Image<float, 3u> >::GenerateOutputInformation()        0    0xa5a2e7   
1    itk::ProcessObject::UpdateOutputInformation()        0    0xd35103   
2    itk::ImageBase<3u>::UpdateOutputInformation()        0    0x91eb3f   
3    itk::DataObject::Update()        0    0xd287bd   
4    itk::ReconstructionImageFilter<itk::Image<float, 3u>, itk::Image<float, 3u>, std::less<float> >::GenerateData()        0    0xa588aa   
5    itk::ProcessObject::UpdateOutputData(itk::DataObject*)        0    0xd35adc   
6    itk::ImageBase<3u>::UpdateOutputData()        0    0x92da82   
7    itk::GrayscaleFillholeImageFilter<itk::Image<float, 3u>, itk::Image<float, 3u> >::GenerateData()        0    0xa523a5   
8    itk::ProcessObject::UpdateOutputData(itk::DataObject*)        0    0xd35adc   
9    itk::ImageBase<3u>::UpdateOutputData()        0    0x92da82   
10    itk::PreprocessImageFilter<itk::Image<unsigned char, 3u>, itk::Image<unsigned char, 3u> >::GenerateData()        0    0xa4696e   
11    itk::ProcessObject::UpdateOutputData(itk::DataObject*)        0    0xd35adc   
12    itk::ImageBase<3u>::UpdateOutputData()        0    0x92da82   
13    itk::WatershedBasedCellSegmentation<itk::Image<unsigned char, 3u>, itk::Image<double, 3u>, itk::Image<int, 3u> >::GenerateData()        0    0xa8f9c1   
14    itk::ProcessObject::UpdateOutputData(itk::DataObject*)        0    0xd35adc   
15    itk::ImageBase<3u>::UpdateOutputData()        0    0x92da82   
16    QGoMeshWaterShedAlgo::ApplyAlgo(GoImageProcessor*, std::string, bool)        0    0xa601b5   
17    QGoMeshEditingWidgetManager::ApplyWaterShedAlgo()        0    0x9d2f71   
18    QGoMeshEditingWidgetManager::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)        0    0xbbb4c5   
19    QMetaObject::activate    qobject.cpp    3547    0x7ffff5306281   
20    QGoAlgorithmsManagerWidget::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)        0    0xbffadd   
...    <More>               


Any ideas?


Kishore

Kishore Mosaliganti

unread,
May 24, 2012, 1:44:05 PM5/24/12
to Nicolas Rannou, gofigure2-...@lists.sourceforge.net
Good idea! I am using Qt 4.8.1. I will try with a compiled earlier version and let you know.

Kishore

On Thu, May 24, 2012 at 1:37 PM, Nicolas Rannou <huko....@gmail.com> wrote:
Hi Kishore,

Which version of Qt are you using?
You might want to try to recompile vtk and GoFigure with an older version of Qt...

Nicolas

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GoFigure2-developers mailing list
GoFigure2-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gofigure2-developers



Kishore Mosaliganti

unread,
May 24, 2012, 2:23:23 PM5/24/12
to Nicolas Rannou, gofigure2-...@lists.sourceforge.net
Hi guys,

It seems like there are two options to set this right:

1. Merge feature_ITKv4Integration to master and develop and use ITKv4. Both the branches are doing well.

2. Fix the bug with Qt 4.8 with current master and develop branches using ITKv3. Most likely it is some library error.

If we want to do 1, should I have to test this out on Windows and MacOS systems first? Do you guys mind trying it on your systems if you have the time.

Kishore


On Thu, May 24, 2012 at 2:07 PM, Nicolas Rannou <huko....@gmail.com> wrote:
I remember we had a similar issue with Qt 4.8 on OSX Lion a few month ago...

Kishore Mosaliganti

unread,
May 25, 2012, 12:52:43 AM5/25/12
to Nicolas Rannou, gofigure2-...@lists.sourceforge.net
To further clarify on option 2, it is only the release configurations of master and develop branches that crash. The debug versions are doing fine.

Kishore
Reply all
Reply to author
Forward
0 new messages