Caret errors with 908

I'm seeing a lot of these errors when editing using the new build

2003-08-26 13:34:00,753 ERROR -
api.editor.impl.CaretModelImpl - Assertion failed: Caret model is in its
update process. All requests are illegal at this point.
2003-08-26 13:34:00,753 ERROR -
api.editor.impl.CaretModelImpl - IntelliJ IDEA (Aurora) Build #908
2003-08-26 13:34:00,753 ERROR -
api.editor.impl.CaretModelImpl - JDK: 1.4.2
2003-08-26 13:34:00,753 ERROR -
api.editor.impl.CaretModelImpl - VM: Java HotSpot(TM) Client VM
2003-08-26 13:34:00,753 ERROR -
api.editor.impl.CaretModelImpl - Vendor: Sun Microsystems Inc.
2003-08-26 13:34:00,753 ERROR -
api.editor.impl.CaretModelImpl - OS: Windows XP
2003-08-26 13:34:00,753 ERROR -
api.editor.impl.CaretModelImpl - Last Action: EditorEnter
2003-08-26 13:34:00,753 ERROR -
api.editor.impl.CaretModelImpl - Current Command: Typing
2003-08-26 13:34:00,753 ERROR -
api.editor.impl.CaretModelImpl -
java.lang.Throwable

at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:37)

at com.intellij.openapi.editor.c.u.a(u.java:123)

at com.intellij.openapi.editor.c.u.getLogicalPosition(u.java:16)

at com.intellij.ui.a.a.a.r.w(r.java:120)

at com.intellij.ui.a.a.a.r.f(r.java:83)

at com.intellij.ui.a.a.a.i.caretPositionChanged(i.java:1)

at com.intellij.openapi.editor.c.u.moveToLogicalPosition(u.java:72)

at com.intellij.openapi.editor.c.u.moveToOffset(u.java:135)

at com.intellij.openapi.editor.c.u.documentChanged(u.java:108)

at com.intellij.openapi.editor.c.w.a(w.java:223)

at com.intellij.openapi.editor.c.w.insertString(w.java:21)

at com.intellij.codeInsight.e.k.a(k.java:79)

at com.intellij.codeInsight.e.k.run(k.java:119)

at com.intellij.codeInsight.e.ck.executeWriteAction(ck.java:152)

at
com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:1)

at com.intellij.openapi.application.a.d.runWriteAction(d.java:159)

at
com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(EditorWriteActionHandler.java:1)

at com.intellij.codeInsight.l.a.cn.executeWriteAction(cn.java:8)

at
com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:1)

at com.intellij.openapi.application.a.d.runWriteAction(d.java:159)

at
com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(EditorWriteActionHandler.java:1)

at
com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.java:1)

at com.intellij.openapi.command.a.b.executeCommand(b.java:78)

at
com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:19)

at
com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:17)

at com.intellij.openapi.a.a.e.a(e.java:148)

at com.intellij.openapi.a.a.e.b(e.java:128)

at com.intellij.openapi.a.a.e.a(e.java:130)

at com.intellij.ide.s.dispatchEvent(s.java:85)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)

5 comments
Comment actions Permalink

Most probably caused by OutOfMemoryError. Restart will eliminate the
problem.

--

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


"Guy Gascoigne-Piggford" <guy@wyrdrune.com> wrote in message
news:biggi5$lsv$1@is.intellij.net...

I'm seeing a lot of these errors when editing using the new build

>

