<div dir="ltr"><div><div>Hi Kent,<br><br></div>My suspicion would be that your VM doesn't support a new enough version of OpenGL to be used with the OpenGL2 rendering backend in VTK.  The new backend requires a minimum OpenGL version of 3.2, which most VMs that I have used don't support.  You could try rebuilding VTK with the OpenGL backend to see if that is indeed the problem (the default is OpenGL2 in VTK 7).<br><br></div><div>HTH,<br></div>Shawn<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 18, 2016 at 9:31 PM, kent myers via vtkusers <span dir="ltr"><<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a Java application using VTK 7.0rc1.  It works fine when running<br>
directly on my desktop.  I have installed Eclipse Neon on Windows 10 in a<br>
virtual machine.  When I run the application (based on the standard DICOM<br>
image display demo that uses vtkDICOMImageReader and vtkImageViewer2) inside<br>
Eclipse in the VM environment, the libraries load up normally, and all the<br>
VTK import and related operations are apparently successful. The crash<br>
occurs somewhere in the VTK rendering code (See stack trace below)<br>
<br>
Does anyone know some magic settings that I need to be able to use VTK in a<br>
VM environment?<br>
<br>
Thanks,<br>
Kent<br>
<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.vtkRenderWindowPanel.Render()V+74<br>
j  vtk.vtkPanel.paint(Ljava/awt/Graphics;)V+1<br>
j<br>
sun.awt.RepaintArea.paintComponent(Ljava/awt/Component;Ljava/awt/Graphics;)V+6<br>
j  sun.awt.RepaintArea.paint(Ljava/lang/Object;Z)V+326<br>
J 3628 C1 sun.awt.windows.WComponentPeer.handleEvent(Ljava/awt/AWTEvent;)V<br>
(173 bytes) @ 0x000000000383cc68 [0x000000000383bd80+0xee8]<br>
J 2988 C1 java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V (883<br>
bytes) @ 0x00000000036921df [0x000000000368ad60+0x747f]<br>
J 3606 C2<br>
java.awt.EventQueue.dispatchEventImpl(Ljava/awt/AWTEvent;Ljava/lang/Object;)V<br>
(149 bytes) @ 0x0000000003800dac [0x0000000003800a60+0x34c]<br>
J 3024 C2 java.awt.EventQueue$3.run()Ljava/lang/Void; (60 bytes) @<br>
0x0000000003392b54 [0x0000000003392ae0+0x74]<br>
J 2673 C2 java.awt.EventQueue$3.run()Ljava/lang/Object; (5 bytes) @<br>
0x0000000003671394 [0x0000000003671360+0x34]<br>
v  ~StubRoutines::call_stub<br>
J 1338<br>
java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;<br>
(0 bytes) @ 0x0000000003304de6 [0x0000000003304d80+0x66]<br>
J 2906 C1 java.awt.EventQueue$4.run()Ljava/lang/Object; (5 bytes) @<br>
0x000000000379652f [0x0000000003796100+0x42f]<br>
v  ~StubRoutines::call_stub<br>
J 1338<br>
java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;<br>
(0 bytes) @ 0x0000000003304de6 [0x0000000003304d80+0x66]<br>
J 2868 C2 java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V (80 bytes)<br>
@ 0x0000000003510f74 [0x0000000003510ae0+0x494]<br>
J 3991 C2 java.awt.EventDispatchThread.pumpOneEventForFilters(I)V (295<br>
bytes) @ 0x0000000003639600 [0x00000000036390c0+0x540]<br>
J 2890% C2<br>
java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V<br>
(47 bytes) @ 0x0000000003334f0c [0x0000000003334dc0+0x14c]<br>
j<br>
java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11<br>
j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4<br>
j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3<br>
j  java.awt.EventDispatchThread.run()V+9<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/VTK-application-crash-on-virtual-machine-tp5738136.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-application-crash-on-virtual-machine-tp5738136.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<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>
</blockquote></div><br></div>