Display creation fails on Windows 7

Started by NateS, April 11, 2009, 18:32:33

Previous topic - Next topic

NateS

A user has reported this error on Windows 7:
Quote
org.lwjgl.LWJGLException: Pixel format not accelerated
   at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)
   at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)
   at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:174)
   at org.lwjgl.opengl.Display.createWindow(Display.java:308)
   at org.lwjgl.opengl.Display.create(Display.java:816)
   at org.lwjgl.opengl.Display.create(Display.java:744)
   at singsong.game.SingSongGameContainer.<init>(SingSongGameContainer.java:50)
   at singsong.game.SingSongGame$2.run(SingSongGame.java:263)
   at singsong.game.SingSongGame.main(SingSongGame.java:291)

Here is a code snippet showing the code that fails:
try {
	Display.create(new PixelFormat(8, 8, 0, samples));
} catch (Throwable ex1) {
	Display.destroy();
	try {
		Display.create(new PixelFormat(8, 8, 0));
	} catch (Throwable ex2) {
		Display.destroy();
		Display.create(new PixelFormat()); // FAILS HERE!
	}
}

FWIW, samples == 0.

Any ideas?

Edit: fixed [ code ] tag.

kappa

any idea's which graphics card the user has?

NateS

Yes, sort of. I should have included that they are using a "Dell Vostro 1500". From a cursory search, it appears the cheapest option is an nVidia GeForce 8400 GS. It seems to be a relatively recent computer (the latest similar Dell Vostro is only at model number 1520).

Matzon

Missing OpenGL drivers. Either add allowSoftwareOpenGL or ask them to install drivers.

NateS

Bingo. allowSoftwareOpenGL let it run, but at ~5fps. Thanks guys!