<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Thanks for the comments. Now we are using VTK 7.0 OpenGL2 with Qt 5.6 through vtkGUISupportQt module. The structures are displayed fine but now it crashes in libX11 when destroying the QVTKWidget.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style=""><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Program received signal SIGSEGV, Segmentation fault.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">0x00002aaaaaf787fb in _XSend () from /usr/lib64/libX11.so.6</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"> </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">(gdb) bt</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">#0  0x00002aaaaaf787fb in _XSend () from /usr/lib64/libX11.so.6</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">#1  0x00002aaaaaf78cb5 in _XFlush () from /usr/lib64/libX11.so.6</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">#2  0x00002aaaaaf7b725 in _XGetRequest () from /usr/lib64/libX11.so.6</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">#3  0x00002aaaaaf7491b in XSync () from /usr/lib64/libX11.so.6</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">#4  0x00002aaaac6ab36a in XMesaGarbageCollect () at src/gallium/state_trackers/glx/xlib/xm_api.c:1359</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">#5  0x00002aaaac6ae7ce in glXDestroyContext (dpy=<optimized out>, ctx=0x19ee7570) at src/gallium/state_trackers/glx/xlib/glx_api.c:1422</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">#6  0x00002aaab1139b3e in vtkXOpenGLRenderWindow::DestroyWindow (this=0xc13dfb0) at /MyPRJ/vtk70-src/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx:719</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">#7  0x00002aaab113a635 in vtkXOpenGLRenderWindow::Finalize (this=0xc13dfb0) at //MyPRJ/vtk70-src/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx:1005</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">#8  0x00002aaab3da3ebf in QVTKWidget::SetRenderWindow (this=0x18d673e0, w=0x0) at /MyPRJ/vtk70-src/GUISupport/Qt/QVTKWidget.cxx:192</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">#9  0x00002aaab3da3ca2 in QVTKWidget::~QVTKWidget (this=0x18d673e0, __in_chrg=<optimized out>) at /MyPRJ/vtk70-src/GUISupport/Qt/QVTKWidget.cxx:113</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style=""><font face="arial, helvetica, sans-serif">Does anybody knows what could be the cause for that crash? </font><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Thanks </div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 18, 2016 at 9:27 AM, Sean McBride <span dir="ltr"><<a href="mailto:sean@rogue-research.com" target="_blank">sean@rogue-research.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, 18 May 2016 00:10:35 -0400, Patricio Palma C. said:<br>
<br>
>I'm using the Events example provided in VTK sources (Examples/GUI/Qt/)<br>
>using VTK 6.3 with OpenGL2 and Qt 5.6 by using QVTKWidget. However the<br>
>resulting application is unstable and crashes most of the times either in<br>
>X11lib or in MesaLib.<br>
<br>
</span>The OpenGL2 backend was experimental (and non-default) in VTK 6.  You might try switching to OpenGL1 or to VTK 7.<br>
<br>
Cheers,<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
____________________________________________________________<br>
Sean McBride, B. Eng                 <a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a><br>
Rogue Research                        <a href="http://www.rogue-research.com" rel="noreferrer" target="_blank">www.rogue-research.com</a><br>
Mac Software Developer              Montréal, Québec, Canada<br>
<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font face="arial, helvetica, sans-serif"><span style="font-size:16.3636360168457px">Patricio Palma Contreras</span></font></div></div>
</div>