Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(🐞) Assertion failed: Caret model is in its update process. All requests are illegal at this point. #54

Open
KotlinIsland opened this issue Sep 9, 2022 · 0 comments

Comments

@KotlinIsland
Copy link
Contributor

Not sure what triggered this, 0.5.0

java.lang.Throwable: Assertion failed: Caret model is in its update process. All requests are illegal at this point.
	at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:220)
	at com.intellij.openapi.editor.impl.CaretImpl.validateCallContext(CaretImpl.java:616)
	at com.intellij.openapi.editor.impl.CaretImpl.getOffset(CaretImpl.java:658)
	at com.intellij.openapi.editor.impl.CaretImpl.getSelectionStart(CaretImpl.java:919)
	at com.intellij.openapi.editor.impl.FocusModeModel.applyFocusMode(FocusModeModel.java:108)
	at com.intellij.openapi.editor.impl.EditorImpl.applyFocusMode(EditorImpl.java:548)
	at com.intellij.openapi.editor.impl.FocusModeModel.lambda$new$0(FocusModeModel.java:61)
	at com.intellij.openapi.editor.impl.ScrollingModelImpl$MyChangeListener.stateChanged(ScrollingModelImpl.java:545)
	at java.desktop/javax.swing.JViewport.fireStateChanged(JViewport.java:1494)
	at java.desktop/javax.swing.JViewport.setViewPosition(JViewport.java:1244)
	at com.intellij.ui.components.JBViewport.setViewPosition(JBViewport.java:105)
	at java.desktop/javax.swing.plaf.basic.BasicScrollPaneUI$Handler.vsbStateChanged(BasicScrollPaneUI.java:1189)
	at java.desktop/javax.swing.plaf.basic.BasicScrollPaneUI$Handler.stateChanged(BasicScrollPaneUI.java:1178)
	at java.desktop/javax.swing.DefaultBoundedRangeModel.fireStateChanged(DefaultBoundedRangeModel.java:371)
	at com.intellij.ui.components.JBScrollBar$Model.fireStateChanged(JBScrollBar.java:364)
	at java.desktop/javax.swing.DefaultBoundedRangeModel.setRangeProperties(DefaultBoundedRangeModel.java:309)
	at java.desktop/javax.swing.DefaultBoundedRangeModel.setValue(DefaultBoundedRangeModel.java:175)
	at java.desktop/javax.swing.JScrollBar.setValue(JScrollBar.java:486)
	at com.intellij.ui.components.JBScrollBar.setValue(JBScrollBar.java:196)
	at com.intellij.openapi.editor.impl.ScrollingModelImpl._scrollVertically(ScrollingModelImpl.java:307)
	at com.intellij.openapi.editor.impl.ScrollingModelImpl.scroll(ScrollingModelImpl.java:370)
	at com.intellij.openapi.editor.impl.ScrollingModelImpl.scrollVertically(ScrollingModelImpl.java:299)
	at com.intellij.diff.tools.util.SyncScrollSupport.doScrollVertically(SyncScrollSupport.java:452)
	at com.intellij.diff.tools.util.SyncScrollSupport$ScrollHelper.syncVerticalScroll(SyncScrollSupport.java:405)
	at com.intellij.diff.tools.util.SyncScrollSupport$ScrollHelper.visibleAreaChanged(SyncScrollSupport.java:342)
	at com.intellij.diff.tools.util.SyncScrollSupport$TwosideSyncScrollSupport.visibleAreaChanged(SyncScrollSupport.java:87)
	at com.intellij.diff.tools.util.side.TwosideTextDiffViewer$MyVisibleAreaListener.visibleAreaChanged(TwosideTextDiffViewer.java:369)
	at com.intellij.openapi.editor.impl.ScrollingModelImpl$MyChangeListener.stateChanged(ScrollingModelImpl.java:545)
	at java.desktop/javax.swing.JViewport.fireStateChanged(JViewport.java:1494)
	at java.desktop/javax.swing.JViewport.setViewPosition(JViewport.java:1244)
	at com.intellij.ui.components.JBViewport.setViewPosition(JBViewport.java:105)
	at java.desktop/javax.swing.plaf.basic.BasicScrollPaneUI$Handler.vsbStateChanged(BasicScrollPaneUI.java:1189)
	at java.desktop/javax.swing.plaf.basic.BasicScrollPaneUI$Handler.stateChanged(BasicScrollPaneUI.java:1178)
	at java.desktop/javax.swing.DefaultBoundedRangeModel.fireStateChanged(DefaultBoundedRangeModel.java:371)
	at com.intellij.ui.components.JBScrollBar$Model.fireStateChanged(JBScrollBar.java:364)
	at java.desktop/javax.swing.DefaultBoundedRangeModel.setRangeProperties(DefaultBoundedRangeModel.java:309)
	at java.desktop/javax.swing.JScrollBar.setValues(JScrollBar.java:634)
	at java.desktop/javax.swing.plaf.basic.BasicScrollPaneUI.syncScrollPaneWithViewport(BasicScrollPaneUI.java:342)
	at java.desktop/javax.swing.plaf.basic.BasicScrollPaneUI$Handler.stateChanged(BasicScrollPaneUI.java:1168)
	at java.desktop/javax.swing.JViewport.fireStateChanged(JViewport.java:1494)
	at java.desktop/javax.swing.JViewport$ViewListener.componentResized(JViewport.java:1413)
	at java.desktop/java.awt.Component.processComponentEvent(Component.java:6474)
	at com.intellij.openapi.editor.impl.EditorComponentImpl.fireResized(EditorComponentImpl.java:190)
	at com.intellij.openapi.editor.impl.EditorImpl.validateSize(EditorImpl.java:1831)
	at com.intellij.openapi.editor.impl.EditorImpl.onInlayUpdated(EditorImpl.java:652)
	at com.intellij.openapi.editor.impl.EditorImpl$5.onUpdated(EditorImpl.java:499)
	at com.intellij.openapi.editor.InlayModel$SimpleAdapter.onRemoved(InlayModel.java:323)
	at jdk.internal.reflect.GeneratedMethodAccessor194.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at com.intellij.util.EventDispatcher.dispatchVoidMethod(EventDispatcher.java:120)
	at com.intellij.util.EventDispatcher.lambda$createMulticaster$1(EventDispatcher.java:85)
	at jdk.proxy2/jdk.proxy2.$Proxy170.onRemoved(Unknown Source)
	at com.intellij.openapi.editor.impl.InlayModelImpl.notifyRemoved(InlayModelImpl.java:545)
	at com.intellij.openapi.editor.impl.InlayImpl.dispose(InlayImpl.java:98)
	at com.intellij.openapi.util.ObjectTree.runWithTrace(ObjectTree.java:126)
	at com.intellij.openapi.util.ObjectTree.executeAll(ObjectTree.java:158)
	at com.intellij.openapi.util.Disposer.dispose(Disposer.java:217)
	at com.intellij.openapi.util.Disposer.dispose(Disposer.java:205)
	at com.intellij.diff.tools.simple.SimpleAlignedDiffModel.clear(SimpleAlignedDiffModel.kt:150)
	at com.intellij.diff.tools.simple.SimpleAlignedDiffModel.realignChanges(SimpleAlignedDiffModel.kt:145)
	at com.intellij.diff.tools.simple.SimpleAlignedDiffModel.access$realignChanges(SimpleAlignedDiffModel.kt:26)
	at com.intellij.diff.tools.simple.SimpleAlignedDiffModel$MySoftWrapModelListener.recalculationEnds(SimpleAlignedDiffModel.kt:197)
	at com.intellij.openapi.editor.impl.SoftWrapModelImpl$1.recalculationEnds(SoftWrapModelImpl.java:122)
	at com.intellij.openapi.editor.impl.softwrap.mapping.SoftWrapApplianceManager.onRecalculationEnd(SoftWrapApplianceManager.java:204)
	at com.intellij.openapi.editor.impl.softwrap.mapping.SoftWrapApplianceManager.recalculate(SoftWrapApplianceManager.java:131)
	at com.intellij.openapi.editor.impl.softwrap.mapping.SoftWrapApplianceManager.documentChanged(SoftWrapApplianceManager.java:432)
	at com.intellij.openapi.editor.impl.SoftWrapModelImpl.documentChanged(SoftWrapModelImpl.java:482)
	at com.intellij.openapi.editor.impl.DocumentImpl.changedUpdate(DocumentImpl.java:918)
	at com.intellij.openapi.editor.impl.DocumentImpl.updateText(DocumentImpl.java:822)
	at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:663)
	at com.intellij.openapi.editor.impl.DocumentImpl.lambda$setText$2(DocumentImpl.java:1086)
	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:210)
	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:174)
	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:164)
	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:150)
	at com.intellij.openapi.editor.impl.DocumentImpl.setText(DocumentImpl.java:1091)
	at me.lensvol.blackconnect.actions.ReformatWholeFileAction$Companion$reformatWholeDocument$1$1.invoke(ReformatWholeFileAction.kt:44)
	at me.lensvol.blackconnect.actions.ReformatWholeFileAction$Companion$reformatWholeDocument$1$1.invoke(ReformatWholeFileAction.kt:41)
	at me.lensvol.blackconnect.DocumentUtil.updateCodeInDocument$lambda-3$lambda-2$lambda-1$lambda-0(DocumentUtil.kt:30)
	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:219)
	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:174)
	at me.lensvol.blackconnect.DocumentUtil.updateCodeInDocument$lambda-3$lambda-2$lambda-1(DocumentUtil.kt:27)
	at com.intellij.openapi.application.impl.ApplicationImpl.lambda$runWriteAction$13(ApplicationImpl.java:1032)
	at com.intellij.openapi.application.impl.ApplicationImpl.runWriteActionWithClass(ApplicationImpl.java:1011)
	at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1032)
	at me.lensvol.blackconnect.DocumentUtil.updateCodeInDocument$lambda-3$lambda-2(DocumentUtil.kt:25)
	at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:209)
	at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:21)
	at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:881)
	at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:513)
	at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:75)
	at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:118)
	at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:42)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:779)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:730)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:724)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:749)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:918)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:766)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:450)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:791)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:449)
	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
	at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:624)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:447)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:881)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:493)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant