AssertionError in language console

Hi all,

In my language console, I'm finding it occasionally gets into a state where I continuously get the exception below. These examples are from pressing the backspace key or from performing a select all but once it's in this state most of the input doesn't work correctly. "Normal" keys (letters, numbers, etc) do seem to work, however.

Does anyone have any idea what might cause this?

Thanks,
Colin




2012-04-28 15:42:13,586 [241377992]  ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.KeyEvent[KEY_PRESSED,keyCode=8,keyText=?,keyChar=?,keyLocation=KEY_LOCATION_STANDARD,rawCode=0,primaryLevelUnicode=0,scancode=0] on frame3
java.lang.AssertionError: interval not found: RangeMarker(valid,0,0) 13496; []
 at com.intellij.openapi.editor.impl.IntervalTreeImpl$IntervalNode.removeInterval(IntervalTreeImpl.java:136)
 at com.intellij.openapi.editor.impl.IntervalTreeImpl$IntervalNode.access$900(IntervalTreeImpl.java:52)
 at com.intellij.openapi.editor.impl.IntervalTreeImpl.removeInterval(IntervalTreeImpl.java:894)
 at com.intellij.openapi.editor.impl.DocumentImpl.removeRangeMarker(DocumentImpl.java:204)
 at com.intellij.openapi.editor.impl.RangeMarkerImpl.unregisterInTree(RangeMarkerImpl.java:65)
 at com.intellij.openapi.editor.impl.RangeMarkerImpl.dispose(RangeMarkerImpl.java:77)
 at com.intellij.openapi.editor.impl.SelectionModelImpl$MyRangeMarker.release(SelectionModelImpl.java:83)
 at com.intellij.openapi.editor.impl.SelectionModelImpl.removeSelection(SelectionModelImpl.java:485)
 at com.intellij.openapi.editor.actions.BackspaceAction.doBackSpaceAtCaret(BackspaceAction.java:93)
 at com.intellij.openapi.editor.actions.BackspaceAction.access$100(BackspaceAction.java:34)
 at com.intellij.openapi.editor.actions.BackspaceAction$Handler.executeWriteAction(BackspaceAction.java:64)
 at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:52)
 at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:898)
 at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(EditorWriteActionHandler.java:36)
 at com.intellij.codeInsight.lookup.impl.BackspaceHandler.execute(BackspaceHandler.java:36)
 at com.intellij.codeInsight.editorActions.BackspaceHandler.handleBackspace(BackspaceHandler.java:95)
 at com.intellij.codeInsight.editorActions.BackspaceHandler.executeWriteAction(BackspaceHandler.java:51)
 at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:52)
 at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:898)
 at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(EditorWriteActionHandler.java:36)
 at com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.java:82)
 at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:117)
 at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:93)
 at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:67)
 at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$3.performAction(IdeKeyEventDispatcher.java:542)
 at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:590)
 at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:458)
 at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:206)
 at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)
 at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:420)
 at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
2012-04-28 15:42:13,587 [241377993]  ERROR - com.intellij.ide.IdeEventQueue - IntelliJ IDEA 11.1.1  Build #IC-117.117
2012-04-28 15:42:13,587 [241377993]  ERROR - com.intellij.ide.IdeEventQueue - JDK: 1.6.0_31
2012-04-28 15:42:13,587 [241377993]  ERROR - com.intellij.ide.IdeEventQueue - VM: Java HotSpot(TM) 64-Bit Server VM
2012-04-28 15:42:13,588 [241377994]  ERROR - com.intellij.ide.IdeEventQueue - Vendor: Apple Inc.
2012-04-28 15:42:13,588 [241377994]  ERROR - com.intellij.ide.IdeEventQueue - OS: Mac OS X
2012-04-28 15:42:13,588 [241377994]  ERROR - com.intellij.ide.IdeEventQueue - Last Action: EditorBackSpace