2003-08-26 13:34:00,753 ERROR -
api.editor.impl.CaretModelImpl - Assertion failed: Caret model is in its
update process. All requests are illegal at this point.
2003-08-26 13:34:00,753 ERROR -
api.editor.impl.CaretModelImpl - IntelliJ IDEA (Aurora) Build #908
2003-08-26 13:34:00,753 ERROR -
api.editor.impl.CaretModelImpl - JDK: 1.4.2
2003-08-26 13:34:00,753 ERROR -
api.editor.impl.CaretModelImpl - VM: Java HotSpot(TM) Client VM
2003-08-26 13:34:00,753 ERROR -
api.editor.impl.CaretModelImpl - Vendor: Sun Microsystems Inc.
2003-08-26 13:34:00,753 ERROR -
api.editor.impl.CaretModelImpl - OS: Windows XP
2003-08-26 13:34:00,753 ERROR -
api.editor.impl.CaretModelImpl - Last Action: EditorEnter
2003-08-26 13:34:00,753 ERROR -
api.editor.impl.CaretModelImpl - Current Command: Typing
2003-08-26 13:34:00,753 ERROR -
api.editor.impl.CaretModelImpl -
java.lang.Throwable

>

at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:37)

>

at com.intellij.openapi.editor.c.u.a(u.java:123)

>

at com.intellij.openapi.editor.c.u.getLogicalPosition(u.java:16)

>

at com.intellij.ui.a.a.a.r.w(r.java:120)

>

at com.intellij.ui.a.a.a.r.f(r.java:83)

>

at com.intellij.ui.a.a.a.i.caretPositionChanged(i.java:1)

>

at com.intellij.openapi.editor.c.u.moveToLogicalPosition(u.java:72)

>

at com.intellij.openapi.editor.c.u.moveToOffset(u.java:135)

>

at com.intellij.openapi.editor.c.u.documentChanged(u.java:108)

>

at com.intellij.openapi.editor.c.w.a(w.java:223)

>

at com.intellij.openapi.editor.c.w.insertString(w.java:21)

>

at com.intellij.codeInsight.e.k.a(k.java:79)

>

at com.intellij.codeInsight.e.k.run(k.java:119)

>

at com.intellij.codeInsight.e.ck.executeWriteAction(ck.java:152)

>

at

>
com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(Edit
orWriteActionHandler.java:1)
>

at com.intellij.openapi.application.a.d.runWriteAction(d.java:159)

>

at

>
com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(Ed
itorWriteActionHandler.java:1)
>

at com.intellij.codeInsight.l.a.cn.executeWriteAction(cn.java:8)

>

at

>
com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(Edit
orWriteActionHandler.java:1)
>

at com.intellij.openapi.application.a.d.runWriteAction(d.java:159)

>

at

>
com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(Ed
itorWriteActionHandler.java:1)
>

at

>
com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.jav
a:1)
>

at com.intellij.openapi.command.a.b.executeCommand(b.java:78)

>

at

>
com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(Editor
Action.java:19)
>

at

>
com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(Editor
Action.java:17)
>

at com.intellij.openapi.a.a.e.a(e.java:148)

>

at com.intellij.openapi.a.a.e.b(e.java:128)

>

at com.intellij.openapi.a.a.e.a(e.java:130)

>

at com.intellij.ide.s.dispatchEvent(s.java:85)

>

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)

>


0
Comment actions Permalink

Yup, that might be it, I was getting a lot of them, but no longer.

Very strange.

Guy

Maxim Shafirov (JetBrains) wrote:

Most probably caused by OutOfMemoryError. Restart will eliminate the
problem.


0
Comment actions Permalink

Hmm, I think this might be something other than out of memory problems. My full dump is listed below.

If you're curious, I have multiple version of stack traces. Multiple actions can cause this exception, not just introducing a variable. I have ones caused by things as simple as "caretPositionMoved" events.

I can open a bug about it if you prefer -- I just noticed that you had talked about it here.

-Matt



ERROR - api.editor.impl.CaretModelImpl - Assertion failed: Caret model is in its update process. All requests are illegal at this point.
ERROR - api.editor.impl.CaretModelImpl - IntelliJ IDEA (Aurora) Build #908
ERROR - api.editor.impl.CaretModelImpl - JDK: 1.4.2
ERROR - api.editor.impl.CaretModelImpl - VM: Java HotSpot(TM) Client VM
ERROR - api.editor.impl.CaretModelImpl - Vendor: Sun Microsystems Inc.
ERROR - api.editor.impl.CaretModelImpl - OS: Windows XP
ERROR - api.editor.impl.CaretModelImpl - Last Action: IntroduceVariable
ERROR - api.editor.impl.CaretModelImpl - Current Command: Introduce Variable...
ERROR - api.editor.impl.CaretModelImpl -
java.lang.Throwable

