MW
|
 |
«
Posted
2007-03-16 17:00:24 » |
|
Hi 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. Thanks! --- 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
Registers: 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) j com.sun.opengl.cg.CgGL.cgGLIsProfileSupported(I)Z+0 j com.bbn.kineviz.graphics.gl.cg.CGShader.chooseProfiles()Z+43 j com.bbn.kineviz.graphics.gl.cg.CGShader.loadCgPrograms()Z+17 j com.bbn.kineviz.graphics.gl.cg.CGShader.bind()V+16 j com.bbn.kineviz.graphics.gl.moxel.renderer.VBORenderer.render(Lcom/bbn/kineviz/graphics/gl/RenderingEnvironment;Ljavax/media/opengl/GLAutoDrawable;FLcom/bbn/kineviz/element/MoxelData;)V+311 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 javax.media.opengl.GLCanvas$DisplayAction.run()V+80 j com.sun.opengl.impl.GLDrawableHelper.invokeGL(Ljavax/media/opengl/GLDrawable;Ljavax/media/opengl/GLContext;Ljava/lang/Runnable;Ljava/lang/Runnable;)V+418 j javax.media.opengl.GLCanvas$DisplayOnEventDispatchThreadAction.run()V+35 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 j java.awt.EventDispatchThread.run()V+9 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\logging.properties -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\QTJava.zip 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
|