Dear all,

I updated to the latest svn version of mitk.
In this version the MainApp crashes with an Exception as soon as I load a 
volume and turn on the volume rendering in in the Volume Visualization 
Functionality. I digged a little into the source and found the following:

1. The crash is caused by line 49 in QmitkTransferFunctionWidget.ui.h:

tf->InitializeByMitkImage(dynamic_cast<mitk::Image*>(node->GetData()));

>From here the callstack looks like this:

********************************************************************* 
        
mitkCore.dll!itk::Statistics::ScalarImageToListAdaptor<itk::Image<unsigned 
short,3> >::GetMeasurementVector(const unsigned long & id=43698144)  Line 38 + 
0x39 bytes    C++
        mitkCore.dll!itk::Statistics::ImageToListAdaptor<itk::Image<unsigned 
short,3>,itk::FixedArray<unsigned short,1> 
>::ConstIterator::GetMeasurementVector()  Line 223 + 0x39 bytes C++
        
mitkCore.dll!itk::Statistics::FindSampleBound<itk::Statistics::ScalarImageToListAdaptor<itk::Image<unsigned
 short,3> > >(const 
itk::Statistics::ScalarImageToListAdaptor<itk::Image<unsigned short,3> > * 
sample=0x0a7dad68, itk::Statistics::ImageToListAdaptor<itk::Image<unsigned 
short,3>,itk::FixedArray<unsigned short,1> >::ConstIterator begin={...}, 
itk::Statistics::ImageToListAdaptor<itk::Image<unsigned 
short,3>,itk::FixedArray<unsigned short,1> >::ConstIterator end={...}, 
itk::FixedArray<unsigned short,1> & min={...}, itk::FixedArray<unsigned 
short,1> & max={...})  Line 144 + 0x8 bytes        C++
        
mitkCore.dll!itk::Statistics::ListSampleToHistogramGenerator<itk::Statistics::ScalarImageToListAdaptor<itk::Image<unsigned
 short,3> >,double,itk::Statistics::DenseFrequencyContainer,1>::GenerateData()  
Line 67 + 0x62 bytes  C++
        
mitkCore.dll!itk::Statistics::ListSampleToHistogramGenerator<itk::Statistics::ScalarImageToListAdaptor<itk::Image<unsigned
 short,3> >,double,itk::Statistics::DenseFrequencyContainer,1>::Update()  Line 
126 + 0x16 bytes       C++
        
mitkCore.dll!itk::Statistics::ScalarImageToHistogramGenerator<itk::Image<unsigned
 short,3>,double>::Compute()  Line 63  C++
        mitkCore.dll!InternalCompute<unsigned short,3>(itk::Image<unsigned 
short,3> * itkImage=0x0a7fc068, const mitk::HistogramGenerator * 
mitkHistoGenerator=0x0a7c09f0, 
itk::SmartPointer<itk::Statistics::Histogram<double,1,itk::Statistics::DenseFrequencyContainer>
 const > & histogram={...})  Line 54  C++
        mitkCore.dll!mitk::HistogramGenerator::ComputeHistogram()  Line 67 + 
0xc36 bytes        C++
        mitkCore.dll!mitk::TransferFunction::InitializeByMitkImage(const 
mitk::Image * image=0x0987f700)  Line 260      C++

********************************************************************* 



2. I wonder why line line 49 in QmitkTransferFunctionWidget.ui.h is really 
needed, because it overrides the default settings that are stored for each 
image in mitkDataTreeNodeFactory.cpp.

For my application I removed this line from mitk and everythink works ok (the 
bug is still there of course) with the side effect, that the rendering is also 
much faster now and the color selection widget is set to the default colors.

Greets

Klaus
-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to