[vtkusers] Segmentation fault with sample applications (ATI graphics problem?)

Mathieu Malaterre mathieu.malaterre at gmail.com
Thu Sep 27 03:56:10 EDT 2007


Hi Charlotte,

  You can easily switch to software mode rendering:

http://www.vtk.org/Wiki/VTK_OpenGL#Debugging_the_ATI_libGL

For example:

  $ export LIBGL_ALWAYS_INDIRECT=1
  $ ./my_vtk_example

If your program is running fine this way. I would suggest you try to
use a more recent fglrx driver. If this still does not work, get
someone to reimplement this buggy driver from the specs:
http://www.amd.com/us-en/Corporate/VirtualPressRoom/0,,51_104_543~119372,00.html

;)

-Mathieu

On 9/26/07, Charlotte Curtis <curtisc at uoguelph.ca> wrote:
> I'm a new user of ITK/VTK, and I just finished compiling and building the
> sample applications for ITK.  However, when I run them (for example,
> ThresholdSegmentationLevelSet), I always get a segmentation fault.
> Sometimes it happens when I click on Image Display, and sometimes I can
> display the image no problem - the only consistency is that it always
> crashes when I click VTK Render.  I tried running it in GDB and this is my
> stack trace (minus a bunch of garbage lines):
>
> #0  0xb7a01f2f in memcpy () from /lib/libc.so.6
> #1  0xb64b080f in std::string::_S_copy_chars () from /usr/lib/libstdc++.so.5
> #2  0xb64b466d in
> std::string::_M_replace_safe<__gnu_cxx::__normal_iterator<char*,
> std::string> () from /usr/lib/libstdc++.so.5
> #3  0xb64b4595 in std::string::_M_replace<char const*> () from
> /usr/lib/libstdc++.so.5
> #4  0xb64b29fb in std::string::replace () from /usr/lib/libstdc++.so.5
> #5  0xb6c0eb60 in Initialize () from /usr/lib/dri/fglrx_dri.so
> #6  0xb6beccb8 in ShSetResourceLimits () from /usr/lib/dri/fglrx_dri.so
> #7  0xb6756a09 in __glslATIInitFrontEndParser () from
> /usr/lib/dri/fglrx_dri.so
> #8  0xb6957da3 in __glEarlyInitContext () from /usr/lib/dri/fglrx_dri.so
> #9  0xb67b3942 in __glATICreateContext () from /usr/lib/dri/fglrx_dri.so
> #10 0xb6a3cfb9 in fglX11CreateHWContext () from /usr/lib/dri/fglrx_dri.so
> #11 0xb6a540a8 in ?? () from /usr/lib/dri/fglrx_dri.so
> #15 0xb6a53345 in ?? () from /usr/lib/dri/fglrx_dri.so
> #23 0xb6a535b6 in ?? () from /usr/lib/dri/fglrx_dri.so
>
> From the looks of things, it's something to do with the direct rending of my
> graphics card driver (ATI X1600).
>
> This happens with my dataset as well as with VTKData samples (such as
> VTKData/data/HeadMRVolume.mhd).  Any clue what I can do?
> It's a little discouraging that not even the sample applications work.
> Thanks,
>
> Charlotte
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>


-- 
Mathieu



More information about the vtkusers mailing list