Skip to main content

Exception in WComponentPeer

4 replies [Last post]
matzon
Offline
Joined: 2003-06-10
Points: 0

I am getting this stacktrace - not able to determine the cause yet, sorry:
Exception in thread "AWT-EventQueue-1" java.lang.IllegalStateException: Buffers have not been created
at sun.awt.windows.WComponentPeer.getBackBuffer(Unknown Source)
at java.awt.Component$FlipBufferStrategy.getBackBuffer(Unknown Source)
at java.awt.Component$FlipBufferStrategy.updateInternalBuffers(Unknown Source)
at java.awt.Component$FlipBufferStrategy.revalidate(Unknown Source)
at java.awt.Component$FlipBufferStrategy.revalidate(Unknown Source)
at java.awt.Component$FlipBufferStrategy.getDrawGraphics(Unknown Source)
at javax.swing.BufferStrategyPaintManager.prepare(Unknown Source)
at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
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)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
trembovetski
Offline
Joined: 2003-12-31
Points: 0

Thanks, this had been fixed. The fix should appear in build 06.

But it would help if you could determine the sequence of actions
which leads to this exception so that I can verify.

Dmitri
Java2D Team

matzon
Offline
Joined: 2003-06-10
Points: 0

I've not been able to locate the exact cause, however it happens very often!
I am using 3 screens with 2 different graphics cards - one of the screens in another resolution:
[1024x768|Matrox][1280x1024|ATI x300][1280x1024|Matrox]

Whether or not this is the cause, I do not know. But I will let you know if it happens in update 6

Message was edited by: matzon

trembovetski
Offline
Joined: 2003-12-31
Points: 0

Thanks for the update.

Does it happen when a window first appears, or when you drag a window
between the screens?

Dmitri

matzon
Offline
Joined: 2003-06-10
Points: 0

I was able to reproduce it by dragging the Java Console window between two screens (matrox/ati) with the two different resolutions. It also happens between the two screens that have the same resolution (also matrox/ati).
At one point I was able to consistently get the issue whenever the console window was dragged from the matrox to the matrox (lower resolution) screen. I have attached the upper corner of the console when the graphics issues occur