[vtkusers] Segmetation Fault when running examples

phantomjinx p.g.richardson at phantomjinx.co.uk
Mon Feb 9 11:26:15 EST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I am newly trying out vtk with QT and intended to get my hands dirty by compiling and running some
of the examples. However, instead I have ended up stuck failing to run any of the QT OpenGL
executables.

Systems: Laptop - Intel GPU - Fedora 20
	 Desktop - Nvidia GPU - Fedora 20

1) Installed all vtk-related packages with yum onto both laptop and desktop
2) Downloaded examples, for instance SideBySideRenderWindows [1]
3) Untarred; cd build; cmake ..; make
4) I get the following error:

...
[ 80%] Building CXX object
CMakeFiles/RenderWindowUISingleInheritance.dir/RenderWindowUISingleInheritance.cxx.o
[100%] Building CXX object
CMakeFiles/RenderWindowUISingleInheritance.dir/moc_RenderWindowUISingleInheritance.cxx.o
make[2]: *** No rule to make target `/usr/lib64/libQtWebKit_debug.so', needed by
`RenderWindowUISingleInheritance'.  Stop.
make[1]: *** [CMakeFiles/RenderWindowUISingleInheritance.dir/all] Error 2
make: *** [all] Error 2

I understand this is a Fedora error[2] and the qt-devel package I have has been upgraded
(qt-devel-4.8.6-18.fc20.x86_64) so no longer contains libQtWebKit_debug.so. Therefore, I am
currently mystified as to what is still requiring this library for make to be wanting to run a
rule for it? Any suggestions, greatfully received since this seems not just an installation/config
problem but a distro problem since it displays this error on both laptop and desktop.

Anyway, tried a couple of workarounds:
1) Downloaded old version of libQtWebkit_debug.so from the rpm package.
2) Downloaded vtk 6.0.0 src and compiled from scratch, removed all installed vtk packages to avoid
contamination.

In both cases, the example is successfully compiled. However, it fails to execute and I get the
following:

Konsole output:
libGL: OpenDriver: trying /usr/lib64/dri/tls/i965_dri.so
libGL: OpenDriver: trying /usr/lib64/dri/i965_dri.so
libGL: Can't open configuration file /home/phantomjinx/.drirc: No such file or directory.
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 2 (X_ChangeWindowAttributes)
  Resource id:  0x4200011
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 3 (X_GetWindowAttributes)
  Resource id:  0x4200011

dmesg output (after executing 3 times):
[20726.521617] SideBySideRende[3674]: segfault at 10 ip 000000384201c896 sp 00007fff0fe0aa90 error
4 in libGL.so.1.2.0[3842000000+90000]
[20731.031566] SideBySideRende[3683]: segfault at 10 ip 000000384201c896 sp 00007fff2ac7c6c0 error
4 in libGL.so.1.2.0[3842000000+90000]
[20745.466293] SideBySideRende[3715]: segfault at 10 ip 000000384201c896 sp 00007fff85b9f4d0 error
4 in libGL.so.1.2.0[3842000000+90000]

gdb backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x000000384201c896 in glXCreateContext () from /lib64/libGL.so.1
Missing separate debuginfos, use: debuginfo-install attica-0.4.2-2.fc20.x86_64
dbus-libs-1.6.28-3.fc20.x86_64 dbusmenu-qt-0.9.2-5.fc20.x86_64 gamin-0.1.10-15.fc20.x86_64
herqq-1.0.0-6.fc20.x86_64 kde-workspace-libs-4.11.14-2.fc20.x86_64 kdelibs-4.14.3-8.fc20.x86_64
libXft-2.3.1-5.fc20.x86_64 libXpm-3.5.10-5.fc20.x86_64 libXtst-1.2.2-2.fc20.x86_64
libacl-2.2.52-4.fc20.x86_64 libattr-2.4.47-3.fc20.x86_64 libpciaccess-0.13.3-0.1.fc20.x86_64
mesa-dri-drivers-10.3.3-1.20141110.fc20.x86_64 qca2-2.0.3-6.fc20.x86_64 qtsoap-2.7-6.fc20.x86_64
soprano-2.9.4-2.fc20.x86_64 strigi-libs-0.7.8-2.fc20.x86_64 systemd-libs-208-29.fc20.x86_64
(gdb) bt
#0  0x000000384201c896 in glXCreateContext () from /lib64/libGL.so.1
#1  0x00007fffef296a36 in vtkXOpenGLRenderWindow::CreateAWindow() () from
/usr/lib64/vtk/libvtkRenderingOpenGL.so.1
#2  0x00007fffef2937a2 in vtkXOpenGLRenderWindow::WindowInitialize() () from
/usr/lib64/vtk/libvtkRenderingOpenGL.so.1
#3  0x00007fffef2936fd in vtkXOpenGLRenderWindow::Start() () from
/usr/lib64/vtk/libvtkRenderingOpenGL.so.1
#4  0x00007ffff30c9920 in vtkRenderWindow::DoStereoRender() () from
/usr/lib64/vtk/libvtkRenderingCore.so.1
#5  0x00007ffff30ca657 in vtkRenderWindow::DoFDRender() () from
/usr/lib64/vtk/libvtkRenderingCore.so.1
#6  0x00007ffff30ca25e in vtkRenderWindow::DoAARender() () from
/usr/lib64/vtk/libvtkRenderingCore.so.1
#7  0x00007ffff30cb583 in vtkRenderWindow::Render() () from /usr/lib64/vtk/libvtkRenderingCore.so.1
...
...

I'm afraid I have run out of ideas as to what to try next so any help would be much appreciated.

Many thanks

Paul

[1] http://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/SideBySideRenderWindows
[2] http://answers.ros.org/question/200246/no-rule-to-make-target-usrlib64libqtwebkit_debugso/

- -- 
Paul Richardson

  * p.g.richardson at phantomjinx.co.uk

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlTY354ACgkQcthLMIwdEb39PgCg4RahKciseOAiyesSz9ZY7DmD
+Q0AoOUc9rdsLdppepNmcNc2XAh3g28v
=7c99
-----END PGP SIGNATURE-----


More information about the vtkusers mailing list