Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  (jogl/cg) jvm crash while initializing cg chader  (Read 1399 times)
0 Members and 1 Guest are viewing this topic.
Offline MW

Innocent Bystander

« Posted 2007-03-16 16:00:24 »

I'm really puzzled.
I have this example that used to work just fine.  Now 4 ouf of 5 times  JVM crashes with the listing (at the bottom).  Has anyone had a similar problem and are there any suggestions on
how to debug this?

Basically,  I'm stuck with  1.4.2 (using 1.4.2_11-b06).  My  sends a lot of data down to the card through  VBO's.  The cg programs manipulate the data.  This all used to work
pretty reliably.  I'm not sure what changed.  
Some additional info:  I'm running in  WinXP pro, GeForce 7800GTX, latest jogl, cgToolkit 1.5.

Here's the  10,000ft view:

In my renderer,  I call
cgContext = CgGL.cgCreateContext();
after the init(GLAutoDrawable) has been called.

Then the renderer loads the shader:
- checks the profiles (and this is supposedly where it breaks)  [vp30/vp40  same thing happens]
- if it gets past this point than things seem to work fine

Again, I'm at a loss, and would appreciate some suggestions.
--- Mike

Here's the JVM dump:

# An unexpected error has been detected by HotSpot Virtual Machine:
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x07e3a4ed, pid=448, tid=1848
# Java VM: Java HotSpot(TM) Server VM (1.4.2_11-b06 mixed mode)
# Problematic frame:
# C  [cgGL.dll+0xa4ed]

---------------  T H R E A D  ---------------

Current thread (0x048441c8):  JavaThread "AWT-EventQueue-0" [_thread_in_native, id=1848]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000000

EAX=0x00000000, EBX=0x00000000, ECX=0x00000001, EDX=0x05d6d194
ESP=0x057df7d0, EBP=0x00000aed, ESI=0x69732aa0, EDI=0x00000000
EIP=0x07e3a4ed, EFLAGS=0x00010202

Top of Stack: (sp=0x057df7d0)
0x057df7d0:   048441c8 078c2700 057df814 00000000
0x057df7e0:   50c2e0f8 05d79b00 00000001 07e3a784
0x057df7f0:   078c2700 50c2e0f8 00000000 078c2700
0x057df800:   00000aee 000015da 057df82c 07e53bd2
0x057df810:   00000000 057df838 07e3ab03 00000000
0x057df820:   07e3185a 50c2e0a0 7ffad000 057dfdec
0x057df830:   07e53a74 ffffffff 057df850 07e3212c
0x057df840:   50c2e0f8 0789438d 00001b59 042ad980

Instructions: (pc=0x07e3a4ed)
0x07e3a4dd:   74 19 ff 15 c4 41 e5 07 50 ff d6 8b f8 8d 48 01
0x07e3a4ed:   8a 10 40 84 d2 75 f9 2b c1 8b d8 8d 44 2b 03 50

Stack: [0x057a0000,0x057e0000),  sp=0x057df7d0,  free space=253k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [cgGL.dll+0xa4ed]

[error occurred during error reporting, step 120, id 0xc0000005]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
v  ~C2IAdapter
J  com.bbn.kineviz.element.MoxelGroup2D.draw(Lcom/bbn/kineviz/graphics/gl/RenderingEnvironment;Ljavax/media/opengl/GLAutoDrawable;Lcom/bbn/kineviz/graphics/gl/moxel/renderer/MoxelRenderer;F)V
v  ~OSRAdapter
j  com.bbn.kineviz.client.avirisExample.LandscapeDisplay.drawEntities(Ljavax/media/opengl/GLAutoDrawable;)V+161
j  com.bbn.kineviz.display.ScatterPlot.display(Ljavax/media/opengl/GLAutoDrawable;)V+320
j  com.bbn.kineviz.client.avirisExample.LandscapeDisplay.display(Ljavax/media/opengl/GLAutoDrawable;)V+73
j  com.sun.opengl.impl.GLDrawableHelper.display(Ljavax/media/opengl/GLAutoDrawable;)V+29
j  com.sun.opengl.impl.GLDrawableHelper.invokeGL(Ljavax/media/opengl/GLDrawable;Ljavax/media/opengl/GLContext;Ljava/lang/Runnable;Ljava/lang/Runnable;)V+418
j  java.awt.event.InvocationEvent.dispatch()V+11
j  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+21
j  java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z+169
j  java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x09296978 JavaThread "Thread-8" [_thread_blocked, id=2712]
  0x00037cf8 JavaThread "DestroyJavaVM" [_thread_blocked, id=3860]
  0x00a7b688 JavaThread "Thread-6" [_thread_blocked, id=2140]
  0x04289da8 JavaThread "RRAnimatorThread" [_thread_blocked, id=856]
  0x04133e20 JavaThread "TimerQueue" daemon [_thread_blocked, id=3164]
  0x041334a8 JavaThread "Thread-2" [_thread_blocked, id=3168]
  0x04689008 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3632]
