IntelliJ 6.0.1 Problem highlighting/inspections

Hi
I've been having some strange problems when editing java files (vague I know, I'll describe the problem...).
It's a large java project (scope window for entire project says 34k files), lots of jars, classes, no javascript.
I have the windows keep heap on switch flag set, and allocate a bunch of memory, etc in vm options as suggested in other threads.
I turned off anti virus for the project directory and intellij and its settings/cache dirs.
I also turned off synchronize on frame activation.

Plugins I have installed (latest versions): Rearranger (although this problem occurred before I installed this), TMate, IdeaJAD (no decompiled source in project), CheckStyle-IDEA (disabled).

The problem is that it seems like IntelliJ's cache of the file is corrupt. Side effects include: errors highlighting (invalid symbol) for perfectly normal code. Reformatting does nothing, or performs incorrectly (as if the class finished half way, methods get pushed to gutter, etc). Code inspection doesn't find anything. Rearranger plugin does nothing (dialog doesn't appear).
Also the code loses its syntax highlighting and is refreshed every few seconds (very annoying). And the realtime inspections for the file never complete. Refactorings like rename variable don't work.

Now this doesn't happen all the time or on any file, it seemed to be larger files at first but happened elsewhere too. Also I wiped out the system contents for the projects and had it rebuild the cache several times. Each time I rebuild the cache the problem goes away.

The main operation I was performing that seems to cause this problem is Rename refactor (I was renaming each method's parameters). The result was a broken method (formatted wrong, or didn't add "this." automatically if renaming to an existing field name). Then those sideeffects listed before occur, even if I restart IntelliJ, reopen/refresh the file, etc. Only deleting the cache fixes it (until I rename sometime again, and not always the first time).

The exceptions I get in the log files differ too, although the most common one seemed to be related to the highlighting.
I turned off inplace renaming of variables in the editor options and have not had the problem reoccur since doing that.

Would this be related to the java 1.5 windows file handle bug?

Sorry if this is logged or something, I had a lot of trouble trying to find information in the tracker (and not enough time to look further).
Thanks for any help/info anyone can provide.

Below are the exceptions I find in the system log:

2006-11-06 14:58:33,958 ERROR - pi.editor.impl.MarkupModelImpl - Assertion failed
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:89)
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:96)
at com.intellij.openapi.editor.impl.MarkupModelImpl.removeHighlighter(MarkupModelImpl.java:51)
at com.intellij.codeInsight.daemon.impl.UpdateHighlightersUtil.setHighlightersToEditor(UpdateHighlightersUtil.java:162)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.doApplyInformationToEditor(GeneralHighlightingPass.java:22)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.applyInformationToEditor(TextEditorHighlightingPass.java:74)
at com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl$9$1.run(DaemonCodeAnalyzerImpl.java:6)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:6)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
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)
2006-11-06 14:58:33,958 ERROR - pi.editor.impl.MarkupModelImpl - IntelliJ IDEA 6.0.1 Build #5784
2006-11-06 14:58:33,958 ERROR - pi.editor.impl.MarkupModelImpl - JDK: 1.5.0_08
2006-11-06 14:58:33,968 ERROR - pi.editor.impl.MarkupModelImpl - VM: Java HotSpot(TM) Client VM
2006-11-06 14:58:33,968 ERROR - pi.editor.impl.MarkupModelImpl - Vendor: Sun Microsystems Inc.
2006-11-06 14:58:33,968 ERROR - pi.editor.impl.MarkupModelImpl - OS: Windows XP
2006-11-06 14:58:33,968 ERROR - pi.editor.impl.MarkupModelImpl - Last Action: SaveAll
2006-11-06 14:58:33,978 ERROR - pi.editor.impl.RangeMarkerImpl - start > end: start=7808; end=7807
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:48)
at com.intellij.openapi.editor.impl.RangeMarkerImpl.(RangeMarkerImpl.java:48) at com.intellij.openapi.editor.impl.RangeHighlighterImpl.]]>(RangeHighlighterImpl.java:57)
at com.intellij.openapi.editor.impl.MarkupModelImpl.a(MarkupModelImpl.java:78)
at com.intellij.openapi.editor.impl.MarkupModelImpl.addRangeHighlighter(MarkupModelImpl.java:41)
at com.intellij.codeInsight.daemon.impl.UpdateHighlightersUtil.setHighlightersToEditor(UpdateHighlightersUtil.java:43)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.doApplyInformationToEditor(GeneralHighlightingPass.java:22)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.applyInformationToEditor(TextEditorHighlightingPass.java:74)
at com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl$9$1.run(DaemonCodeAnalyzerImpl.java:6)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:6)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
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)
2006-11-06 14:58:33,978 ERROR - pi.editor.impl.RangeMarkerImpl - IntelliJ IDEA 6.0.1 Build #5784
2006-11-06 14:58:33,978 ERROR - pi.editor.impl.RangeMarkerImpl - JDK: 1.5.0_08
2006-11-06 14:58:33,978 ERROR - pi.editor.impl.RangeMarkerImpl - VM: Java HotSpot(TM) Client VM
2006-11-06 14:58:33,978 ERROR - pi.editor.impl.RangeMarkerImpl - Vendor: Sun Microsystems Inc.
2006-11-06 14:58:33,978 ERROR - pi.editor.impl.RangeMarkerImpl - OS: Windows XP
2006-11-06 14:58:33,978 ERROR - pi.editor.impl.RangeMarkerImpl - Last Action: SaveAll
2006-11-06 14:58:33,978 ERROR - pplication.impl.LaterInvocator -
java.lang.IndexOutOfBoundsException: Wrong offset: 7808
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.EditorImpl$1.rangeHighlighterChanged(EditorImpl.java:2)
at com.intellij.openapi.editor.impl.MarkupModelImpl.fireSegmentHighlighterChanged(MarkupModelImpl.java:66)
at com.intellij.openapi.editor.impl.MarkupModelImpl.a(MarkupModelImpl.java:28)
at com.intellij.openapi.editor.impl.MarkupModelImpl.addRangeHighlighter(MarkupModelImpl.java:41)
at com.intellij.codeInsight.daemon.impl.UpdateHighlightersUtil.setHighlightersToEditor(UpdateHighlightersUtil.java:43)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.doApplyInformationToEditor(GeneralHighlightingPass.java:22)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.applyInformationToEditor(TextEditorHighlightingPass.java:74)
at com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl$9$1.run(DaemonCodeAnalyzerImpl.java:6)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:6)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
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)
2006-11-06 14:58:33,978 ERROR - pplication.impl.LaterInvocator - IntelliJ IDEA 6.0.1 Build #5784
2006-11-06 14:58:33,978 ERROR - pplication.impl.LaterInvocator - JDK: 1.5.0_08
2006-11-06 14:58:33,978 ERROR - pplication.impl.LaterInvocator - VM: Java HotSpot(TM) Client VM
2006-11-06 14:58:33,978 ERROR - pplication.impl.LaterInvocator - Vendor: Sun Microsystems Inc.
2006-11-06 14:58:33,978 ERROR - pplication.impl.LaterInvocator - OS: Windows XP
2006-11-06 14:58:33,978 ERROR - pplication.impl.LaterInvocator - Last Action: SaveAll

1 comment
Comment actions Permalink

Just a little followup.
I've not encountered this issue (or any others) since I turned off in-place variable renaming.

0

Please sign in to leave a comment.