2012-04-28 15:42:12,012 [241376418]  ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.KeyEvent[KEY_TYPED,keyCode=0,keyText=Unknown keyCode: 0x0,keyChar='j',keyLocation=KEY_LOCATION_UNKNOWN,rawCode=0,primaryLevelUnicode=0,scancode=0] on EditorComponent file=null
java.lang.AssertionError: interval not found: RangeMarker(valid,0,0) 13496; []
 at com.intellij.openapi.editor.impl.IntervalTreeImpl$IntervalNode.removeInterval(IntervalTreeImpl.java:136)
 at com.intellij.openapi.editor.impl.IntervalTreeImpl$IntervalNode.access$900(IntervalTreeImpl.java:52)
 at com.intellij.openapi.editor.impl.IntervalTreeImpl.removeInterval(IntervalTreeImpl.java:894)
 at com.intellij.openapi.editor.impl.DocumentImpl.removeRangeMarker(DocumentImpl.java:204)
 at com.intellij.openapi.editor.impl.RangeMarkerImpl.unregisterInTree(RangeMarkerImpl.java:65)
 at com.intellij.openapi.editor.impl.RangeMarkerImpl.dispose(RangeMarkerImpl.java:77)
 at com.intellij.openapi.editor.impl.SelectionModelImpl$MyRangeMarker.release(SelectionModelImpl.java:83)
 at com.intellij.openapi.editor.impl.SelectionModelImpl.removeSelection(SelectionModelImpl.java:485)
 at com.intellij.openapi.editor.EditorModificationUtil.insertStringAtCaret(EditorModificationUtil.java:126)
 at com.intellij.openapi.editor.EditorModificationUtil.typeInStringAtCaretHonorBlockSelection(EditorModificationUtil.java:353)
 at com.intellij.openapi.editor.actionSystem.TypedAction$Handler.execute(TypedAction.java:65)
 at com.intellij.codeInsight.editorActions.TypedHandler.execute(TypedHandler.java:218)
 at com.intellij.codeInsight.template.impl.editorActions.SpaceHandler.execute(SpaceHandler.java:36)
 at plugin.typing.ClojureTypedHandler$do_original__402.invoke(typing.clj:128)
 at plugin.typing.ClojureTypedHandler.execute(typing.clj:139)
 at com.intellij.execution.impl.ConsoleViewImpl$MyTypedHandler.execute(ConsoleViewImpl.java:1171)
 at com.intellij.openapi.editor.actionSystem.TypedAction$TypingCommand$1.run(TypedAction.java:129)
 at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:898)
 at com.intellij.openapi.editor.actionSystem.TypedAction$TypingCommand.run(TypedAction.java:124)
 at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:117)
 at com.intellij.openapi.editor.actionSystem.TypedAction.actionPerformed(TypedAction.java:105)
 at com.intellij.openapi.editor.impl.EditorImpl.processKeyTyped(EditorImpl.java:885)
 at com.intellij.openapi.editor.impl.EditorImpl.processKeyTyped(EditorImpl.java:4672)
 at com.intellij.openapi.editor.impl.EditorImpl$9.keyTyped(EditorImpl.java:765)
 at java.awt.Component.processKeyEvent(Component.java:6330)
 at javax.swing.JComponent.processKeyEvent(JComponent.java:2801)
 at java.awt.Component.processEvent(Component.java:6152)
 at java.awt.Container.processEvent(Container.java:2083)
 at java.awt.Component.dispatchEventImpl(Component.java:4737)
 at java.awt.Container.dispatchEventImpl(Container.java:2141)
 at java.awt.Component.dispatchEvent(Component.java:4565)
 at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1836)
 at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:712)
 at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:990)
 at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:855)
 at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:676)
 at java.awt.Component.dispatchEventImpl(Component.java:4609)
 at java.awt.Container.dispatchEventImpl(Container.java:2141)
 at java.awt.Window.dispatchEventImpl(Window.java:2482)
 at java.awt.Component.dispatchEvent(Component.java:4565)
 at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:684)
 at java.awt.EventQueue.access$000(EventQueue.java:85)
 at java.awt.EventQueue$1.run(EventQueue.java:643)
 at java.awt.EventQueue$1.run(EventQueue.java:641)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
 at java.awt.EventQueue$2.run(EventQueue.java:657)
 at java.awt.EventQueue$2.run(EventQueue.java:655)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:654)
 at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:699)
 at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:525)
 at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:420)
 at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
2012-04-28 15:42:12,012 [241376418]  ERROR - com.intellij.ide.IdeEventQueue - IntelliJ IDEA 11.1.1  Build #IC-117.117
2012-04-28 15:42:12,012 [241376418]  ERROR - com.intellij.ide.IdeEventQueue - JDK: 1.6.0_31
2012-04-28 15:42:12,012 [241376418]  ERROR - com.intellij.ide.IdeEventQueue - VM: Java HotSpot(TM) 64-Bit Server VM
2012-04-28 15:42:12,013 [241376419]  ERROR - com.intellij.ide.IdeEventQueue - Vendor: Apple Inc.
2012-04-28 15:42:12,013 [241376419]  ERROR - com.intellij.ide.IdeEventQueue - OS: Mac OS X
2012-04-28 15:42:12,013 [241376419]  ERROR - com.intellij.ide.IdeEventQueue - Last Action: $SelectAll
6 comments
Comment actions Permalink

Hmm, that does look similar, although not many hints in how they got there. I'll have to debug I guess.

0
Comment actions Permalink

Well. it looks to me like your console editor is not getting configured properly, you are still using the default editor, but from what I could tell, the initialization of the components was different. Also, you don't set the userdata that the console editor expects, this sends its key typed events down the "full editor" path which calls all the chained keytyped handlers. The default console editor does not call those, it just performs the edits itself.

Make sure the documents are set on both the editor and the viewer, and that you don't add or remove those components anywhere.

Those are the things I would look at..

0
Comment actions Permalink

Thanks for the suggestions Jon, I'll take a look when I get a chance.

0
Comment actions Permalink

I finally got a chance to look at this the other day, and comparing my code to theirs I couldn't see the userdata you were referring to - where is that?

0
Comment actions Permalink

Colin,

In the base class ConsoleViewImpl.

-Jon

0

Please sign in to leave a comment.