Any time I try to bind a fragment program with CgGL.cgGLBindProgram(), the VM
crashes with EXCEPTION_STACK_OVERFLOW. I've looked into the JNI glue code
that's generated for this function, and nothing looks out of the ordinary. I even
went so far as to write a C-based version of my test program to make sure that it
wasn't something screwy with the CG configuration on my box.
Here's an excerpt from the error log that the VM generates:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_STACK_OVERFLOW (0xc00000fd) occurred at
Library=C:\Program Files\NVIDIA Corporation\Cg\bin\cgGL.dll
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at net.java.games.cg.CgGL.cgGLBindProgram0(Native Method)
- locked <0x100a02f8> (a
The specs that I'm running with are the following:
GeForce4 Ti 4200 (driver v188.8.131.5203)
CG Toolkit v1.1.307.700
My JoGL binaries were built locally from freshly updated sources using VC6. I can't
think of anything else off the top of my head that might be relevant.
I'll attach a zip file containing the source for a boiled-down test that reliably
reproeduces the crash for me, the corresponding pre-compiled binaries, and hte
hs_err_pid<ID> log file that the VM generated.