I'm having an odd problem with JOGL and Cg on my Gentoo Linux system.
There is no problem to just create a window and draw something, but as soon as i create a Cg context and load a file (and nothing more), it runs a few seconds and then dies with an unexpected error. The funny thing is that Cg works during the time it's alive.
If the problem is under a heavy load (like compiling a program) it runs a bit longer, but still crashes after a while.
The problem appears to be related to Java, I can run C++/Cg programs with no problems at all.
I also tried this on another computer which is pretty similar as this one, and the problem is there too.
My system from the error log:
--------------- S Y S T E M ---------------
OS:Gentoo Base System version 1.12.5
uname:Linux 2.6.18-ck1 #6 Mon Oct 16 13:26:11 CEST 2006 i686
libc:glibc 2.5 NPTL 2.5
rlimit: STACK 8192k, CORE 0k, NPROC 4095, NOFILE 1024, AS infinity
load average:0.18 0.28 0.61
CPU:total 1 family 6, cmov, cx8, fxsr, mmx, sse, mmxext, 3dnowext, 3dnow
Memory: 4k page, physical 516196k(9948k free), swap 1004052k(999888k free)
vm_info: Java HotSpot(TM) Client VM (1.6.0-rc-b103) for linux-x86, built on Oct 19 2006 01:12:25 by "java_re" with gcc 3.2.1-7a (J2SE release)
The computer is an AMD 2200+ with an Nvidia 6600LE 256MB.
I've tried JOGL 1.0.0 and nightly, Cg 1.4.0, 1.4.1 and 1.5.0, glibc 2.4, Java 1.5.0 and different Nvidia drivers and the error is identical all the time.
It does not matter if I only load a vertex or a fragment program, even with different profiles.
Anyone who knows what might be wrong ?
Thanks in advance !