[vtkusers] Re: vtk java bus error

Steve Joyce Steve.Joyce at sercoassurance.com
Fri Nov 7 03:50:09 EST 2003


Hi,

Try setting the JAVA_OPENGL_NATIVE environment variable before running
VTK with Java on IRIX, e.g.

setenv JAVA_OPENGL_NATIVE (in a csh shell)
 
JAVA_OPENGL_NATIVE=1; export JAVA_OPENGL_NATIVE (in a ksh, sh or bash
shell)

This is mentioned in SGI's release notes for Java3D at
http://www.sgi.com/developers/devtools/languages/java3d121_01.html

Regards,
Steve

clyne at ncar.ucar.edu wrote:

Hi,

I'm having trouble getting the java wrappers to work. Java is
generating a
bus error deep down inside (see below). All of the java "cone" 
examples
produce the same result (as does my own code). 

I'm running under IRIX 6.5.19 with java 1.4.1, using vtk4.2.3. 

Any thoughts?

thanks - jc

 
% /usr/java2/bin/java -classic -classpath
/usr/local/apps/vtk4.2.3/bin/vtk.jar:/usr/local/apps/vtk4.2.3/Wrapping/Java:.
Cone 

SIGBUS    10*  bus error
    si_signo [10]: SIGBUS    10*  bus error
    si_errno [0]: Error 0
    si_code [1]: BUS_ADRALN [addr: 0xD303C038]

    User context info:
	pc = 0x8e0da3c (SignalError = 0x9f8f4d0)
	sp = 0x7ffe2170, ra = 0x9302328
	stackpointer=7ffe1ca0

Full thread dump Classic VM (1.4.1, native threads):
    "Finalizer" (TID:0x4d504e8, sys_thread_t:0x10130618, state:CW,
native ID:0x10003) prio=8
	at java.lang.Object.wait(Native Method)
	at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
	at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
	at
java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:162)
    "Reference Handler" (TID:0x4d50548, sys_thread_t:0x100e99e0,
state:CW, native ID:0x10002) prio=10
	at java.lang.Object.wait(Native Method)
	at java.lang.Object.wait(Object.java:427)
	at
java.lang.ref.Reference$ReferenceHandler.run(Reference.java:120)
    "Signal dispatcher" (TID:0x4d50580, sys_thread_t:0x10034ca8,
state:CW, native ID:0x10001) prio=5
    "main" (TID:0x4d50468, sys_thread_t:0x10029450, state:R, native
ID:0x10000) prio=5
	at vtk.vtkRenderWindow.Render_6(Native Method)
	at vtk.vtkRenderWindow.Render(vtkRenderWindow.java:36)
	at Cone.main(Cone.java:89)
Monitor Cache Dump:
    java.lang.ref.Reference$Lock at 4D50558/4D87550: <unowned>
	Waiting to be notified:
	    "Reference Handler" (0x100e99e0)
    java.lang.ref.ReferenceQueue$Lock at 4D50500/4D87A18: <unowned>
	Waiting to be notified:
	    "Finalizer" (0x10130618)
Registered Monitor Dump:
    utf8 hash table: <unowned>
    Class lock: <unowned>
    JNI pinning lock #150: <unowned>
    JNI pinning lock #0: <unowned>
    JNI global reference lock: <unowned>
    BinClass lock: <unowned>
    Class linking lock: <unowned>
    System class loader lock: <unowned>
    Code rewrite lock: <unowned>
    Heap lock: <unowned>
    Monitor cache lock: owner "main" (0x10029450) 1 entry
    Thread queue lock: owner "main" (0x10029450) 2 entries
    Monitor registry: owner "main" (0x10029450) 1 entry





****Disclaimer***********
This e-mail and any attachments may contain confidential and/or privileged material; it  is for the intended addressee(s) only.  If you are not a named addressee, you must not use, retain or disclose such information.
 
Serco cannot guarantee that the e-mail or any attachments are free from viruses.
 
The views expressed in this e-mail are those of the originator and do not necessarily represent the views of Serco.
 
Nothing in this e-mail shall bind Serco in any contract or obligation.
 
Serco Group plc.  Registered in England and Wales.  No: 2048608
Registered Office:  Serco House, 16 Bartley Wood Business Park, Bartley Way, Hook, Hampshire, RG27 9UY, United Kingdom.
****End Disclaimer*******
<<<<GWIASIG 0.07>>>>



More information about the vtkusers mailing list