[Issue 623] New - Java OpenGL renderer dies with a Failed in SetPixelFormat error

View: New views
7 Messages — Rating Filter:   Alert me  

[Issue 623] New - Java OpenGL renderer dies with a Failed in SetPixelFormat error

by mrav :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://java3d.dev.java.net/issues/show_bug.cgi?id=623
                 Issue #|623
                 Summary|Java OpenGL renderer dies with a Failed in SetPixelFor
                        |mat error
               Component|java3d
                 Version|1.5.2
                Platform|PC
              OS/Version|Windows XP
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|j3d-core
             Assigned to|issues@java3d
             Reported by|mrav






------- Additional comments from mrav@... Wed Jul 15 08:20:50 +0000 2009 -------
We are getting intermittent Java3D errors when using the OpenGL renderer. The
renderer dies after the error and no 3D can be displayed. D3D renderer seems to
work without problems.

-----------------------------------------------------------------------------
Java 3D ERROR : Canvas3D_createNewContext: Failed in SetPixelFormat - (null)

CONTEXT_CREATION_ERROR: Renderer: Error creating Canvas3D graphics context
graphicsDevice = Win32GraphicsDevice[screen=0]
canvas = com.anca.gui.editor3d.java3d.CapturingCanvas3D[canvas0,0,0,242x238]
-----------------------------------------------------------------------------

The system information is as follows:

OS: Windows XP Pro SP2
Graphics card: Mobile Intel 965 Express Chipset Family (GMA X3100)
Driver version: 6.14.0010.5029 (Latest available at the time of error)
DirectX version: 9.1b

We were able to reproduce a similar error using the test case from issue #98, by
running the following command:

java -Dj3d.rend=ogl TestCanvasPanel

Every couple of iterations the error below would occur.

We ran the same test using the D3D renderer and no errors occurred even after
running for ~400 iterations.


-----------------------------------------------------------------------------
Java 3D ERROR : In NativeConfigTemplate : Failed in SetPixelFormat - (null)

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Canvas3D:
 null GraphicsConfiguration
        at javax.media.j3d.Canvas3D.checkForValidGraphicsConfig(Canvas3D.java:982)
        at javax.media.j3d.Canvas3D.<init>(Canvas3D.java:1025)
        at TestCanvasPanel.addCanvas(TestCanvasPanel.java:53)
        at TestCanvasPanel$TaskPerformer$1.run(TestCanvasPanel.java:150)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(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)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 623] Java OpenGL renderer dies with a Failed in SetPixelFormat error

by aces-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://java3d.dev.java.net/issues/show_bug.cgi?id=623






------- Additional comments from aces@... Wed Jul 15 13:41:16 +0000 2009 -------

This is a well known issue with SetPixelFormat() on Intel OpenGL video drivers.
It happens on

Before we open it, please try to increase the amount of memory for your video
card. On some PCs this can be done at BIOS.




---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 623] Java OpenGL renderer dies with a Failed in SetPixelFormat error

by aces-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://java3d.dev.java.net/issues/show_bug.cgi?id=623






------- Additional comments from aces@... Wed Jul 15 13:43:30 +0000 2009 -------
Created an attachment (id=380)
Alternate version of TestCanvasPanel , using a different getBestConfiguration()


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 623] Java OpenGL renderer dies with a Failed in SetPixelFormat error

by mrav :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://java3d.dev.java.net/issues/show_bug.cgi?id=623






------- Additional comments from mrav@... Thu Jul 23 08:49:05 +0000 2009 -------
I increased the video card memory in the BIOS from 128MB to 256MB, however the
SetPixelFormat errors are still happening.
I also tried changing the video memory allocation to FIXED rather than DVTM
(dynamic), again with no improvement.

The output from the alternate TestCanvasPanel is attached.

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 623] Java OpenGL renderer dies with a Failed in SetPixelFormat error

by mrav :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://java3d.dev.java.net/issues/show_bug.cgi?id=623






------- Additional comments from mrav@... Thu Jul 23 08:51:17 +0000 2009 -------
Created an attachment (id=381)
Output from TestCanvasPanelAlternateConfig


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 623] Java OpenGL renderer dies with a Failed in SetPixelFormat error

by aces-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://java3d.dev.java.net/issues/show_bug.cgi?id=623






------- Additional comments from aces@... Fri Oct 30 11:33:42 +0000 2009 -------
Hi

Seems you video driver has preference for 16bits depth buffer.

On Windows, press Ctrl+Alt+F12 keys or right-click on the desktop and select
Graphics Properties.
Go to your "3D Settings" at Intel Video Card control panel, and change
"Depth Buffer Bit Depth Attribute" setting to "Default" or "24 bit Depth Buffer"


Info about "Intel Graphics Property Window" :
http://www.intel.com/support/graphics/sb/CS-030506.htm


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 623] Java OpenGL renderer dies with a Failed in SetPixelFormat error

by mrav :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://java3d.dev.java.net/issues/show_bug.cgi?id=623






------- Additional comments from mrav@... Thu Nov  5 04:31:52 +0000 2009 -------
A preference setting for 16 bit Depth Buffer Bit Depth Attribute exists in 3D
Settings.

However this settings was always on Default. I have also tried setting this to
24-bit with no improvement in the results.

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...