Unable to enumerate pixel formats

I have a Sony VAIO laptop (GRX500) with ATI’s Mobility Radeon 7500 video card. Everytime when I run a JOGL program (even a very simple one), it always throw the following exception:

Exception in thread “main” net.java.games.jogl.GLException: Unable to enumerate
pixel formats of window using wglGetPixelFormatAttribivARB
at net.java.games.jogl.impl.windows.WindowsGLContext.choosePixelFormatAn
dCreateContext(WindowsGLContext.java:378 )
at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.create(Wind
owsOnscreenGLContext.java:204)
at net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(Windows
GLContext.java:133)
at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent
(WindowsOnscreenGLContext.java:110)
at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:232)
at net.java.games.jogl.GLCanvas.reshape(GLCanvas.java:97)

My video card driver is the latest I can find. Can anyone please help?

Hi

I’m having the same problem on a Dell Optiplex GX110 with no hardware acceleration, running Windows 2000. Funny thing is my app worked fine on this machine until I made some major additions and it will be difficult to tell what actually broke it - I don’t have regular access to this particular PC. All I have is a simpler, older version of my game that works here and one much later one that doesn’t. The problem doesn’t appear to be related to the JOGL build I’m using.

I have tried using Frame instead of JFrame. In addition to my main JFrame containing the GLCanvas I also have number of separate floating JFrames. I tried creating these after jogl initialization as the last thing in the init(GLDrawable) method, but that didn’t help. Other than that my setup procedure looks pretty much the same as that of the Gears demo.

Also strange is that my version that worked on this machine only did so in 16bit color. In 24bit (the only other option available), I got nothing but a white screen even though the animator was still definitely running.

OK, its a lousy machine, and really at the low-end of my target market, but I’d like have this app run on just about anything capable of running Windows.

Any ideas?

This is probably the fourth thread on this in just 2 weeks, one of the threads has an explaination of what the problem but not a way to work around it.

Anyone run the webstart demos on the same machine that gives the enumeration error (did those give the error too)?