For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Error running LinuxSampleTopology-3.0

Anonymous's picture
Forums: 

When I run the LinuxSampleTopology demo on redhat 6.0 with Jave JRE 1.2.2, it crashes with a SIGSEGV and I get the stack trace below. Has anyone else seen this?

[mitchem@raptor java]$ ./runme01.csh PATH = /opt/jre1.2.2:/opt/Acrobat4/bin:/opt/jre1.2.2/bin:/opt/3d/bin:/opt/gnome/bin:/opt/net/bin:/opt/gnu/bin:/usr/local/bin:/home/mitchem/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin LD_LIBRARY_PATH = /opt/build/3d/CAS3.0/demo/SamplesTopology/java:/opt/build/3d/CAS3.0/Linux/lib:/ot/gnome/lib:/opt/net/lib:/opt/gnu/lib:/usr/lib:/opt/3d/lib method unknown (eip = 4599e452) SIGSEGV 11* segmentation violation

si_signo [11]: SIGSEGV 11* segmentation violation

si_errno [0]: Success

si_code [0]: SI_USER [pid: 0, uid: 0]

stackpointer=0xbfffef78

Full thread dump Classic VM (1.2.2-RC2-K, green threads):

"TimerQueue" (TID:0x40eba170, sys_thread_t:0x8734f48, state:CW) prio=6

at java.lang.Object.wait(Native Method)

at javax.swing.TimerQueue.run(TimerQueue.java:236)

at java.lang.Thread.run(Thread.java, Compiled Code)

"Image Animator 0" (TID:0x40ebd198, sys_thread_t:0x87044f0, state:R) prio=3

at java.lang.Thread.setPriority0(Native Method)

at java.lang.Thread.setPriority(Thread.java, Compiled Code)

at sun.awt.image.ImageDecoder.headerComplete(ImageDecoder.java, Compiled Code)

at sun.awt.image.GifImageDecoder.readImage(GifImageDecoder.java, Compiled Code)

at sun.awt.image.GifImageDecoder.produceImage(GifImageDecoder.java, Compiled Code)

at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java, Compiled Code)

at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java, Compiled Code

at sun.awt.image.ImageFetcher.run(ImageFetcher.java, Compiled Code)

"Screen Updater" (TID:0x40ec8540, sys_thread_t:0x869f7f8, state:R) prio=4

at sun.awt.ScreenUpdater.run(ScreenUpdater.java:100)

"Image Animator 1" (TID:0x40ebcac8, sys_thread_t:0x8607940, state:R) prio=3

at java.lang.Thread.setPriority0(Native Method)

at java.lang.Thread.setPriority(Thread.java, Compiled Code)

at sun.awt.image.ImageDecoder.headerComplete(ImageDecoder.java, Compiled Code)

at sun.awt.image.GifImageDecoder.readImage(GifImageDecoder.java, Compiled Code)

at sun.awt.image.GifImageDecoder.produceImage(GifImageDecoder.java, Compiled Code)

at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java, Compiled Code)

at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java, Compiled Code

at sun.awt.image.ImageFetcher.run(ImageFetcher.java, Compiled Code)

"AWT-Motif" (TID:0x40eb1e60, sys_thread_t:0x82258b0, state:R) prio=5

at sun.awt.motif.MToolkit.run(Native Method)

at java.lang.Thread.run(Thread.java:479)

"SunToolkit.PostEventQueue-0" (TID:0x40eb1f58, sys_thread_t:0x835b488, state:CW) prio=5

at java.lang.Object.wait(Native Method)

at java.lang.Object.wait(Object.java, Compiled Code)

at sun.awt.PostEventQueue.run(SunToolkit.java:413)

"AWT-EventQueue-0" (TID:0x40eb2538, sys_thread_t:0x8354130, state:CW) prio=6 at java.lang.Object.wait(Native Method)

at java.lang.Object.wait(Object.java, Compiled Code)

at java.awt.EventQueue.getNextEvent(EventQueue.java:208)

at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:100)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)

"Finalizer" (TID:0x40e98320, sys_thread_t:0x8107e10, state:CW) prio=8

at java.lang.Object.wait(Native Method)

at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java, Compiled Code)

at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java, Compiled Code)

at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174)

"Reference Handler" (TID:0x40e983b0, sys_thread_t:0x81030c0, state:CW) prio=10

at java.lang.Object.wait(Native Method)

at java.lang.Object.wait(Object.java, Compiled Code)

at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)

"Signal dispatcher" (TID:0x40e983e0, sys_thread_t:0x8101208, state:CW) prio=

"main" (TID:0x40e981e0, sys_thread_t:0x804c288, state:R) prio=5

at SamplesTopologyJni.X3dService.Viewer(Native Method)

at app.Viewer3d.jbInit(Viewer3d.java:87)

at app.Viewer3d. (Viewer3d.java:76)

at app.Viewer3d. (Viewer3d.java:64)

at SampleTopologyPrimitivesDoc.createViewers(SampleTopologyPrimitivesDoc.java:59)

at SampleTopologyPrimitivesDoc. (SampleTopologyPrimitivesDoc.java:46)

at SampleTopologyPrimitivesApp.newDocument(SampleTopologyPrimitivesApp.java:206)

at app.Desktop.newDocument(Desktop.java:899)

at SampleTopologyPrimitivesStarter. (SampleTopologyPrimitivesStarter.java:29)

