[vtkusers] VTK and JavaFX?
Mark Edgar Hammons II
mark.hammons at inaf.cnrs-gif.fr
Tue Aug 5 14:58:50 EDT 2014
Yeah, on linux with openjfx, i'd get a blank grey square where the vtkpanel should be, and if I
did certain operations (like when displaying a vtk, if I adjusted the slice shown), it'd crash with
a segfault.
I found this ticket on jogamp (https://jogamp.org/bugzilla/show_bug.cgi?id=607#c13). Maybe it
can provide some insight into getting this working...
On Tuesday, August 05, 2014 06:37:46 PM Alexandre Dufour wrote:
Hi,
For what it’s worth, I’ve tried running your code sample with Oracle’s JDK 8 on Mac, and it
crashes just after the window opens. This is perhaps more a Mac-related issue though…
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
Exception in thread "AppKit Thread" java.lang.StackOverflowError
at vtk.vtkRenderWindow.Render_9(_Native Method_)
at vtk.vtkRenderWindow.Render(_vtkRenderWindow.java:52_)
at vtk.vtkPanel.Render(_vtkPanel.java:174_)
at vtk.vtkPanel.paint(_vtkPanel.java:186_)
at javax.swing.JComponent.paintChildren(_JComponent.java:900_)
at javax.swing.JComponent.paint(_JComponent.java:1062_)
at javax.swing.JComponent.paintChildren(_JComponent.java:886_)
at javax.swing.JComponent.paint(_JComponent.java:1062_)
at sun.swing.JLightweightFrame$3.paint(_JLightweightFrame.java:220_)
at javax.swing.JComponent.paintChildren(_JComponent.java:886_)
at javax.swing.JComponent.paint(_JComponent.java:1062_)
at javax.swing.JLayeredPane.paint(_JLayeredPane.java:586_)
at javax.swing.JComponent.paintChildren(_JComponent.java:886_)
at javax.swing.JComponent.paint(_JComponent.java:1062_)
at java.awt.GraphicsCallback$PaintCallback.run(_GraphicsCallback.java:39_)
at
sun.awt.SunGraphicsCallback.runOneComponent(_SunGraphicsCallback.java:79_)
at
sun.awt.SunGraphicsCallback.runComponents(_SunGraphicsCallback.java:116_)
at java.awt.Container.paint(_Container.java:1973_)
at java.awt.Window.paint(_Window.java:3901_)
at java.awt.Container.update(_Container.java:1993_)
at sun.awt.RepaintArea.updateComponent(_RepaintArea.java:255_)
at sun.lwawt.LWRepaintArea.updateComponent(_LWRepaintArea.java:47_)
at sun.awt.RepaintArea.paint(_RepaintArea.java:232_)
at
sun.lwawt.LWComponentPeer.handleJavaPaintEvent(_LWComponentPeer.java:1312_)
at sun.lwawt.LWComponentPeer.handleEvent(_LWComponentPeer.java:1196_)
at java.awt.Component.dispatchEventImpl(_Component.java:4959_)
at java.awt.Container.dispatchEventImpl(_Container.java:2292_)
at java.awt.Window.dispatchEventImpl(_Window.java:2739_)
at java.awt.Component.dispatchEvent(_Component.java:4705_)
at java.awt.EventQueue.dispatchEventImpl(_EventQueue.java:746_)
at java.awt.EventQueue.access$400(_EventQueue.java:97_)
at java.awt.EventQueue$3.run(_EventQueue.java:697_)
at java.awt.EventQueue$3.run(_EventQueue.java:691_)
at java.security.AccessController.doPrivileged(_Native Method_)
at
java.security.ProtectionDomain$1.doIntersectionPrivilege(_ProtectionDomain.java:75_)
at
java.security.ProtectionDomain$1.doIntersectionPrivilege(_ProtectionDomain.java:86_)
at java.awt.EventQueue$4.run(_EventQueue.java:719_)
at java.awt.EventQueue$4.run(_EventQueue.java:717_)
at java.security.AccessController.doPrivileged(_Native Method_)
at
java.security.ProtectionDomain$1.doIntersectionPrivilege(_ProtectionDomain.java:75_)
at java.awt.EventQueue.dispatchEvent(_EventQueue.java:716_)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(_EventDispatchThread.java:201_)
at
java.awt.EventDispatchThread.pumpEventsForFilter(_EventDispatchThread.java:116_)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(_EventDispatchThread.java:105_)
at
java.awt.EventDispatchThread.pumpEvents(_EventDispatchThread.java:101_)
at java.awt.EventDispatchThread.pumpEvents(_EventDispatchThread.java:93_)
at java.awt.EventDispatchThread.run(_EventDispatchThread.java:82_)
2014-08-05 18:33:12.356 java[31807:c203] Apple AWT Internal Exception: *** Collection
<__NSSetM: 0x7fba5368c5e0> was mutated while being enumerated.
2014-08-05 18:33:12.357 java[31807:c203] *** Terminating app due to uncaught exception
'NSGenericException', reason: '*** Collection <__NSSetM: 0x7fba5368c5e0> was mutated
while being enumerated.'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff95e9c25c __exceptionPreprocess +
172
1 libobjc.A.dylib 0x00007fff90795e75 objc_exception_throw + 43
2 CoreFoundation 0x00007fff95e9bb64
__NSFastEnumerationMutationHandler + 164
3 AppKit 0x00007fff91b57c23 -[NSView trackingAreas] +
237
4 AppKit 0x00007fff91c77e0c -[NSView(NSInternal)
_enableOrDisableTrackingAreas] + 93
5 AppKit 0x00007fff91c81fb1 -[NSView
_windowChangedKeyState] + 850
6 AppKit 0x00007fff91c825a9 -[NSControl
_windowChangedKeyState] + 47
7 AppKit 0x00007fff91c81d9e -[NSView
_windowChangedKeyState] + 319
8 AppKit 0x00007fff91c81bcb -[NSFrameView
_windowChangedKeyState] + 95
9 AppKit 0x00007fff91c8171b -[NSWindow
_setFrameNeedsDisplay:] + 162
10 AppKit 0x00007fff91d7cc44 -[NSWindow
resignMainWindow] + 180
11 AppKit 0x00007fff91c80266 -[NSWindow
_changeKeyAndMainLimitedOK:] + 851
12 AppKit 0x00007fff91c78706 -[NSWindow
_makeKeyRegardlessOfVisibility] + 100
13 AppKit 0x00007fff91c78670 -[NSWindow
makeKeyAndOrderFront:] + 29
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140805/8b5ca356/attachment.html>
More information about the vtkusers
mailing list