[vtkusers] vtkPanel in java for HP.
Liya Chernyakova
liya.chernyakova at staarinc.com
Tue Mar 19 14:22:04 EST 2002
I am using modified vtkPanel class. With the main fumction.
I try to run it on HP and the program seems to die while loading the first library.
this is the error message I receive:
vtkPanel::System.loadLibrary(vtkCommonJava)
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0xc106c59c
Function name=pthread_mutex_destroy
Library=/usr/lib/libpthread.1
Current Java thread:
"main" prio=3 tid=0x0000fcd0 nid=1 lwp_id=7139 runnable [0x7aff2000..0x7aff2220]
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
- locked <0x774034b0> (a java.util.Vector)
- locked <0x774116d0> (a java.util.Vector)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
- locked <0x7742a110> (a java.lang.Runtime)
at java.lang.System.loadLibrary(Unknown Source)
at com.staarinc.vtk.vtkPanel.<clinit>(vtkPanel.java:39)
Dynamic libraries:
/opt/java1.3/bin/../bin/PA_RISC2.0/native_threads/java
text:0x00001000-0x000066cc data:0x00007000-0x00007324
/opt/java1.3/bin/../jre/lib/PA_RISC2.0/server/libjvm.sl
text:0xc2c00000-0xc33bd000 data:0x7af14000-0x7afc9000
/usr/lib/libpthread.1
text:0xc1060000-0xc1076000 data:0x7aea1000-0x7aea4000
/usr/lib/libm.2
text:0xc0230000-0xc025c000 data:0x7aea4000-0x7aea5000
/usr/lib/libcl.2
text:0xc1140000-0xc11ed000 data:0x7aea6000-0x7aeed000
/usr/lib/libisamstub.1
text:0xc00de000-0xc00df000 data:0x7aea5000-0x7aea6000
/usr/lib/libCsup.2
text:0xc1120000-0xc113b000 data:0x7aeed000-0x7aef0000
/usr/lib/libc.2
text:0xc0100000-0xc022b000 data:0x7afce000-0x7afe5000
/usr/lib/libdld.2
text:0xc0006000-0xc0009000 data:0x7afc9000-0x7afca000
/opt/graphics/OpenGL/lib/libogltls.sl
text:0xc0004000-0xc0006000 data:0x7afe9000-0x7afea000
/opt/java1.3/jre/lib/PA_RISC2.0/native_threads/libhpi.sl
text:0xc1040000-0xc1051000 data:0x7aea0000-0x7aea1000
/opt/java1.3/bin/../jre/lib/PA_RISC2.0/libverify.sl
text:0xc0b70000-0xc0b80000 data:0x7ae8e000-0x7ae8f000
/opt/java1.3/bin/../jre/lib/PA_RISC2.0/libjava.sl
text:0xc1c70000-0xc1c9c000 data:0x7ae89000-0x7ae8e000
/opt/java1.3/bin/../jre/lib/PA_RISC2.0/libzip.sl
text:0xc1dd0000-0xc1de3000 data:0x7ae87000-0x7ae89000
/opt/java1.3/bin/../jre/lib/PA_RISC2.0/libawt.sl
text:0xc022b000-0xc022d000 data:0x7ac58000-0x7ac59000
/opt/java1.3/jre/lib/PA_RISC2.0/motif21/libmawt.sl
text:0xc4100000-0xc42cb000 data:0x7ac40000-0x7ac58000
/opt/java1.3/bin/../jre/lib/PA_RISC2.0/libmlib_image.sl
text:0xc2090000-0xc20cc000 data:0x78978000-0x7897e000
/usr/lib/Motif2.1/libXm.4
text:0xc2200000-0xc2422000 data:0x773c6000-0x77400000
/usr/lib/libXp.2
text:0xc05e8000-0xc05f0000 data:0x7ac03000-0x7ac04000
/usr/lib/X11R6/libXt.3
text:0xc2100000-0xc215d000 data:0x7ac14000-0x7ac1f000
/usr/lib/X11R6/libSM.2
text:0xc02b4000-0xc02bd000 data:0x7ac0c000-0x7ac0e000
/usr/lib/X11R6/libICE.2
text:0xc05d0000-0xc05e5000 data:0x7ac0e000-0x7ac12000
/usr/lib/X11R6/libXext.3
text:0xc0fe0000-0xc0ff7000 data:0x7ac1f000-0x7ac21000
/usr/lib/X11R6/libXtst.2
text:0xc03e8000-0xc03ee000 data:0x7ac21000-0x7ac22000
/usr/lib/X11R6/libX11.3
text:0xc1200000-0xc1304000 data:0x7ac26000-0x7ac3e000
/branch/home/held/JavaProjects/libvtkCommonJava.sl
text:0xc4300000-0xc4531000 data:0x77356000-0x773c6000
/branch/home/held/vtk_40/VTK/bin//libvtkCommon.sl
text:0xc4800000-0xc4c0b000 data:0x772b6000-0x77356000
/usr/lib/libcma.2
text:0xc0340000-0xc03af000 data:0x78955000-0x7895b000
/usr/lib/libstd_v2.2
text:0xc4600000-0xc4758000 data:0x705e4000-0x705ff000
/usr/lib/libCsup_v2.2
text:0xc1f60000-0xc1f7b000 data:0x78961000-0x78964000
this message is received while attempting to run the code:
public static void main (String args[]) {
System.err.println("vtkPanel::System.loadLibrary(vtkCommonJava)");
System.loadLibrary("vtkCommonJava");
System.err.println("vtkPanel::System.loadLibrary(vtkFilteringJava)");
System.loadLibrary("vtkFilteringJava");
System.err.println("vtkPanel::System.loadLibrary(vtkIOJava)");
System.loadLibrary("vtkIOJava");
System.err.println("vtkPanel::System.loadLibrary(vtkImagingJava)");
System.loadLibrary("vtkImagingJava");
System.err.println("vtkPanel::System.loadLibrary(vtkGraphicsJava)");
System.loadLibrary("vtkGraphicsJava");
System.err.println("vtkPanel::System.loadLibrary(vtkRenderingJava)");
System.loadLibrary("vtkRenderingJava");
System.err.println("vtkPanel::System.loadLibrary(vtkHybridJava)");
System.loadLibrary("vtkHybridJava");
vtkPanel panel = new vtkPanel(null);
JFrame frame = new JFrame("SimpleVTK");
frame.addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent e) {System.exit(0);}
});
frame.getContentPane().add("Center", panel);
frame.pack();
frame.setVisible(true);
}
Can anybody give me an idea of what can possibly be wrong in the situation described?
Can it be the problem between pthreads and native threads?
Is there any way to build the vtk stuff with native threads?
Thank you,
Liya Chernyakova
Simulation Technology & Applied Research, Inc.
11520 N. Port Washington Rd.
Suite 101 B
Mequon, WI 53092
Phone: (262) 240-0291 ext.104
FAX: (262) 240-0294
e-mail: liya.chernyakova at staarinc.com
web: http://www.staarinc.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020319/11865337/attachment.htm>
More information about the vtkusers
mailing list