at SampleTopologyPrimitivesStarter.main(SampleTopologyPrimitivesStarter.java:43) Monitor Cache Dump:

java.awt.EventQueue@40EB2460/40F3E938:

Waiting to be notified:

"AWT-EventQueue-0" (0x8354130)

jcas.Locker@40EBAAA0/41002420: owner "main" (0x804c288) 1 entry

javax.swing.TimerQueue@40EBA158/41002A90:

Waiting to be notified:

"TimerQueue" (0x8734f48)

java.lang.ref.ReferenceQueue$Lock@40E98338/40ECDD78:

Waiting to be notified:

"Finalizer" (0x8107e10)

sun.awt.PostEventQueue@40EB1F58/40F3ECE0:

Waiting to be notified:

"SunToolkit.PostEventQueue-0" (0x835b488)

java.lang.ref.Reference$Lock@40E983C0/40ECD8A8:

Waiting to be notified:

"Reference Handler" (0x81030c0) Registered Monitor Dump:

Invoker change lock:

utf8 hash table:

JNI pinning lock:

JNI global reference lock:

BinClass lock:

Class linking lock:

System class loader lock:

Code rewrite lock:

Heap lock:

Monitor cache lock: owner "main" (0x804c288) 1 entry

Dynamic loading lock:

Monitor IO lock:

User signal monitor:

Waiting to be notified:

"Signal dispatcher" (0x8101208)

Child death monitor:

I/O monitor: owner "AWT-Motif" (0x82258b0) 1 entry

Alarm monitor:

Waiting to be notified:

(0x80576f0)

Thread queue lock: owner "main" (0x804c288) 1 entry

Monitor registry: owner "main" (0x804c288) 1 entry

Haffray Arnaud's picture

As you can see on the page http://www.opencascade.org/about/platfor.html you must have the java 2 *** for running the samples. This version is available on the sun web site at http://developer.java.sun.com

Arnaud

Terrence Mitchem's picture

From the "platforms" page on www.opencascade.org:

"The Java 2 Platform (JDK or JRE), Standard Edition, v 1.2.2 Release Candidate 1 (RC1) has to be installed."

This is exactly what I downloaded and installed from java.sun.com. What was it about the stack trace I posted that indicates I have the wrong version? I really want to get this thing going because I'm dying to run the samples :)

Thanks, Terrence Mitchem

Haffray Arnaud's picture

Sorry,

you've got the good version, I've just confuses verion 2*** and 1.2.2 which are the same thing.

Boulcourt Jean-Michel's picture

Your problem seems to be related to a known bug with hidden line removal mode. You can see in a previous thread "Shape Viewer" (21st of December 99) that someone else got a stack trace dump similar to your trace. Hidden line removal is activated by the rightmost icon button in the document window. I think it is deactivated by default when running the sample. Check that.

mark's picture

Terrance,

When are you getting this error? At startup, or when you start to interact with the JAVA GUI?

I am running the demos fine, except for the hidden line removal problem I posted earlier.

I have a Mandrake setup (based on Redhat6.0), so you should be able to run at least as well as me.

Terrence Mitchem's picture

I get this error 10-20 seconds after the window with the menus appears.

Terrence Mitchem

Bob Schader's picture

I see by your post that you are running JDK 1.2.2 "RC2" and so am I. It was just released by Sun last week. Matra states compatibility with JDK 1.2.2 "RC1". I am getting the almost exact same problem with the SampleGeometry application. When I run it, first the icon bar window comes up, then what looks like a small main window with File menus, etc which contains a status line saying "Creating new document...". After a little delay (10-20 seconds) another window starts to open which appears to be the main graphics window. Within 2 seconds of that window being displayed completely is when I get the stack dump. This is with no interaction on my part at all. I have noticed when I executed the build.csh script to recompile the java sources that there is one warning about a deprecated method (I believe it was in one of the X11 classes). Even after a rebuild of the jar file I got the same results. I have not yet tried adding the -deprecation flag to the rebuild process to see if that helps. Might also try rebuilding the shared libs for the Sample app too, but I will copy them to the same dir as the OpenCascade main libs which I now have configured in /etc/ld.so.conf, then run ldconfig (I don't like having to use LD_LIBRARY_PATH).

mark's picture

It seems I am running RC2 as well but it is working for me...

java -version java version "1.2.2-RC2" Classic VM (build 1.2.2-RC2-K, green threads, javacomp)

I do think the problem is a new one. Looking through the traceback, I can't help but think the problem is related to the C++ call from java at the following location:

at SamplesTopologyJni.X3dService.Viewer(Native Method) at app.Viewer3d.jbInit(Viewer3d.java:87)

At first, I thought your LD_LIBRARY_PATH might be wrong and that you weren't picking up the right .so file. Of course, my analysis may be wrong since I don't have the problem.

In the case that I am on the right track, here are the sizes of the .so files I have. If you have recompiled, you might check to see that you have the same thing:

-rw-rw-r-- 1 mark mark 72976 Dec 28 12:07 libISession.so -rw-rw-r-- 1 mark mark 1316701 Dec 28 12:07 libSamplesTopologyJni.so -rw-rw-r-- 1 mark mark 431045 Dec 28 12:07 libSamplesTopologyPackage.so -rw-rw-r-- 1 mark mark 12397 Dec 28 12:07 libX3dService.so -rw-rw-r-- 1 mark mark 21012 Dec 28 12:07 libXService.so -rw-rw-r-- 1 mark mark 22073 Dec 28 12:07 libjcas.so