=>0x048441c8 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=1848]
  0x048c02d8 JavaThread "AWT-Windows" daemon [_thread_in_native, id=2428]
  0x04776270 JavaThread "AWT-Shutdown" [_thread_blocked, id=2940]
  0x04175d18 JavaThread "Monitor Ctrl-Break" daemon [_thread_in_native, id=2572]
  0x00a3aaf0 JavaThread "CompilerThread1" daemon [_thread_blocked, id=2456]
  0x00a39ab8 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2420]
  0x00a38d68 JavaThread "AdapterThread" daemon [_thread_blocked, id=2476]
  0x00a38008 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2484]
  0x009d1d20 JavaThread "Finalizer" daemon [_thread_blocked, id=2460]
  0x009d1198 JavaThread "Reference Handler" daemon [_thread_blocked, id=2452]
[ ... had to trim some text to be able to post ... ]

VM Arguments:
jvm_args: -Xmx1024m -Djava.library.path=c:\work\kineviz_api\lib -Djogl.GLContext.nofree -Dsun.java2d.noddraw=true -Dcom.bbn.kineviz.captureStreams=false -Djava.util.logging.config.file=c:\work\kineviz_examples\kv_examples\configs\ -Didea.launcher.port=7533 -Didea.launcher.bin.path=C:\Program Files\JetBrains\IntelliJ IDEA 6.0\bin -Dfile.encoding=windows-1252
java_command: com.intellij.rt.execution.application.AppMain com.bbn.kineviz.client.RemicalmPatientExample ..\\kv_bd\\data\\remicalm\\DVD\\aB031
Launcher Type: SUN_STANDARD

Environment Variables:
CLASSPATH=.;C:\Program Files\Java\j2re1.4.2_11\lib\ext\
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Graphic Remedy\gDEBugger\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\NVIDIA Corporation\Cg\bin;
PROCESSOR_IDENTIFIER=x86 Family 15 Model 6 Stepping 2, GenuineIntel

---------------  S Y S T E M  ---------------

OS: Windows XP Build 2600 Service Pack 2

CPU:total 4 family 15, cmov, cx8, fxsr, mmx, sse, sse2

Memory: 4k page, physical 2094556k(794964k free), swap 4032664k(2666000k free)

vm_info: Java HotSpot(TM) Server VM (1.4.2_11-b06) for windows-x86, built on Feb 13 2006 10:02:05 by "java_re" with MS VC++ 6.0

Pages: [1]
  ignore  |  Print  

EgonOlsen (45 views)
2018-06-10 19:43:48

EgonOlsen (27 views)
2018-06-10 19:43:44

EgonOlsen (47 views)
2018-06-10 19:43:20

DesertCoockie (210 views)
2018-05-13 18:23:11

nelsongames (127 views)
2018-04-24 18:15:36

nelsongames (126 views)
2018-04-24 18:14:32

ivj94 (867 views)
2018-03-24 14:47:39

ivj94 (128 views)
2018-03-24 14:46:31

ivj94 (779 views)
2018-03-24 14:43:53

Solater (143 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!