[vtkusers] VTK 4.0 and JInternalFrame (java 1.4)
Thomas Krueger
krueger at techinfo.rwth-aachen.de
Thu Mar 28 04:15:24 EST 2002
Hi all,
we use j2sdk 1.4 and VTK 4.0 on linux. As default unnamed packages (classes
without package definition) are no longer allowed in java 1.4, we moved the
vtkPanel to the vtk package (with changes in Common/vtkJavaAwt.h).
This configuration works fine with most applications but causes an error with
JInternalFrames.
If we use the vtkPanel in JInternalFrames on a main Window, "overlapping" the
vtkPanel or minimizing the Frames causes the JVM to crash (see attached error).
The "overlapping" JInternalFrames appear behind the VTK-RenderWindows. In
contrast, the vtkPanel works fine, if we use separate JFrames.
Any suggestions? Is there another way of getting vtkPanel to work with jdk1.4?
Thanks,
Tom
--- error log ---
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x5FEA7B1C
Function=XMesaDitherColor+0x16D8
Library=/usr/lib/libGL.so.1
Current Java thread:
at vtk.vtkPanel.RenderInternal(Native Method)
at vtk.vtkPanel.Render(vtkPanel.java:83)
- locked <0x465a3bf8> (a vtk.vtkPanel)
at vtk.vtkPanel.paint(vtkPanel.java:91)
at sun.awt.RepaintArea.paint(RepaintArea.java:180)
at sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:339)
at java.awt.Component.dispatchEventImpl(Component.java:3586)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
Dynamic libraries:
08048000-0804d000 r-xp 00000000 08:09 284674 /home/j2sdk1.4.0/bin/java
....(more on demand)....
More information about the vtkusers
mailing list