<div dir="ltr">Hi all<br>
    <br>
    Just FYI, this seems to have 'solved' my issue too. I am using fglrx
    drivers on Ubuntu (12.04) for volume rendering.<br>
    <br>
    Regards<br>
    Girish</div><div class="gmail_extra"><br><div class="gmail_quote">On 6 September 2015 at 07:32, marcin.krotkiewski <span dir="ltr"><<a href="mailto:marcin.krotkiewski@gmail.com" target="_blank">marcin.krotkiewski@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I keep getting segfaults when using vtk.sample.VTKCanvas with OpenGL2 backend in 6.3.0.rc2. This does not happen with 6.2.0 + OpenGL2, nor with the standard OpenGL backend. I use ubuntu 14.04 and compile with gcc 4.9.2 and jdk1.8.0_60.<br>
<br>
On my laptop, the segfaults are 100 reproducible with mesa library - some lines from glxinfo:<br>
<br>
<br>
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile<br>
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.1.3<br>
OpenGL core profile shading language version string: 3.30<br>
<br>
<br>
When I use the high performance card (fglrx drivers,  Radeon HD 8790M) the segfaults sometimes happen, sometimes not. Lines from glxinfo:<br>
<br>
<br>
OpenGL vendor string: Advanced Micro Devices, Inc.<br>
OpenGL renderer string: AMD Radeon HD 8790M<br>
OpenGL core profile version string: 4.3.13374 Core Profile Context 15.20.1013<br>
OpenGL core profile shading language version string: 4.40<br>
<br>
<br>
I have attached a simplified java code based on VTKCanvas - In my experience this one segfaults always, both with mesa, and with Radeon drivers. I get the following line before vtk dies:<br>
<br>
<br>
ERROR: In /home/angainor/bergverk/vtk/VTK-6.3.0.rc2/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 412<br>
vtkXOpenGLRenderWindow (0x7f110429aa90): GLEW could not be initialized.<br>
<br>
<br>
And this is the top of the stack reported by the dying Java VM<br>
<br>
<br>
R11=0x00007fcbd8a79840: <offset 0x72840> in /usr/lib/fglrx/libGL.so.1 at 0x00007fcbd8a07000<br>
<br>
Stack: [0x00007fcbb94e4000,0x00007fcbb95e5000], sp=0x00007fcbb95e1148,  free space=1012k<br>
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)<br>
j  vtk.vtkRenderWindow.Render_9()V+0<br>
j  vtk.vtkRenderWindow.Render()V+1<br>
j  vtk.vtkPanel.Render()V+164<br>
j  vtk.vtkPanel.paint(Ljava/awt/Graphics;)V+1<br>
<br>
[...]<br>
<br>
<br>
It seems that this is a problem specific to 6.3.0.rc2 with OpenGL2. I could not reproduce it for 6.2.0, nor when using OpenGL backend. Do you know any reason why this could happen? I will be happy to provide more information and help to solve this.<br>
<br>
Cheers,<br>
<br>
Marcin<br>
<br>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>