-
Bug
-
Resolution: Unresolved
-
P3
-
None
-
6
-
Fix Understood
-
x86
-
windows_xp
I am running one of the demos (Java2Demo / SwingSet2) with OpenGL flag on WinXP using the following Swing PIT build:
java version "swing-jcg-win-03-2005-03-23-int.mustang"
Java(TM) 2 Runtime Environment, Standard Edition (build swing-jcg-win-03-2005-03-23-int.mustang)
Java HotSpot(TM) Client VM (build 1.6.0-ea-b28, mixed mode)
OpenGL is enabled since I am using NVidia GeForce4 MX4000 video card. When the application is running, I am opening the display panel and disabling the hardware acceleration and clicking 'Apply'. Once i do this, I am seeing lot of ClassCastExceptions on the console, thrown repeatedly.
This is not reproducible with the latest promoted build - Mustang-b28. This is not reproducible without opengl, works fine on the current PIT build as well as earlier promoted builds. This is reproducible on the original Swing PIT build dated 19.Mar.2005 (which does not have the fix for-6244071) as well as on the Re-spin dated 24.Mar.2004. I think this is caused by the GrayRect fix.
Here is the exception from SwingSet2:
Exception in thread "AWT-Windows" java.lang.ClassCastException: sun.awt.Win32GraphicsConfig cannot be cast to sun.java2d.opengl.WGLGraphicsConfig
at sun.java2d.opengl.WGLVolatileSurfaceManager.initAcceleratedSurface(WGLVolatileSurfaceManager.java:64)
at sun.awt.image.VolatileSurfaceManager.validate(VolatileSurfaceManager.java:146)
at sun.awt.image.SunVolatileImage.validate(SunVolatileImage.java:225)
at java.awt.Component$BltBufferStrategy.revalidate(Component.java:3771)
at java.awt.Component$BltSubRegionBufferStrategy.validateAndShow(Component.java:3863)
at javax.swing.BufferStrategyPaintManager.show(BufferStrategyPaintManager.java:243)
at javax.swing.RepaintManager.show(RepaintManager.java:1109)
at javax.swing.SwingPaintEventDispatcher.createPaintEvent(SwingPaintEventDispatcher.java:43)
at sun.awt.windows.WComponentPeer.postPaintIfNecessary(WComponentPeer.java:625)
at sun.awt.windows.WComponentPeer.handleExpose(WComponentPeer.java:609)
at sun.awt.windows.WToolkit.eventLoop(Native Method)
at sun.awt.windows.WToolkit.run(WToolkit.java:270)
at java.lang.Thread.run(Thread.java:595)
###@###.### 2005-03-24 05:28:05 GMT
java version "swing-jcg-win-03-2005-03-23-int.mustang"
Java(TM) 2 Runtime Environment, Standard Edition (build swing-jcg-win-03-2005-03-23-int.mustang)
Java HotSpot(TM) Client VM (build 1.6.0-ea-b28, mixed mode)
OpenGL is enabled since I am using NVidia GeForce4 MX4000 video card. When the application is running, I am opening the display panel and disabling the hardware acceleration and clicking 'Apply'. Once i do this, I am seeing lot of ClassCastExceptions on the console, thrown repeatedly.
This is not reproducible with the latest promoted build - Mustang-b28. This is not reproducible without opengl, works fine on the current PIT build as well as earlier promoted builds. This is reproducible on the original Swing PIT build dated 19.Mar.2005 (which does not have the fix for-6244071) as well as on the Re-spin dated 24.Mar.2004. I think this is caused by the GrayRect fix.
Here is the exception from SwingSet2:
Exception in thread "AWT-Windows" java.lang.ClassCastException: sun.awt.Win32GraphicsConfig cannot be cast to sun.java2d.opengl.WGLGraphicsConfig
at sun.java2d.opengl.WGLVolatileSurfaceManager.initAcceleratedSurface(WGLVolatileSurfaceManager.java:64)
at sun.awt.image.VolatileSurfaceManager.validate(VolatileSurfaceManager.java:146)
at sun.awt.image.SunVolatileImage.validate(SunVolatileImage.java:225)
at java.awt.Component$BltBufferStrategy.revalidate(Component.java:3771)
at java.awt.Component$BltSubRegionBufferStrategy.validateAndShow(Component.java:3863)
at javax.swing.BufferStrategyPaintManager.show(BufferStrategyPaintManager.java:243)
at javax.swing.RepaintManager.show(RepaintManager.java:1109)
at javax.swing.SwingPaintEventDispatcher.createPaintEvent(SwingPaintEventDispatcher.java:43)
at sun.awt.windows.WComponentPeer.postPaintIfNecessary(WComponentPeer.java:625)
at sun.awt.windows.WComponentPeer.handleExpose(WComponentPeer.java:609)
at sun.awt.windows.WToolkit.eventLoop(Native Method)
at sun.awt.windows.WToolkit.run(WToolkit.java:270)
at java.lang.Thread.run(Thread.java:595)
###@###.### 2005-03-24 05:28:05 GMT
- relates to
-
JDK-6532818 OGL: VM Crash when launching a test that changes display mode, Win32
- Open
-
JDK-6244071 PIT: OGL: Swing is broken on OpenGL pipeline with the gray rect fix, Win32
- Closed
-
JDK-6319746 PIT:OGL: VM crash when changing the display mode from 32 bit to 8 bit programmatically, Win32
- Closed