Bug 35 - VM crashes with "EXCEPTION_STACK_OVERFLOW" when binding a CG fragment program
Summary: VM crashes with "EXCEPTION_STACK_OVERFLOW" when binding a CG fragment program
Status: VERIFIED INVALID
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All windows
: P2 normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2003-09-01 07:05 CEST by Sven Gothel
Modified: 2010-03-24 07:45 CET (History)
0 users

See Also:
Type: DEFECT
SCM Refs:
Workaround: ---


Attachments
Contains the VM error log, as well as the source and binaries for my repro test case. (8.65 KB, application/octet-stream)
2003-09-01 19:06 CEST, Sven Gothel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2010-03-24 07:45:49 CET


---- Reported by sbonneau 2003-09-01 19:05:39 ----

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 
PC=0x2A8E8BB7
Function=[Unknown.]
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)
	at net.java.games.cg.CgGL.cgGLBindProgram(CgGL.java:894)
	at Main$Renderer.display(Main.java:54)
	at net.java.games.jogl.impl.GLDrawableHelper.display
(GLDrawableHelper.java:74)
	at net.java.games.jogl.GLCanvas$DisplayAction.run(GLCanvas.java:208)
	at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:192)
	- locked <0x100a02f8> (a 
net.java.games.jogl.impl.windows.WindowsOnscreenGLContext)
	at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:196)
	at net.java.games.jogl.GLCanvas.display(GLCanvas.java:91)
	at net.java.games.jogl.Animator$1.run(Animator.java:104)
	at java.lang.Thread.run(Thread.java:534)
-----------

The specs that I'm running with are the following:

Windows 2000
GeForce4 Ti 4200 (driver v6.14.10.4403)
CG Toolkit v1.1.307.700
JDK 1.4.2

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.



---- Additional Comments From sbonneau 2003-09-01 19:06:49 ----

Created an attachment
Contains the VM error log, as well as the source and binaries for my repro test case.




---- Additional Comments From kbr 2005-01-31 01:41:55 ----

Sorry for not commenting on this earlier. I am pretty sure this is a bug in the
submitter's test case. I haven't found any examples of Cg programs on the net
that bind a fragment program exclusively, in particular one which doesn't take
any input parameters. I'm going to mark this as invalid, as the Cg demos which
are in the jogl-demos project work fine. If you can come up with a boiled-down
test case that works in the C programming language but not in Java with JOGL's
Cg bindings then please reopen this bug or file a new one and attach both
languages' test cases.




--- Bug imported by sgothel@jausoft.com 2010-03-24 07:45 EDT  ---

This bug was previously known as _bug_ 35 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=35
Imported an attachment (id=11)

The original submitter of attachment 11 [details] is unknown.
   Reassigning to the person who moved it here: sgothel@jausoft.com.