I am running an application that uses BufferStrategy with 2 buffers to do page flipping in a 640X480 display mode. When I am running this application with OpenGL flag enabled, I am getting a NPE when the application terminates.
This is reproducible only with the following PIT build on WinXP. Not reproducible with Mustang-b49.
java version "1.6.0-internal"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-internal-java2d_28_aug_2005_21_23-b00)
Java HotSpot(TM) Client VM (build 1.6.0-ea-b49, mixed mode)
Here is the exception:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at sun.awt.image.VolatileSurfaceManager.displayChanged(VolatileSurfaceManager.java:310)
at sun.awt.SunDisplayChanger.notifyListeners(SunDisplayChanger.java:102)
at sun.awt.Win32GraphicsEnvironment.displayChanged(Win32GraphicsEnvironment.java:115)
at sun.awt.windows.WToolkit$4.run(WToolkit.java:727)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
This is not reproducible with d3d, ddraw modes on the same system. The WinXP machine that I used is having a NVidia GeForce4 MX4000 video card with (77.77) nvidia driver.
Run the attached test on WinXP. You would notice the display modes changes automatically. Wait for the application to terminate. You would notice the above exception on the console. This exception is occuring intermittently. So you may have to run the app a few times to reproduce the bug.