<!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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;at 
java.lang.ClassLoader$NativeLibrary.load(Native Method)<BR>&nbsp;at 
java.lang.ClassLoader.loadLibrary0(Unknown Source)<BR>&nbsp;- locked 
&lt;0x774034b0&gt; (a java.util.Vector)<BR>&nbsp;- locked &lt;0x774116d0&gt; (a 
java.util.Vector)<BR>&nbsp;at java.lang.ClassLoader.loadLibrary(Unknown 
Source)<BR>&nbsp;at java.lang.Runtime.loadLibrary0(Unknown Source)<BR>&nbsp;- 
locked &lt;0x7742a110&gt; (a java.lang.Runtime)<BR>&nbsp;at 
java.lang.System.loadLibrary(Unknown Source)<BR>&nbsp;at 
com.staarinc.vtk.vtkPanel.&lt;clinit&gt;(vtkPanel.java:39)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Dynamic 
libraries:<BR>/opt/java1.3/bin/../bin/PA_RISC2.0/native_threads/java<BR>&nbsp;text:0x00001000-0x000066cc 
data:0x00007000-0x00007324<BR>/opt/java1.3/bin/../jre/lib/PA_RISC2.0/server/libjvm.sl<BR>&nbsp;text:0xc2c00000-0xc33bd000 
data:0x7af14000-0x7afc9000<BR>/usr/lib/libpthread.1<BR>&nbsp;text:0xc1060000-0xc1076000 
data:0x7aea1000-0x7aea4000<BR>/usr/lib/libm.2<BR>&nbsp;text:0xc0230000-0xc025c000 
data:0x7aea4000-0x7aea5000<BR>/usr/lib/libcl.2<BR>&nbsp;text:0xc1140000-0xc11ed000 
data:0x7aea6000-0x7aeed000<BR>/usr/lib/libisamstub.1<BR>&nbsp;text:0xc00de000-0xc00df000 
data:0x7aea5000-0x7aea6000<BR>/usr/lib/libCsup.2<BR>&nbsp;text:0xc1120000-0xc113b000 
data:0x7aeed000-0x7aef0000<BR>/usr/lib/libc.2<BR>&nbsp;text:0xc0100000-0xc022b000 
data:0x7afce000-0x7afe5000<BR>/usr/lib/libdld.2<BR>&nbsp;text:0xc0006000-0xc0009000 
data:0x7afc9000-0x7afca000<BR>/opt/graphics/OpenGL/lib/libogltls.sl<BR>&nbsp;text:0xc0004000-0xc0006000 
data:0x7afe9000-0x7afea000<BR>/opt/java1.3/jre/lib/PA_RISC2.0/native_threads/libhpi.sl<BR>&nbsp;text:0xc1040000-0xc1051000 
data:0x7aea0000-0x7aea1000<BR>/opt/java1.3/bin/../jre/lib/PA_RISC2.0/libverify.sl<BR>&nbsp;text:0xc0b70000-0xc0b80000 
data:0x7ae8e000-0x7ae8f000<BR>/opt/java1.3/bin/../jre/lib/PA_RISC2.0/libjava.sl<BR>&nbsp;text:0xc1c70000-0xc1c9c000 
data:0x7ae89000-0x7ae8e000<BR>/opt/java1.3/bin/../jre/lib/PA_RISC2.0/libzip.sl<BR>&nbsp;text:0xc1dd0000-0xc1de3000 
data:0x7ae87000-0x7ae89000<BR>/opt/java1.3/bin/../jre/lib/PA_RISC2.0/libawt.sl<BR>&nbsp;text:0xc022b000-0xc022d000 
data:0x7ac58000-0x7ac59000<BR>/opt/java1.3/jre/lib/PA_RISC2.0/motif21/libmawt.sl<BR>&nbsp;text:0xc4100000-0xc42cb000 
data:0x7ac40000-0x7ac58000<BR>/opt/java1.3/bin/../jre/lib/PA_RISC2.0/libmlib_image.sl<BR>&nbsp;text:0xc2090000-0xc20cc000 
data:0x78978000-0x7897e000<BR>/usr/lib/Motif2.1/libXm.4<BR>&nbsp;text:0xc2200000-0xc2422000 
data:0x773c6000-0x77400000<BR>/usr/lib/libXp.2<BR>&nbsp;text:0xc05e8000-0xc05f0000 
data:0x7ac03000-0x7ac04000<BR>/usr/lib/X11R6/libXt.3<BR>&nbsp;text:0xc2100000-0xc215d000 
data:0x7ac14000-0x7ac1f000<BR>/usr/lib/X11R6/libSM.2<BR>&nbsp;text:0xc02b4000-0xc02bd000 
data:0x7ac0c000-0x7ac0e000<BR>/usr/lib/X11R6/libICE.2<BR>&nbsp;text:0xc05d0000-0xc05e5000 
data:0x7ac0e000-0x7ac12000<BR>/usr/lib/X11R6/libXext.3<BR>&nbsp;text:0xc0fe0000-0xc0ff7000 
data:0x7ac1f000-0x7ac21000<BR>/usr/lib/X11R6/libXtst.2<BR>&nbsp;text:0xc03e8000-0xc03ee000 
data:0x7ac21000-0x7ac22000<BR>/usr/lib/X11R6/libX11.3<BR>&nbsp;text:0xc1200000-0xc1304000 
data:0x7ac26000-0x7ac3e000<BR>/branch/home/held/JavaProjects/libvtkCommonJava.sl<BR>&nbsp;text:0xc4300000-0xc4531000 
data:0x77356000-0x773c6000<BR>/branch/home/held/vtk_40/VTK/bin//libvtkCommon.sl<BR>&nbsp;text:0xc4800000-0xc4c0b000 
data:0x772b6000-0x77356000<BR>/usr/lib/libcma.2<BR>&nbsp;text:0xc0340000-0xc03af000 
data:0x78955000-0x7895b000<BR>/usr/lib/libstd_v2.2<BR>&nbsp;text:0xc4600000-0xc4758000 
data:0x705e4000-0x705ff000<BR>/usr/lib/libCsup_v2.2<BR>&nbsp;text:0xc1f60000-0xc1f7b000 
data:0x78961000-0x78964000</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>this message is received while attempting to run 
the code:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>public static void main (String args[]) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; 
System.err.println("vtkPanel::System.loadLibrary(vtkCommonJava)");<BR>&nbsp;&nbsp;&nbsp; 
System.loadLibrary("vtkCommonJava"); <BR>&nbsp;&nbsp;&nbsp; 
System.err.println("vtkPanel::System.loadLibrary(vtkFilteringJava)");<BR>&nbsp;&nbsp;&nbsp; 
System.loadLibrary("vtkFilteringJava"); <BR>&nbsp;&nbsp;&nbsp; 
System.err.println("vtkPanel::System.loadLibrary(vtkIOJava)");<BR>&nbsp;&nbsp;&nbsp; 
System.loadLibrary("vtkIOJava"); <BR>&nbsp;&nbsp;&nbsp; 
System.err.println("vtkPanel::System.loadLibrary(vtkImagingJava)");<BR>&nbsp;&nbsp;&nbsp; 
System.loadLibrary("vtkImagingJava"); <BR>&nbsp;&nbsp;&nbsp; 
System.err.println("vtkPanel::System.loadLibrary(vtkGraphicsJava)");<BR>&nbsp;&nbsp;&nbsp; 
System.loadLibrary("vtkGraphicsJava"); <BR>&nbsp;&nbsp;&nbsp; 
System.err.println("vtkPanel::System.loadLibrary(vtkRenderingJava)");<BR>&nbsp;&nbsp;&nbsp; 
System.loadLibrary("vtkRenderingJava"); <BR>&nbsp;&nbsp;&nbsp; 
System.err.println("vtkPanel::System.loadLibrary(vtkHybridJava)");<BR>&nbsp;&nbsp;&nbsp; 
System.loadLibrary("vtkHybridJava");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
vtkPanel panel = new 
vtkPanel(null);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
JFrame frame = new 
JFrame("SimpleVTK");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
frame.addWindowListener(new WindowAdapter() 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
public void windowClosing(WindowEvent e) 
{System.exit(0);}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
});<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
frame.getContentPane().add("Center", 
panel);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
frame.pack();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
frame.setVisible(true);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}<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 &amp; 
Applied Research, Inc.<BR>11520 N. Port Washington Rd.<BR>Suite 101 B<BR>Mequon, 
WI&nbsp; 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>