jogl-Demos: Error making context current !!!

Hi,

I have a problem starting the jogl-demos:

Exception when staring demos.gears.Gears (and the other demos…):

CANVAS GL IS: net.java.games.jogl.impl.x11.X11GLImpl
CANVAS GLU IS: net.java.games.jogl.impl.GLUImpl
net.java.games.jogl.GLException: Error making context current
at net.java.games.jogl.impl.x11.X11GLContext.makeCurrent(X11GLContext.java:141)
at net.java.games.jogl.impl.x11.X11OnscreenGLContext.makeCurrent(X11OnscreenGLContext.java:111)
at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:162)
at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:182)
at net.java.games.jogl.GLCanvas.display(GLCanvas.java:82)
at net.java.games.jogl.Animator$1.run(Animator.java:104)
at java.lang.Thread.run(Thread.java:534)

I’m putting all the files in the current-directory to isolate the problem:
Files: (ls -l):

total 6024
-rwxr–r-- 1 tw hs 4157116 Sep 5 20:09 jogl-demos-data.jar
-rwxr–r-- 1 tw hs 136125 Sep 5 20:09 jogl-demos-util.jar
-rwxr–r-- 1 tw hs 129162 Sep 5 20:12 jogl-demos.jar
-rwxr–r-- 1 tw hs 567492 Oct 15 11:48 jogl.jar
-rwxr–r-- 1 tw hs 1091542 Oct 15 11:48 libjogl.so
-rwxr–r-- 1 tw hs 49368 Oct 15 11:48 libjogl_cg.so

And starting with :

java -Djava.library.path=. -Dsun.java2d.noddraw=true -classpath jogl-demos.jar:jogl-demos-util.jar:jogl-demos-data.jar:jogl.jar demos.gears.Gears

My java-version is sun-jdk 1.4.2_01-b06 (also tryed with blackdown…)

Output of xdpyinfo (head…):

name of display: :0.0
version number: 11.0
vendor string: Gentoo Linux (XFree86 4.3.0, revision r2)
vendor release number: 40300000
XFree86 version: 4.3.0
maximum request size: 4194300 bytes
motion buffer size: 256
bitmap unit, bit order, padding: 32, LSBFirst, 32
image byte order: LSBFirst
number of supported pixmap formats: 7
supported pixmap formats:
depth 1, bits_per_pixel 1, scanline_pad 32
depth 4, bits_per_pixel 8, scanline_pad 32
depth 8, bits_per_pixel 8, scanline_pad 32
depth 15, bits_per_pixel 16, scanline_pad 32
depth 16, bits_per_pixel 16, scanline_pad 32
depth 24, bits_per_pixel 32, scanline_pad 32
depth 32, bits_per_pixel 32, scanline_pad 32
keycode range: minimum 8, maximum 255
focus: window 0x3200009, revert to PointerRoot
number of extensions: 30
BIG-REQUESTS
DOUBLE-BUFFER
DPMS
Extended-Visual-Information
FontCache
GLX
LBX
MIT-SCREEN-SAVER
MIT-SHM
MIT-SUNDRY-NONSTANDARD
NV-CONTROL
NV-GLX
NVIDIA-GLX
RANDR
RENDER
SECURITY
SHAPE
SYNC
TOG-CUP
X-Resource
XC-APPGROUP
XC-MISC
XFree86-Bigfont
XFree86-Misc
XFree86-VidModeExtension
XInputExtension
XKEYBOARD
XTEST
XVideo
XVideo-MotionCompensation
default screen number: 0
number of screens: 1

screen #0:
dimensions: 1280x1024 pixels (433x347 millimeters)
resolution: 75x75 dots per inch
depths (7): 16, 1, 4, 8, 15, 24, 32
root window id: 0x93
depth of root window: 16 planes
number of colormaps: minimum 1, maximum 1
default colormap: 0x20
default number of colormap cells: 64
preallocated pixels: black 0, white 65535
options: backing-store NO, save-unders NO
largest cursor: 64x64
current input event mask: 0xd84031
KeyPressMask EnterWindowMask LeaveWindowMask
KeymapStateMask SubstructureNotifyMask SubstructureRedirectMask
PropertyChangeMask ColormapChangeMask
number of visuals: 20
default visual id: 0x21
visual:
visual id: 0x21
class: TrueColor
depth: 16 planes

My grafik-card is:

01:00.0 VGA compatible controller: nVidia Corporation NV31 [GeForce FX 5600] (rev a1)

My nvidia-openGL-driver is (/usr/bin/nvidia-installer --driver-info)

The currently installed driver is: ‘NVIDIA Accelerated Graphics Driver for Linux-x86’ (version: 1.0-4496).

Other openGL native applications are working… (BillardGL,celestia…)

Any idea whats wrong ???

Can’t find the old post but I think this error is generally attributed to running in a “wrong” colour depth. Looks like you’re running in 16bit mode, try 24 or 32… maybe someone else can find the other post.

Kev

Thanks, right tip.

24-Bits are working…

many thanks,
Thomas