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