-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.4.0
-
generic
-
generic
I've included the source files to reproduce this problem. I've only noticed that it happens on Solaris. If you don't see it the first time, try running it a couple of times, it is not always consistent.
The following exception should be thrown:
-----------------------------------------------------------------
Exception occurred during event dispatching:
javax.swing.text.StateInvariantError: GlyphView: Stale view: javax.swing.text.BadLocationException:
Invalid location
at javax.swing.text.GlyphView.getText(GlyphView.java:101)
at javax.swing.text.GlyphPainter1.paint(GlyphPainter1.java:96)
at javax.swing.text.GlyphView.paintTextUsingColor(GlyphView.java:394)
at javax.swing.text.GlyphView.paint(GlyphView.java:385)
at javax.swing.text.BoxView.paintChild(BoxView.java:130)
at javax.swing.text.BoxView.paint(BoxView.java:394)
at javax.swing.text.BoxView.paintChild(BoxView.java:130)
at javax.swing.text.BoxView.paint(BoxView.java:394)
at javax.swing.text.ParagraphView.paint(ParagraphView.java:568)
at javax.swing.text.AsyncBoxView$ChildLocator.paintChildren(AsyncBoxView.java:916)
at javax.swing.text.AsyncBoxView.paint(AsyncBoxView.java:592)
at javax.swing.text.ZoneView$Zone.paint(ZoneView.java:523)
at javax.swing.text.BoxView.paintChild(BoxView.java:130)
at javax.swing.text.BoxView.paint(BoxView.java:394)
at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1221)
at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:543)
at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:677)
at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:656)
at javax.swing.JComponent.paintComponent(JComponent.java:430)
at javax.swing.JComponent.paint(JComponent.java:689)
at javax.swing.JComponent.paintChildren(JComponent.java:536)
at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4240)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4186)
at javax.swing.JComponent._paintImmediately(JComponent.java:4138)
at javax.swing.JComponent.paintImmediately(JComponent.java:3970)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:399)
at
javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:120)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:421)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:122)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:118)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
-----------------------------------------------------------------
edmund.lou@eng 2000-10-24
Swing Test Developer
---------------------------------
Further investigation yielded results in which this problem is not just limited to Solaris. It happens on Windows as well. Attaching full stack trace. Test program has been attached to this bug report.
javax.swing.text.StateInvariantError: GlyphView: Stale view: javax.swing.text.BadLocationException: Invalid location
at javax.swing.text.GlyphView.getText(GlyphView.java:101)
at javax.swing.text.GlyphPainter1.paint(GlyphPainter1.java:96)
at javax.swing.text.GlyphView.paintTextUsingColor(GlyphView.java:394)
at javax.swing.text.GlyphView.paint(GlyphView.java:385)
at javax.swing.text.BoxView.paintChild(BoxView.java:130)
at javax.swing.text.BoxView.paint(BoxView.java:394)
at javax.swing.text.BoxView.paintChild(BoxView.java:130)
at javax.swing.text.BoxView.paint(BoxView.java:394)
at javax.swing.text.ParagraphView.paint(ParagraphView.java:568)
at javax.swing.text.AsyncBoxView$ChildLocator.paintChildren(AsyncBoxView.java:916)
at javax.swing.text.AsyncBoxView.paint(AsyncBoxView.java:592)
at javax.swing.text.ZoneView$Zone.paint(ZoneView.java:523)
at javax.swing.text.BoxView.paintChild(BoxView.java:130)
at javax.swing.text.BoxView.paint(BoxView.java:394)
at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1221)
at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:543)
at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:677)
at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:656)
at javax.swing.JComponent.paintComponent(JComponent.java:430)
at javax.swing.JComponent.paint(JComponent.java:689)
at javax.swing.JComponent.paintChildren(JComponent.java:536)
at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4240)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4186)
at javax.swing.JComponent._paintImmediately(JComponent.java:4138)
at javax.swing.JComponent.paintImmediately(JComponent.java:3970)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:399)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:120)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:421)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:122)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:118)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
Exception occurred during event dispatching:
javax.swing.text.StateInvariantError: GlyphView: Stale view: javax.swing.text.BadLocationException: Invalid location
at javax.swing.text.GlyphView.getText(GlyphView.java:101)
at javax.swing.text.GlyphPainter1.paint(GlyphPainter1.java:96)
at javax.swing.text.GlyphView.paintTextUsingColor(GlyphView.java:394)
at javax.swing.text.GlyphView.paint(GlyphView.java:385)
at javax.swing.text.BoxView.paintChild(BoxView.java:130)
at javax.swing.text.BoxView.paint(BoxView.java:394)
at javax.swing.text.BoxView.paintChild(BoxView.java:130)
at javax.swing.text.BoxView.paint(BoxView.java:394)
at javax.swing.text.ParagraphView.paint(ParagraphView.java:568)
at javax.swing.text.AsyncBoxView$ChildLocator.paintChildren(AsyncBoxView.java:916)
at javax.swing.text.AsyncBoxView.paint(AsyncBoxView.java:592)
at javax.swing.text.ZoneView$Zone.paint(ZoneView.java:523)
at javax.swing.text.BoxView.paintChild(BoxView.java:130)
at javax.swing.text.BoxView.paint(BoxView.java:394)
at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1221)
at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:543)
at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:677)
at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:656)
at javax.swing.JComponent.paintComponent(JComponent.java:430)
at javax.swing.JComponent.paint(JComponent.java:689)
at javax.swing.JComponent.paintChildren(JComponent.java:536)
at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4240)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4186)
at javax.swing.JComponent._paintImmediately(JComponent.java:4138)
at javax.swing.JComponent.paintImmediately(JComponent.java:3970)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:399)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:120)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:421)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:122)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:118)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
edmund.lou@eng 2000-10-26
Swing Test Developer
---------------------------------
The following exception should be thrown:
-----------------------------------------------------------------
Exception occurred during event dispatching:
javax.swing.text.StateInvariantError: GlyphView: Stale view: javax.swing.text.BadLocationException:
Invalid location
at javax.swing.text.GlyphView.getText(GlyphView.java:101)
at javax.swing.text.GlyphPainter1.paint(GlyphPainter1.java:96)
at javax.swing.text.GlyphView.paintTextUsingColor(GlyphView.java:394)
at javax.swing.text.GlyphView.paint(GlyphView.java:385)
at javax.swing.text.BoxView.paintChild(BoxView.java:130)
at javax.swing.text.BoxView.paint(BoxView.java:394)
at javax.swing.text.BoxView.paintChild(BoxView.java:130)
at javax.swing.text.BoxView.paint(BoxView.java:394)
at javax.swing.text.ParagraphView.paint(ParagraphView.java:568)
at javax.swing.text.AsyncBoxView$ChildLocator.paintChildren(AsyncBoxView.java:916)
at javax.swing.text.AsyncBoxView.paint(AsyncBoxView.java:592)
at javax.swing.text.ZoneView$Zone.paint(ZoneView.java:523)
at javax.swing.text.BoxView.paintChild(BoxView.java:130)
at javax.swing.text.BoxView.paint(BoxView.java:394)
at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1221)
at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:543)
at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:677)
at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:656)
at javax.swing.JComponent.paintComponent(JComponent.java:430)
at javax.swing.JComponent.paint(JComponent.java:689)
at javax.swing.JComponent.paintChildren(JComponent.java:536)
at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4240)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4186)
at javax.swing.JComponent._paintImmediately(JComponent.java:4138)
at javax.swing.JComponent.paintImmediately(JComponent.java:3970)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:399)
at
javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:120)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:421)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:122)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:118)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
-----------------------------------------------------------------
edmund.lou@eng 2000-10-24
Swing Test Developer
---------------------------------
Further investigation yielded results in which this problem is not just limited to Solaris. It happens on Windows as well. Attaching full stack trace. Test program has been attached to this bug report.
javax.swing.text.StateInvariantError: GlyphView: Stale view: javax.swing.text.BadLocationException: Invalid location
at javax.swing.text.GlyphView.getText(GlyphView.java:101)
at javax.swing.text.GlyphPainter1.paint(GlyphPainter1.java:96)
at javax.swing.text.GlyphView.paintTextUsingColor(GlyphView.java:394)
at javax.swing.text.GlyphView.paint(GlyphView.java:385)
at javax.swing.text.BoxView.paintChild(BoxView.java:130)
at javax.swing.text.BoxView.paint(BoxView.java:394)
at javax.swing.text.BoxView.paintChild(BoxView.java:130)
at javax.swing.text.BoxView.paint(BoxView.java:394)
at javax.swing.text.ParagraphView.paint(ParagraphView.java:568)
at javax.swing.text.AsyncBoxView$ChildLocator.paintChildren(AsyncBoxView.java:916)
at javax.swing.text.AsyncBoxView.paint(AsyncBoxView.java:592)
at javax.swing.text.ZoneView$Zone.paint(ZoneView.java:523)
at javax.swing.text.BoxView.paintChild(BoxView.java:130)
at javax.swing.text.BoxView.paint(BoxView.java:394)
at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1221)
at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:543)
at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:677)
at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:656)
at javax.swing.JComponent.paintComponent(JComponent.java:430)
at javax.swing.JComponent.paint(JComponent.java:689)
at javax.swing.JComponent.paintChildren(JComponent.java:536)
at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4240)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4186)
at javax.swing.JComponent._paintImmediately(JComponent.java:4138)
at javax.swing.JComponent.paintImmediately(JComponent.java:3970)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:399)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:120)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:421)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:122)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:118)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
Exception occurred during event dispatching:
javax.swing.text.StateInvariantError: GlyphView: Stale view: javax.swing.text.BadLocationException: Invalid location
at javax.swing.text.GlyphView.getText(GlyphView.java:101)
at javax.swing.text.GlyphPainter1.paint(GlyphPainter1.java:96)
at javax.swing.text.GlyphView.paintTextUsingColor(GlyphView.java:394)
at javax.swing.text.GlyphView.paint(GlyphView.java:385)
at javax.swing.text.BoxView.paintChild(BoxView.java:130)
at javax.swing.text.BoxView.paint(BoxView.java:394)
at javax.swing.text.BoxView.paintChild(BoxView.java:130)
at javax.swing.text.BoxView.paint(BoxView.java:394)
at javax.swing.text.ParagraphView.paint(ParagraphView.java:568)
at javax.swing.text.AsyncBoxView$ChildLocator.paintChildren(AsyncBoxView.java:916)
at javax.swing.text.AsyncBoxView.paint(AsyncBoxView.java:592)
at javax.swing.text.ZoneView$Zone.paint(ZoneView.java:523)
at javax.swing.text.BoxView.paintChild(BoxView.java:130)
at javax.swing.text.BoxView.paint(BoxView.java:394)
at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1221)
at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:543)
at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:677)
at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:656)
at javax.swing.JComponent.paintComponent(JComponent.java:430)
at javax.swing.JComponent.paint(JComponent.java:689)
at javax.swing.JComponent.paintChildren(JComponent.java:536)
at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4240)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4186)
at javax.swing.JComponent._paintImmediately(JComponent.java:4138)
at javax.swing.JComponent.paintImmediately(JComponent.java:3970)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:399)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:120)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:421)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:122)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:118)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
edmund.lou@eng 2000-10-26
Swing Test Developer
---------------------------------
- duplicates
-
JDK-4362091 Merlin Stylepad throws swing.text.StateInvariantError: GlyphView during Cut
-
- Closed
-