joshestein / ideavim-quickscope

Quickscope port for IdeaVIM
GNU General Public License v2.0
21 stars 3 forks source link

IDE Internal Errors java.lang.IndexOutOfBoundsException: Index (547) is greater than list size (36) #13

Closed zhanggang807 closed 5 months ago

zhanggang807 commented 1 year ago

When open VCS changes diff ui, IDE Internal Errors appeared, idea version: IntelliJ IDEA 2023.1.4 (Ultimate Edition) Build #IU-231.9225.16, built on July 12, 2023 Runtime version: 17.0.7+10-b829.16 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 12.6.7 GC: G1 Young Generation, G1 Old Generation Memory: 3072M Cores: 8 Metal Rendering is ON Registry: documentation.show.toolbar=true ide.allow.merge.buttons=false terminal.use.conpty.on.windows=false debugger.valueTooltipAutoShowOnSelection=true

Non-Bundled Plugins: IdeaVIM (2.3.0) IdeaVimExtension (1.6.11) org.jetbrains.IdeaVim-EasyMotion (1.10) com.joshestein.ideavim-quickscope (1.0.11) .... and so on ..... Kotlin: 231-1.9.0-release-358-IJ8770.65

java.lang.IndexOutOfBoundsException: Index (547) is greater than list size (36) at it.unimi.dsi.fastutil.ints.AbstractIntList.ensureIndex(AbstractIntList.java:53) at it.unimi.dsi.fastutil.ints.IntArrayList.addAll(IntArrayList.java:725) at com.intellij.openapi.editor.impl.view.EditorSizeManager.doInvalidateRange(EditorSizeManager.java:522) at com.intellij.openapi.editor.impl.view.EditorSizeManager.invalidateRange(EditorSizeManager.java:493) at com.intellij.openapi.editor.impl.view.EditorView.invalidateRange(EditorView.java:371) at com.intellij.openapi.editor.impl.EditorImpl.onHighlighterChanged(EditorImpl.java:637) at com.intellij.openapi.editor.impl.EditorImpl$1.beforeRemoved(EditorImpl.java:392) at com.intellij.openapi.editor.impl.MarkupModelImpl.fireBeforeRemoved(MarkupModelImpl.java:284) at com.intellij.openapi.editor.impl.RangeHighlighterTree.fireBeforeRemoved(RangeHighlighterTree.java:135) at com.intellij.openapi.editor.impl.RangeHighlighterTree.fireBeforeRemoved(RangeHighlighterTree.java:13) at com.intellij.openapi.editor.impl.IntervalTreeImpl.beforeRemove(IntervalTreeImpl.java:1333) at com.intellij.openapi.editor.impl.IntervalTreeImpl.removeInterval(IntervalTreeImpl.java:973) at com.intellij.openapi.editor.impl.MarkupModelImpl.removeHighlighter(MarkupModelImpl.java:221) at com.joshestein.ideavimquickscope.Highlighter.removeHighlights(Highlighter.kt:85) at com.joshestein.ideavimquickscope.Highlighter.updateEditor(Highlighter.kt:21) at com.joshestein.ideavimquickscope.Listener.caretPositionChanged(IdeaVimQuickscopeExtension.kt:36) at jdk.internal.reflect.GeneratedMethodAccessor114.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.proxy1/jdk.proxy1.$Proxy114.caretPositionChanged(Unknown Source) at jdk.internal.reflect.GeneratedMethodAccessor114.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.proxy1/jdk.proxy1.$Proxy114.caretPositionChanged(Unknown Source) at com.intellij.openapi.editor.impl.CaretModelImpl.fireCaretPositionChanged(CaretModelImpl.java:543) at com.intellij.openapi.editor.impl.CaretImpl.doMoveToLogicalPosition(CaretImpl.java:461) at com.intellij.openapi.editor.impl.CaretImpl.moveToLogicalPosition(CaretImpl.java:606) at com.intellij.openapi.editor.impl.CaretImpl.lambda$moveToLogicalPosition$2(CaretImpl.java:318) at com.intellij.openapi.editor.impl.CaretModelImpl.doWithCaretMerging(CaretModelImpl.java:419) at com.intellij.openapi.editor.impl.CaretImpl.moveToLogicalPosition(CaretImpl.java:318) at com.intellij.openapi.editor.CaretModel.moveToLogicalPosition(CaretModel.java:59) at com.intellij.diff.tools.fragmented.UnifiedDiffViewer$MyInitialScrollHelper.doScrollToPosition(UnifiedDiffViewer.java:1149) at com.intellij.diff.tools.util.base.InitialScrollPositionSupport$TwosideInitialScrollHelper.onRediff(InitialScrollPositionSupport.java:129) at com.intellij.diff.tools.fragmented.UnifiedDiffViewer.lambda$apply$7(UnifiedDiffViewer.java:472) at com.intellij.diff.tools.util.base.DiffViewerBase.lambda$rediff$1(DiffViewerBase.java:167) at com.intellij.openapi.progress.util.BackgroundTaskUtil.finish(BackgroundTaskUtil.java:110) at com.intellij.openapi.progress.util.BackgroundTaskUtil.executeAndTryWait(BackgroundTaskUtil.java:98) at com.intellij.diff.util.DiffTaskQueue.executeAndTryWait(DiffTaskQueue.java:47) at com.intellij.diff.tools.util.base.DiffViewerBase.rediff(DiffViewerBase.java:163) at com.intellij.diff.tools.util.base.DiffViewerBase$1.showNotify(DiffViewerBase.java:89) at com.intellij.util.ui.update.UiNotifyConnector.showNotify(UiNotifyConnector.java:84) at com.intellij.util.ui.update.UiNotifyConnector.(UiNotifyConnector.java:29) at com.intellij.diff.tools.util.base.DiffViewerBase.init(DiffViewerBase.java:84) at com.intellij.diff.impl.DiffRequestProcessor$DefaultState.init(DiffRequestProcessor.java:1502) at com.intellij.diff.impl.DiffRequestProcessor.lambda$doApplyRequest$4(DiffRequestProcessor.java:411) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeNonCancelableSection$3(CoreProgressManager.java:222) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:679) at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:635) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$computeInNonCancelableSection$4(CoreProgressManager.java:230) at com.intellij.openapi.progress.Cancellation.computeInNonCancelableSection(Cancellation.java:99) at com.intellij.openapi.progress.impl.CoreProgressManager.computeInNonCancelableSection(CoreProgressManager.java:230) at com.intellij.openapi.progress.impl.CoreProgressManager.executeNonCancelableSection(CoreProgressManager.java:221) at com.intellij.diff.impl.DiffRequestProcessor.lambda$doApplyRequest$5(DiffRequestProcessor.java:403) at com.intellij.diff.util.DiffUtil.runPreservingFocus(DiffUtil.java:815) at com.intellij.diff.impl.DiffRequestProcessor.doApplyRequest(DiffRequestProcessor.java:391) at com.intellij.diff.impl.DiffRequestProcessor.lambda$applyRequest$3(DiffRequestProcessor.java:373) at com.intellij.openapi.wm.impl.FocusManagerImpl.lambda$doWhenFocusSettlesDown$3(FocusManagerImpl.java:172) at com.intellij.util.ui.EdtInvocationManager.invokeLaterIfNeeded(EdtInvocationManager.java:33) at com.intellij.ide.IdeEventQueue.ifFocusEventsInTheQueue(IdeEventQueue.kt:187) at com.intellij.ide.IdeEventQueue.executeWhenAllFocusEventsLeftTheQueue(IdeEventQueue.kt:153) at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:168) at com.intellij.diff.impl.DiffRequestProcessor.applyRequest(DiffRequestProcessor.java:381) at com.intellij.diff.impl.DiffRequestProcessor.applyRequest(DiffRequestProcessor.java:360) at com.intellij.diff.impl.CacheDiffRequestProcessor.finishUpdate(CacheDiffRequestProcessor.java:156) at com.intellij.diff.impl.CacheDiffRequestProcessor.updateRequest(CacheDiffRequestProcessor.java:113) at com.intellij.diff.impl.CacheDiffRequestProcessor.updateRequest(CacheDiffRequestProcessor.java:95) at com.intellij.diff.impl.DiffRequestProcessor.updateRequest(DiffRequestProcessor.java:243) at com.intellij.diff.impl.DiffRequestProcessor.updateRequest(DiffRequestProcessor.java:238) at com.intellij.openapi.vcs.changes.ChangeViewDiffRequestProcessor.setCurrentChange(ChangeViewDiffRequestProcessor.java:230) at com.intellij.openapi.vcs.changes.ChangeViewDiffRequestProcessor.refresh(ChangeViewDiffRequestProcessor.java:211) at com.intellij.openapi.vcs.changes.PreviewDiffSplitterComponent.updatePreview(PreviewDiffSplitterComponent.kt:18) at com.intellij.openapi.vcs.changes.ChangesViewManager$ChangesViewToolWindowPanel.lambda$installSplitterPreview$8(ChangesViewManager.java:573) 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:829) at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:454) at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:79) at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:122) at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:41) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:788) at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:739) at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:731) 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:758) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:667) at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$7(IdeEventQueue.kt:571) at com.intellij.openapi.application.impl.ApplicationImpl.withoutImplicitRead(ApplicationImpl.java:1444) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:571) at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:68) at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:349) at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:348) at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787) at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:348) at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:343) at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:995) at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105) at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:995) at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$4(IdeEventQueue.kt:343) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:829) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:385) 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)

joshestein commented 1 year ago

Hey 👋 thanks for raising this issue. Apologies for my delay in getting to this.

Can you give the steps to reproduce the problem? I'm opening VCS but not getting the same error log.

github-actions[bot] commented 6 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 5 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.