History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-12387
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Dmitry Jemerov
Reporter: Oleg Mikheev
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

CLONE -Major screen glitches

Created: 21 Nov 06 20:47   Updated: 01 Dec 06 14:23
Component/s: None
Fix Version/s: Demetra 6.0.3

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Zip Archive 6107log.zip (66 kb)

Environment:
Sun jdk 1.5.0_09, installed separately from Idea
WinXP Prof with all latest updates
Issue Links:
Duplicate
 
This issue is duplicated by:
IDEA-10617 Repaint fucks up Resolved

Build: 5,784
Fixed in build: 6,578
Severity: High


 Description  « Hide
6.0.1 produces lots of glitches
Same thing was with 6.0.0
Same thing on Linux
Can happen immediately or after some reasonable working time

 All   Comments   Work Log   Change History      Sort Order:
Oleg Mikheev - 21 Nov 06 20:56
Had to clone IDEA-10118 b/c it was marked as resolved.
Screen glitches are produced by error logic in awt event handler.
This is a bug and it has to be fixed.
Actually these are two bugs - first one is widths detection, another one is coding event handling
in a way which can lead to screen glitches, if I understand everything right.

2006-11-21 20:42:46,611 [453743813] ERROR - com.intellij.ide.IdeEventQueue - IntelliJ IDEA 6.0.1 Build #5784
2006-11-21 20:42:46,611 [453743813] ERROR - com.intellij.ide.IdeEventQueue - JDK: 1.5.0_09
2006-11-21 20:42:46,611 [453743813] ERROR - com.intellij.ide.IdeEventQueue - VM: Java HotSpot(TM) Client VM
2006-11-21 20:42:46,611 [453743813] ERROR - com.intellij.ide.IdeEventQueue - Vendor: Sun Microsystems Inc.
2006-11-21 20:42:46,611 [453743813] ERROR - com.intellij.ide.IdeEventQueue - OS: Windows XP
2006-11-21 20:42:46,611 [453743813] ERROR - com.intellij.ide.IdeEventQueue - Last Action: EditorDeleteToWordStart
2006-11-21 20:42:46,720 [453743922] ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.PaintEvent[UPDATE,updateRect=java.awt.Rectangle[x=4,y=23,width=1151,height=786]] on frame0
java.lang.IndexOutOfBoundsException: Wrong offset: 17868
at com.intellij.openapi.editor.ex.util.SegmentArray.findSegmentIndex(SegmentArray.java:92)
at com.intellij.openapi.editor.impl.LineSet.findLineIndex(LineSet.java:90)
at com.intellij.openapi.editor.impl.DocumentImpl.getLineNumber(DocumentImpl.java:108)
at com.intellij.openapi.editor.impl.EditorGutterComponentImpl.b(EditorGutterComponentImpl.java:49)
at com.intellij.openapi.editor.impl.EditorGutterComponentImpl.a(EditorGutterComponentImpl.java:586)
at com.intellij.openapi.editor.impl.EditorGutterComponentImpl.b(EditorGutterComponentImpl.java:144)
at com.intellij.openapi.editor.impl.EditorGutterComponentImpl.c(EditorGutterComponentImpl.java:186)
at com.intellij.openapi.editor.impl.EditorGutterComponentImpl.paint(EditorGutterComponentImpl.java:526)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JViewport.paint(JViewport.java:728)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at com.intellij.openapi.fileEditor.impl.EditorTabbedContainer$MyTabbedPane.paint(EditorTabbedContainer.java:58)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
at java.awt.Container.paint(Container.java:1709)
at javax.swing.JFrame.update(JFrame.java:392)
at sun.awt.RepaintArea.updateComponent(RepaintArea.java:239)
at sun.awt.RepaintArea.paint(RepaintArea.java:216)
at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:254)
at java.awt.Component.dispatchEventImpl(Component.java:4031)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:163)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:8)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:145)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)


Vladislav Kaznacheev - 29 Nov 06 13:23
Thanks for the information.

Though this looks like this might be not the first exception, but rather some consequences of an earlier problem. Can you send us a full idea.log file?

Any details on steps to reproduce this will help us very much.


Oleg Mikheev - 30 Nov 06 21:49
Almost started to think 6107 fixed the problem, but it repeated today.
Same story - screen glitches. On Win32 this time.

Oleg Mikheev - 30 Nov 06 21:51
6107log.zip contains logs since the first time I ran 6.0.2 till it started producing glitches.
It took her 9 days.

Dmitry Jemerov - 01 Dec 06 14:23
Exceptions during reparse no longer cause invalid folding data to be produced, which caused exceptions during painting of the folding outline. Note that the real underlying problem is still the JSP reparse exceptions, and my fix does not address them.