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

com.github.continuedev.continueintellijextension.autocomplete.AutocompleteCaretListener.caretPositionChanged freezes UI thead for 13600ms #4212

Open
1 of 3 tasks
ViugiNick opened this issue Feb 17, 2025 · 0 comments
Assignees
Labels
area:autocomplete Relates to the auto complete feature ide:jetbrains Relates specifically to JetBrains extension kind:bug Indicates an unexpected problem or unintended behavior "needs-triage"

Comments

@ViugiNick
Copy link

Before submitting your bug report

Relevant environment info

- OS: Mac OS X 15.1.1
- IDE version: Android Studio Meerkat Feature Drop | 2024.3.2 Canary 1

CoreMessenger.write calls slow writing to a file on the UI thread and freezes typing for 13.6 seconds


AWT-EventQueue-0, TID: 109 [13600ms]:

...
com.maddyhome.idea.vim.api.VimCaret.moveToOffset(VimCaret.kt:101) [13600ms]
com.maddyhome.idea.vim.newapi.IjVimCaret.moveToInlayAwareOffset(IjVimCaret.kt:137) [13600ms]
com.maddyhome.idea.vim.helper.InlayHelperKt.moveToInlayAwareOffset(InlayHelper.kt:45) [13600ms]
com.intellij.openapi.editor.impl.CaretImpl.moveToVisualPosition(CaretImpl.java:527) [13600ms]
com.intellij.openapi.editor.impl.CaretImpl.moveToVisualPosition(CaretImpl.java:531) [13600ms]
com.intellij.openapi.editor.impl.CaretModelImpl.doWithCaretMerging(CaretModelImpl.java:413) [13600ms]
com.intellij.openapi.editor.impl.CaretImpl$$Lambda/0x0000000802bd7770.run(Unknown Source) [13600ms]
com.intellij.openapi.editor.impl.CaretImpl.lambda$moveToVisualPosition$4(CaretImpl.java:531) [13600ms]
com.intellij.openapi.editor.impl.CaretImpl.doMoveToVisualPosition(CaretImpl.java:593) [13600ms]
com.intellij.openapi.editor.impl.CaretModelImpl.fireCaretPositionChanged(CaretModelImpl.java:539) [13600ms]
jdk.proxy2/jdk.proxy2.$Proxy120.caretPositionChanged(Unknown Source) [13600ms]
com.intellij.util.EventDispatcher$$Lambda/0x0000000800628de8.invoke(Unknown Source) [13600ms]
com.intellij.util.EventDispatcher.lambda$createMulticaster$1(EventDispatcher.java:85) [13600ms]
com.intellij.util.EventDispatcher.dispatchVoidMethod(EventDispatcher.java:120) [13600ms]
[email protected]/java.lang.reflect.Method.invoke(Unknown Source) [13600ms]
[email protected]/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source) [13600ms]
[email protected]/jdk.internal.reflect.DirectMethodHandleAccessor.invokeImpl(Unknown Source) [13600ms]
[email protected]/java.lang.invoke.Invokers$Holder.invokeExact_MT(Unknown Source) [13600ms]
[email protected]/java.lang.invoke.LambdaForm$MH/0x0000000802dc8000.invoke(LambdaForm$MH) [13600ms]
[email protected]/java.lang.invoke.LambdaForm$DMH/0x000000080033a800.invokeInterface(LambdaForm$DMH) [13600ms]
com.github.continuedev.continueintellijextension.autocomplete.AutocompleteCaretListener.caretPositionChanged(AutocompleteEditorListener.kt:28) [13600ms]
com.github.continuedev.continueintellijextension.autocomplete.AutocompleteService.clearCompletions(AutocompleteService.kt:272) [13600ms]
com.github.continuedev.continueintellijextension.autocomplete.AutocompleteService.cancelCompletion(AutocompleteService.kt:265) [13600ms]
com.github.continuedev.continueintellijextension.continue.CoreMessenger.request(CoreMessenger.kt:45) [13600ms]
com.github.continuedev.continueintellijextension.continue.CoreMessenger.write(CoreMessenger.kt:33) [13600ms]
[email protected]/java.io.Writer.write(Unknown Source) [13600ms]
[email protected]/java.io.OutputStreamWriter.write(Unknown Source) [13600ms]
[email protected]/sun.nio.cs.StreamEncoder.write(Unknown Source) [13600ms]
[email protected]/sun.nio.cs.StreamEncoder.write(Unknown Source) [13600ms]
[email protected]/jdk.internal.misc.InternalLock.lock(Unknown Source) [13600ms]
[email protected]/java.util.concurrent.locks.ReentrantLock.lock(Unknown Source) [13600ms]
[email protected]/java.util.concurrent.locks.ReentrantLock$Sync.lock(Unknown Source) [13600ms]
[email protected]/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(Unknown Source) [13600ms]
[email protected]/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(Unknown Source) [13600ms]
[email protected]/java.util.concurrent.locks.LockSupport.park(Unknown Source) [13600ms]
[email protected]/jdk.internal.misc.Unsafe.park(Native Method) [13600ms]
{latencyMs: 7776, typingId: 1, fileType: UNKNOWN, fileExtension: env}

Description

No response

To reproduce

No response

Log output

@sestinj sestinj self-assigned this Feb 17, 2025
@dosubot dosubot bot added area:autocomplete Relates to the auto complete feature ide:jetbrains Relates specifically to JetBrains extension kind:bug Indicates an unexpected problem or unintended behavior labels Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:autocomplete Relates to the auto complete feature ide:jetbrains Relates specifically to JetBrains extension kind:bug Indicates an unexpected problem or unintended behavior "needs-triage"
Projects
None yet
Development

No branches or pull requests

2 participants