[vtkusers] VTK Java problem
Jeff Lee
jeff at cdnorthamerica.com
Tue Aug 27 15:02:30 EDT 2002
Here's my cut at ImagePlaneWidget, there are definitely some issues in
java if the 3dWidget doesn't belong to vtkCanvas. I re-arranged your
code and it works for me - don't forget to change the path to VTKData
back to your path... Let me know if it works or not. If you need more
explanation, let me know.
-Jeff
Blezek, Daniel J (Research) wrote:
>Hi all,
>
> I've started experimenting with Java and VTK. Unfortunately, I'm getting segfaults when running,
>and I think they pertain to threads. When I run the attached ImagePlaneWidget code: the window comes
>up correctly, and I can manipulate the widget to my heart's content. However, when I resize the
>window and manipulate the widget, I get this output from GDB:
>
># An unexpected exception has been detected in native code outside the VM.# Program
>counter=0x4a7467f4
>#
># Problematic Thread: prio=1 tid=0x8143808 nid=0x4490 runnable
>#
>
>Program received signal SIGABRT, Aborted.
>0x4049fb75 in sigsuspend () from /lib/libc.so.6
>(gdb) bt
>#0 0x4049fb75 in sigsuspend () from /lib/libc.so.6
>#1 0x4003db79 in pthread_setconcurrency () at eval.c:41
>#2 0x40039ddc in pthread_cond_wait () at eval.c:41
>#3 0x401e8e3e in Monitor::wait () at eval.c:41
>#4 0x402214f8 in Threads::destroy_vm () at eval.c:41
>#5 0x40198f0d in jni_DestroyJavaVM () at eval.c:41
>#6 0x08049385 in main () at eval.c:41
>#7 0x4048d5d7 in __libc_start_main () from /lib/libc.so.6
>
>The ImagePlaneWidget.java code is an adaptation of the ImagePlane.tcl example. Things are moving in
>the right direction, this did not even run a few weeks ago...
>
>Open for suggestions,
>-dan
>
>P.S. To compile this code, you'll neeed the latest and greatest Wrapping/Java/vtk/*.java
>
>--
>Daniel Blezek, Ph.D.
>blezek at crd.ge.com
>Visualization and Computer Vision Lab, Imaging Technologies
>GE Global Research Center
> <<ImagePlaneWidget.java>>
>
>
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
>
>
>
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ImagePlaneWidget.java
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020827/1a09d742/attachment.txt>
More information about the vtkusers
mailing list