[vtkusers] Strange behavior of vtkImageMapToColors
Hendrik Belitz
h.belitz at fz-juelich.de
Fri Oct 7 05:05:31 EDT 2005
Dear VTK users,
I encountered a strange problem a couple of days ago and don't know how to
solve it. I wrote some kind of intensity image viewer to visualize my image
processing results. This viewer works fine even with large images on my
machine at home running Debian GNU/Linux x86 with activated OpenGL hardware
acceleration. On my PC at work (same system, but no hardware acceleration)
the application crashes (the gdb stack trace is attached to this mail). But
it won't crash any time. Visualizing 16-buit images with an extent up to
160x256 works fine. Loading an image of greater extents (e.g. 181x256)
results in an segmentation fault, even if the image only contains 8-bit data.
The problem occurs if I compile the application and all libraries with g++
3.5.5 as well as with g++ 4.0.1. Using debug flags or release flags also
won't change anything.
Just for clarity: The images are not loaded by VTK classes directly, but are
converted into vtkImageData instances after processing.
Attached stack trace:
#0 0x40d22115 in vtkLookupTableMapData<unsigned short> ()
from /usr/local/lib/vtk/libvtkCommon.so
#1 0x40d1e3cc in vtkLookupTable::MapScalarsThroughTable2 ()
from /usr/local/lib/vtk/libvtkCommon.so
#2 0x41f40d99 in vtkImageMapToColorsExecute ()
from /usr/local/lib/vtk/libvtkImaging.so
#3 0x41f40f5d in vtkImageMapToColors::ThreadedExecute ()
from /usr/local/lib/vtk/libvtkImaging.so
#4 0x421066e2 in vtkImageThreadedExecute ()
from /usr/local/lib/vtk/libvtkFiltering.so
#5 0x40d39c17 in vtkMultiThreader::SingleMethodExecute ()
from /usr/local/lib/vtk/libvtkCommon.so
#6 0x42107634 in vtkImageToImageFilter::MultiThread ()
from /usr/local/lib/vtk/libvtkFiltering.so
#7 0x4210786b in vtkImageToImageFilter::ExecuteData ()
from /usr/local/lib/vtk/libvtkFiltering.so
#8 0x41f4056f in vtkImageMapToColors::ExecuteData ()
from /usr/local/lib/vtk/libvtkImaging.so
#9 0x40d9897b in vtkSource::UpdateData ()
from /usr/local/lib/vtk/libvtkCommon.so
#10 0x40ca9a5f in vtkDataObject::UpdateData ()
from /usr/local/lib/vtk/libvtkCommon.so
#11 0x40cf1eed in vtkImageData::UpdateData ()
from /usr/local/lib/vtk/libvtkCommon.so
#12 0x411bdd8f in vtkImageActor::RenderOpaqueGeometry ()
from /usr/local/lib/vtk/libvtkRendering.so
#13 0x4122e5e3 in vtkRenderer::UpdateGeometry ()
from /usr/local/lib/vtk/libvtkRendering.so
#14 0x412c6fbb in vtkOpenGLRenderer::DeviceRender ()
from /usr/local/lib/vtk/libvtkRendering.so
#15 0x4122e1ae in vtkRenderer::Render ()
from /usr/local/lib/vtk/libvtkRendering.so
#16 0x41238328 in vtkRendererCollection::Render ()
from /usr/local/lib/vtk/libvtkRendering.so
#17 0x41221fa4 in vtkRenderWindow::DoStereoRender ()
from /usr/local/lib/vtk/libvtkRendering.so
#18 0x41221f3b in vtkRenderWindow::DoFDRender ()
from /usr/local/lib/vtk/libvtkRendering.so
#19 0x41221acc in vtkRenderWindow::DoAARender ()
from /usr/local/lib/vtk/libvtkRendering.so
#20 0x41221297 in vtkRenderWindow::Render ()
from /usr/local/lib/vtk/libvtkRendering.so
--
-------------------------------------------------------------------------------------
Dipl.-Inform. Hendrik Belitz
Central Institute of Electronics / Zentralinstitut für Elektronik
Multimodal image processing workgroup / AG Multimodale Bildverarbeitung
Research Center Juelich / Forschungszentrum Jülich GmbH
D-52428 Jülich, Germany
Tel.: (++49)2461 61 8701 Fax: (++49)2461 61 3990
email: h.belitz at fz-juelich.de
ggp-key available via http://pgpkeys.pca.dfn.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20051007/1b698587/attachment.pgp>
More information about the vtkusers
mailing list