at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:37)

at com.intellij.openapi.editor.c.u.a(u.java:123)

at com.intellij.openapi.editor.c.u.getLogicalPosition(u.java:16)

at com.intellij.ui.a.a.a.r.w(r.java:120)

at com.intellij.ui.a.a.a.r.f(r.java:83)

at com.intellij.ui.a.a.a.i.caretPositionChanged(i.java:1)

at com.intellij.openapi.editor.c.u.moveToLogicalPosition(u.java:72)

at com.intellij.openapi.editor.c.u.moveToOffset(u.java:135)

at com.intellij.openapi.editor.c.u.documentChanged(u.java:108)

at com.intellij.openapi.editor.c.w.a(w.java:223)

at com.intellij.openapi.editor.c.w.insertString(w.java:21)

at com.intellij.psi.impl.cg.a(cg.java:21)

at com.intellij.psi.impl.cg.childAdded(cg.java:59)

at com.intellij.psi.impl.cc.m(cc.java:14)

at com.intellij.psi.impl.cc.g(cc.java:186)

at com.intellij.psi.impl.source.a.c.a(c.java:115)

at com.intellij.psi.impl.source.g.m.a(m.java:197)

at com.intellij.psi.impl.source.g.m.a(m.java:42)

at com.intellij.psi.impl.source.g.m.c(m.java:127)

at com.intellij.psi.impl.source.g.m.b(m.java:281)

at com.intellij.psi.impl.source.g.m.b(m.java:241)

at com.intellij.psi.impl.source.g.h.a(h.java:138)

at com.intellij.psi.impl.source.a.r.a(r.java:74)

at com.intellij.psi.impl.source.a.a.bt.a(bt.java:17)

at com.intellij.psi.impl.source.a.s.addBefore(s.java:25)

at com.intellij.refactoring.h.d.run(d.java:42)

at com.intellij.openapi.application.a.d.runWriteAction(d.java:159)

at com.intellij.refactoring.h.b.a(b.java:5)

at com.intellij.refactoring.h.b.a(b.java:40)

at com.intellij.codeInsight.k.p.run(p.java)

at com.intellij.codeInsight.k.o.run(o.java:1)

at com.intellij.openapi.command.a.b.executeCommand(b.java:78)

at com.intellij.codeInsight.k.v.a(v.java:11)

at com.intellij.codeInsight.k.v.actionPerformed(v.java:22)

at com.intellij.openapi.a.a.e.a(e.java:148)

at com.intellij.openapi.a.a.e.b(e.java:128)

at com.intellij.openapi.a.a.e.a(e.java:130)

at com.intellij.ide.s.dispatchEvent(s.java:85)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)

0
Comment actions Permalink

Oops, I forgot a couple of important points:

1. I've already upped the memory using -Xmx384m in idea.lax. (I only have 6 small files open, so this should be enough.)
2. I am getting this quite frequently when I split the panes. I'm not getting it often otherwise.
3. Restarting doesn't really help. I can reproduce the problem quite faithfully.

-Matt

0
Comment actions Permalink

It would be great if you could provide a reliable way to reproduce this.
Please post this to tracker then.

Thanks in advance.

--

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


"Matthew Flower" <no_mail@jetbrains.com> wrote in message
news:11894026.1062021646494.JavaMail.itn@is.intellij.net...

Oops, I forgot a couple of important points:

>

1. I've already upped the memory using -Xmx384m in idea.lax. (I only have

6 small files open, so this should be enough.)

2. I am getting this quite frequently when I split the panes. I'm not

getting it often otherwise.

3. Restarting doesn't really help. I can reproduce the problem quite

faithfully.
>

-Matt



0

Please sign in to leave a comment.