Could not find a valid pixel format ...

[quote]I also see that you are using Display.create() to create a default display. It is possible that some of the computers are set to 256 palettised colour mode as a default, which won’t really work with texturing. Try inserting this code before Display.create() & report back
[/quote]
I’ve told those that test it that it uses the same resolution as windows does, and that they should try different modes by changing resolutions/pixel depth… to no avail…

A problem is that to test various stuff I have to send it to some friend to try it out (where it doesn’t work… it works on all my computers…), so experimenting is a bit of a hassle… but I’ll try.

[quote]I find it really odd that the exception is occuring in GL11.glGenTextures, where it simply cannot happen. You’re not using some strange thread’y setup, are you (for example calling gl commands from a different thread than the one creating the Display)?
[/quote]
Yep, thought that was strange too… there is only the one thread in the client (the main thread)… so nothing weird going on at all…

Through googling I found out that GL_LINE_SMOOTH is not supported by 9600 and higher cards from ATI… but would it cause them to crash? Anyways, I disabled that, and I’ll let my brother try later to see if helps any…

Alan_W. maybe you can test if it works on your card…

http://hem.bredband.net/rashog/SpaceWar.zip

Just see if you get in to the startscreen… it will say “SpaceWar enter your name pilot:” Unless I have the server running on my computer it will die once you hit enter without giving a warning message… (it’s pre-alpha version). But if it shows the startscreen at least it’s working…

(Yes, but does Ultratron work?)

Cas :slight_smile:

it works good on my computer… but my game does also… I have not been able to test it on one of the computers that crash with my game yet… cause my friends are all working.

But as soon as I get hold of anyone I’ll ask them to test it…

I can’t start your Jar - could not find main class

Tried extracting files and starting manually (major/minor version error) This was using 1.4.2. Is this a Java 1.5 prog?

Put Java 1.5 on this comp. Your prog now loads fine, but (as you say) stalls at the name entry screen

Your jar works fine on my machine. (1.5.0_04, XP)

Cas :slight_smile:

Ok thanx!

2 more that it works on =)…

Alan_W, what graphics driver do you use… it should work on my brothers comp using that same driver I’m guessing…

One of my friends tried Ultratron… didn’t work… but I didn’t think it would cos he’s running a laptop with ATI Rage Mobility… and googling gives a lot of people with problems running opengl apps on that card.

Another friend has 4 mb video mem… can’t do much with that… does disabling depthbuffer free that memory for other usage? Does OpenGl store textures in ordinary ram if it’s not enough room in video mem? (I guess it’s probably up to the driver… so theoretically you should be able to run on 4 mb if it’s got a compatible driver…)

Driver is 6.14.10.0272 according to the display properties
DxDiag thinks it is 6.14.0010.6512 dated 20th January 2005
(They are checking the dates on different DLLs)

I think these might be Catalyst 5.2 drivers, but that isn’t stated anywhere explicitly.

Ok, thanx. He’s been very busy, so we have not been able to test yet…

I removed glEnable(GL_LINE_SMOOTHING) before you tested it… maybe that was what was causing it to break on ati 9600… cause they apparently don’t support it.

Well, I’ll have to try it again on my brothers comp…

I got a new laptop yesterday (Acer TM3002… love it)… and the game works fine on it :-)… so now I can develop anywhere!

Hi,

I found an old S3 Savage4 card that I successfully reproduced the native crash. I’ve comitted the bug fix to CVS, so anyone with a native crashing S3/VIA whatever, please test with this unofficial updated dll:

http://odense.kollegienet.dk/~naur/lwjgl.dll

EDIT: You’ll need an updated lwjgl.jar too. Get it here:

http://odense.kollegienet.dk/~naur/lwjgl.jar

  • elias

I happen to have a kind of same problem using AWTGLCanvas on GF2MX cards:

The download link for jar does not work, so i was unable to test your fix, Elias. ;(


Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: org.lwjgl.LWJ 
GLException: Could not find a valid pixel format 
        at org.lwjgl.opengl.AWTGLCanvas.paint(AWTGLCanvas.java:261) 
        at sun.awt.RepaintArea.paintComponent(Unknown Source) 
        at sun.awt.RepaintArea.paint(Unknown Source) 
        at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source) 
        at java.awt.Component.dispatchEventImpl(Unknown Source) 
        at java.awt.Component.dispatchEvent(Unknown Source) 
        at java.awt.EventQueue.dispatchEvent(Unknown Source) 
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) 
 
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) 
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source) 
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source) 
        at java.awt.EventDispatchThread.run(Unknown Source) 
Caused by: org.lwjgl.LWJGLException: Could not find a valid pixel format 
        at org.lwjgl.opengl.Win32PeerInfo.nChoosePixelFormat(Native Method) 
        at org.lwjgl.opengl.Win32PeerInfo.choosePixelFormat(Win32PeerInfo.java:5 
2) 
        at org.lwjgl.opengl.Win32AWTGLCanvasPeerInfo.doLockAndInitHandle(Win32AW 
TGLCanvasPeerInfo.java:59) 
        at org.lwjgl.opengl.PeerInfo.lockAndGetHandle(PeerInfo.java:85) 
        at org.lwjgl.opengl.AWTGLCanvas.paint(AWTGLCanvas.java:245) 
        ... 11 more 

I have gotten pixelformat errors when launching any opengl app when jcreator is running with two windows open for a strange reason. Not that is matters as i now use eclipse. :slight_smile:

Edit: that game works fine on my card - geforcemx4000

The fix is in LWJGL 0.99, you can test that instead.

  • elias

sorry for late reply, that’s on 0.99. ;(

What information do you need to verify the issue ?

Are you supplying any particular PixelFormat to the canvas? Does Display.create work?

  • elias

Just discovered the problem.
That was actually not on my system, so i could not verify it properly. It appeared that it was GF2MX with default windows drivers ;-/////

Disregard my previous request. :wink: