[Mesa-dev] VTK Offscreen Segfaults

Kevin H. Hobbs hobbsk at ohiou.edu
Wed Aug 4 13:30:46 PDT 2010


On 08/04/2010 03:29 PM, tom fogal wrote:
>
> To workaround it, we tell VTK that the OpenGL library is OSMesa and the
> OSMesa library is libGL.  I would test that the above workaround works
> (i.e. you're hitting the same issue I did) before filing a bug.
>
> -tom
>   


With the the mesa libraries flipped :

OPENGL_gl_LIBRARY:FILEPATH=/home/kevin/mesa/lib/libOSMesa.so
OSMESA_LIBRARY:FILEPATH=/home/kevin/mesa/lib/libGL.so


I still get a segfault but now :


$ gdb /home/kevin/kitware/VTK_Build/bin/RenderingCxxTests
GNU gdb (GDB) Fedora (7.1-24.fc13)
Copyright (C) 2010 Free Software Foundation,
Inc.                                                                         

License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>                                             

This is free software: you are free to change and redistribute
it.                                                        
There is NO WARRANTY, to the extent permitted by law.  Type "show
copying"                                                
and "show warranty" for
details.                                                                                          

This GDB was configured as
"x86_64-redhat-linux-gnu".                                                                     

For bug reporting instructions, please
see:                                                                               

<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
/home/kevin/kitware/VTK_Build/bin/RenderingCxxTests...done.
(gdb) run TestOSConeCxx -D /home/kevin/kitware/VTKData -T
/home/kevin/kitware/VTK_Build/Testing/Temporary -V
Baseline/Rendering/TestOSConeCxx.png
Starting program: /home/kevin/kitware/VTK_Build/bin/RenderingCxxTests
TestOSConeCxx -D /home/kevin/kitware/VTKData -T
/home/kevin/kitware/VTK_Build/Testing/Temporary -V
Baseline/Rendering/TestOSConeCxx.png
[Thread debugging using libthread_db enabled]
Mesa: Mesa 7.9-devel DEBUG build Aug  4 2010 15:25:34
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
compression/decompression unavailable
Mesa: Initializing x86-64 optimizations

Program received signal SIGSEGV, Segmentation fault.
loopback_SecondaryColor3ubvEXT_f (v=<value optimized out>) at
main/api_loopback.c:1035
1035       SECONDARYCOLORF(UBYTE_TO_FLOAT(v[0]),
Missing separate debuginfos, use: debuginfo-install
expat-2.0.1-10.fc13.x86_64 fontconfig-2.8.0-1.fc13.x86_64
freetype-2.3.11-3.fc13.x86_64 glibc-2.12-2.x86_64
libICE-1.0.6-2.fc13.x86_64 libSM-1.1.0-7.fc12.x86_64
libX11-1.3.1-3.fc13.x86_64 libXScrnSaver-1.2.0-1.fc12.x86_64
libXau-1.0.5-1.fc12.x86_64 libXext-1.1-2.fc13.x86_64
libXft-2.1.14-1.fc13.x86_64 libXrender-0.9.5-1.fc13.x86_64
libXt-1.0.7-1.fc13.x86_64 libgcc-4.4.4-2.fc13.x86_64
libstdc++-4.4.4-2.fc13.x86_64 libuuid-2.17.2-5.fc13.x86_64
libxcb-1.5-1.fc13.x86_64
(gdb) bt
#0  loopback_SecondaryColor3ubvEXT_f (v=<value optimized out>) at
main/api_loopback.c:1035
#1  0x00007ffff7b3273f in vtkOpenGLRenderWindow::OpenGLInit (this=0x69d310)
    at /home/kevin/kitware/VTK/Rendering/vtkOpenGLRenderWindow.cxx:270
#2  0x00007ffff7b8c45e in vtkXOpenGLRenderWindow::CreateOffScreenWindow
(this=0x69d310, width=300, height=300)
    at /home/kevin/kitware/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:951
#3  0x00007ffff7b8c8dd in vtkXOpenGLRenderWindow::Initialize (this=0x69d310)
    at /home/kevin/kitware/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:1066
#4  0x00007ffff7b8cce3 in vtkXOpenGLRenderWindow::Start (this=0x69d310)
    at /home/kevin/kitware/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:1185
#5  0x00007ffff7a54fc1 in vtkRenderWindow::DoStereoRender (this=0x69d310)
    at /home/kevin/kitware/VTK/Rendering/vtkRenderWindow.cxx:687
#6  0x00007ffff7a54f92 in vtkRenderWindow::DoFDRender (this=0x69d310)
    at /home/kevin/kitware/VTK/Rendering/vtkRenderWindow.cxx:676
#7  0x00007ffff7a54992 in vtkRenderWindow::DoAARender (this=0x69d310)
    at /home/kevin/kitware/VTK/Rendering/vtkRenderWindow.cxx:563
#8  0x00007ffff7a53da2 in vtkRenderWindow::Render (this=0x69d310)
    at /home/kevin/kitware/VTK/Rendering/vtkRenderWindow.cxx:376
#9  0x00007ffff7b8f743 in vtkXOpenGLRenderWindow::Render (this=0x69d310)
    at /home/kevin/kitware/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:1845
#10 0x00000000004326a6 in TestOSConeCxx (argc=7, argv=0x7fffffffd960)
    at /home/kevin/kitware/VTK/Rendering/Testing/Cxx/TestOSConeCxx.cxx:68
#11 0x000000000041b693 in main (ac=7, av=0x7fffffffd960)
    at
/home/kevin/kitware/VTK_Build/Rendering/Testing/Cxx/RenderingCxxTests.cxx:454

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100804/ae4dc2dc/attachment-0001.pgp>


More information about the mesa-dev mailing list