[vtkusers] VTK application crash on virtual machine

Shawn Waldon shawn.waldon at kitware.com
Thu May 19 09:55:46 EDT 2016


Hi Kent,

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).

HTH,
Shawn

On Wed, May 18, 2016 at 9:31 PM, kent myers via vtkusers <vtkusers at vtk.org>
wrote:

> I have a Java application using VTK 7.0rc1.  It works fine when running
> directly on my desktop.  I have installed Eclipse Neon on Windows 10 in a
> virtual machine.  When I run the application (based on the standard DICOM
> image display demo that uses vtkDICOMImageReader and vtkImageViewer2)
> inside
> Eclipse in the VM environment, the libraries load up normally, and all the
> VTK import and related operations are apparently successful. The crash
> occurs somewhere in the VTK rendering code (See stack trace below)
>
> Does anyone know some magic settings that I need to be able to use VTK in a
> VM environment?
>
> Thanks,
> Kent
>
> Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
> j  vtk.vtkRenderWindow.Render_9()V+0
> j  vtk.vtkRenderWindow.Render()V+1
> j  vtk.vtkRenderWindowPanel.Render()V+74
> j  vtk.vtkPanel.paint(Ljava/awt/Graphics;)V+1
> j
>
> sun.awt.RepaintArea.paintComponent(Ljava/awt/Component;Ljava/awt/Graphics;)V+6
> j  sun.awt.RepaintArea.paint(Ljava/lang/Object;Z)V+326
> J 3628 C1 sun.awt.windows.WComponentPeer.handleEvent(Ljava/awt/AWTEvent;)V
> (173 bytes) @ 0x000000000383cc68 [0x000000000383bd80+0xee8]
> J 2988 C1 java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V (883
> bytes) @ 0x00000000036921df [0x000000000368ad60+0x747f]
> J 3606 C2
>
> java.awt.EventQueue.dispatchEventImpl(Ljava/awt/AWTEvent;Ljava/lang/Object;)V
> (149 bytes) @ 0x0000000003800dac [0x0000000003800a60+0x34c]
> J 3024 C2 java.awt.EventQueue$3.run()Ljava/lang/Void; (60 bytes) @
> 0x0000000003392b54 [0x0000000003392ae0+0x74]
> J 2673 C2 java.awt.EventQueue$3.run()Ljava/lang/Object; (5 bytes) @
> 0x0000000003671394 [0x0000000003671360+0x34]
> v  ~StubRoutines::call_stub
> J 1338
>
> java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;
> (0 bytes) @ 0x0000000003304de6 [0x0000000003304d80+0x66]
> J 2906 C1 java.awt.EventQueue$4.run()Ljava/lang/Object; (5 bytes) @
> 0x000000000379652f [0x0000000003796100+0x42f]
> v  ~StubRoutines::call_stub
> J 1338
>
> java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;
> (0 bytes) @ 0x0000000003304de6 [0x0000000003304d80+0x66]
> J 2868 C2 java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V (80
> bytes)
> @ 0x0000000003510f74 [0x0000000003510ae0+0x494]
> J 3991 C2 java.awt.EventDispatchThread.pumpOneEventForFilters(I)V (295
> bytes) @ 0x0000000003639600 [0x00000000036390c0+0x540]
> J 2890% C2
>
> java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V
> (47 bytes) @ 0x0000000003334f0c [0x0000000003334dc0+0x14c]
> j
>
> java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11
> j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
> j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
> j  java.awt.EventDispatchThread.run()V+9
>
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/VTK-application-crash-on-virtual-machine-tp5738136.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160519/dcd6870c/attachment.html>


More information about the vtkusers mailing list