Skip to content

Autocomplete Freezing and Locking Up the IDE #5819

Closed as not planned
Closed as not planned

Description

@Patrick-Erichsen

Below is an AI generated summary of the following related issues:

Summary of JetBrains IDE Freezing

Root Cause:

The primary root cause appears to be related to the autocomplete functionality in the JetBrains plugin, leading to the IDE freezing or becoming unresponsive. This is often (but not always) accompanied by high CPU usage from the continue-binary process. A secondary, possibly related, issue involves errors during the indexing/embedding process, specifically "Table already exists" errors with LanceDB.

Affected Versions & IDEs:

  • Continue Plugin Versions: Issues have been reported across various versions, including 0.0.75, 0.0.83, 0.0.85, 0.0.88, 1.0.2, 1.0.8, 1.0.17, and 1.0.18 (0.0.75 appears to be the last version that definitely does not experience the issue)
  • JetBrains IDEs: IntelliJ IDEA, WebStorm, CLion, Rider, RustRover.
  • IDE Versions: Primarily 2024.x versions (e.g., 2024.3, 2025.1 EAP).
  • Operating Systems: Windows (10, 11), macOS, Linux.

Note: IDEA 2025.1 in particular has freezing issues across a number of plugins. See this issue for details.

Symptoms & User Reports:

  1. IDE Freezing/Hanging:

    • The most common complaint is the IDE becoming completely unresponsive, often when typing or when autocomplete is triggered.
    • Users often need to kill the IDE process via Task Manager or similar.
    • Freezing can occur within minutes of starting the IDE or after a period of normal use.
    • Some users report freezing even with the tab autocomplete feature disabled in settings.
  2. High CPU Usage:

    • The continue-binary process is frequently reported to consume high CPU (50-300%, sometimes pinning a core at 100%).
    • However, some users experience freezes without high CPU usage from continue-binary.
  3. Autocomplete Issues:

    • Autocomplete suggestions stop appearing.
    • IDE freezes when IntelliJ's native suggestions try to pop up.
    • Stack traces often point to AutocompleteService and related classes.
    • Disabling tab autocomplete in config.json or via IDE settings is a common workaround, but doesn't always resolve the freezing for everyone.
    • Removing keyboard shortcuts related to "Autocomplete" in JetBrains keymap settings has helped some users.
  4. Indexing/Embedding Errors:

    • Error messages like: Error: Table 'fileUserssrccatalog-aimainvectordbbRAnomic-embed-text500' already exists.
    • Re-indexing shows files being re-indexed but doesn't resolve the underlying problem or improve context quality.
    • Context only injects a single, incorrect file.
    • Skipping files (e.g., .drawio) during indexing due to "did not chunk properly".
  5. Interaction with Other Plugins/Features:

    • One user noted a potential conflict or interaction with com.intellij.codeWithMe (Code With Me feature). Disabling it delayed but didn't always prevent crashes.
    • Disabling other plugins (like "Grazie" and "Grazie Professional" or "JetBrains AI Assistant") was suggested as a potential fix for some users in one thread, but its general applicability is unclear.

Steps Users Have Taken (Workarounds & Troubleshooting):

  • Disabling Autocomplete:
    • Commenting out or removing the tabAutocompleteModel section in config.json.
    • Unchecking "Enable Tab Autocomplete" in the Continue plugin settings within the IDE.
    • Removing Continue-related autocomplete keyboard shortcuts in IDE settings.
  • Downgrading Plugin Version:
    • Some users found older versions like 0.0.75 to be more stable, although potentially lacking features like copy-paste from the plugin window.
  • Clearing Index / Resetting Continue:
    • Deleting the ~/.continue (or ~/.continue_dev) folder to force a fresh start and re-indexing. This was suggested by a maintainer for indexing-specific errors.
  • Restarting IDE / Reinstalling Plugin:
    • Temporary relief for some, but the issue often returns.
  • Killing continue-binary Process:
    • Some users found that manually killing the high-CPU continue-binary process temporarily resolved the freeze, allowing the IDE to function again. For others, this did not help.
  • Checking Ollama/Model Configuration:
    • Ensuring that models specified in config.json (especially for autocomplete) are actually installed and accessible if using local models via Ollama.

Maintainer Actions & Responses:

Recommendations for Users (Temporary Resolutions):

  1. Disable Autocomplete (Most Effective Workaround):
    • Go to your IDE's Continue plugin settings and uncheck "Enable Tab Autocomplete".
  2. Clear Index Folder (for "Table already exists" or context issues):
    • Close your IDE.
    • Delete the ~/.continue/index folder (or ~/.continue_dev/index).
    • Restart your IDE. The index will be rebuilt.
  3. Try an Older Version (e.g., 0.0.75):
    • If stability is paramount and current versions are unusable, consider manually installing an older version from the JetBrains marketplace version history. Be aware that you might lose recent features or bug fixes.
  4. Monitor continue-binary Process:
    • If your IDE freezes, check your system's task manager for a continue-binary process with high CPU usage. If found, try terminating it. This may unfreeze the IDE, but the issue will likely recur.
  5. Ensure Local Model Availability: If using Ollama or another local provider for autocomplete, double-check that the model specified in config.json is downloaded and running correctly.
  6. Report Issues with Details: If you continue to experience problems, report them on the GitHub issues page, providing:
    • Your Continue plugin version.
    • Your JetBrains IDE and version.
    • Your Operating System.
    • Your config.json (please redact any sensitive keys).
    • Relevant logs from ~/.continue/continue.log.
    • Steps to reproduce the freeze if possible.
    • Any IDE thread dumps if the IDE generates them upon freezing.

Activity

  1. self-assigned this
    on May 23, 2025
  2. added
    ide:jetbrains
    on May 23, 2025
  3. a12233 commented on May 23, 2025

    @a12233

    I am having this issue when I lock my screen with IntelliJ open and unlock my screen after a period of time. IntelliJ is unresponsive and needs to be Force Quit.

    • OS: MacOs 15.5
    • Continue version: 1.0.16
    • IDE version: IntelliJ IDEA 2024.2.5 (Ultimate Edition)

    If I minimize IntelliJ and do the same lock screen, wait, return, maximize application I do not see the "freezing" behavior

  4. RomneyDa commented on May 24, 2025

    @RomneyDa
    Contributor

    @a12233 this may have been fixed by #5600 , could you try 1.0.17?

  5. glm1024 commented on May 24, 2025

    @glm1024
    Contributor

    Starting from version 0.77, JetBrains IDEs consistently freeze after triggering autocomplete several times. However, when autocomplete is disabled, the crash no longer occurs. This issue does not occur in VS code, where autocomplete works as expected.

  6. glm1024 commented on May 24, 2025

    @glm1024
    Contributor

    To reproduce the issue, keep triggering autocomplete continuously around 20 to 30 time. JetBrains IDEs will freeze after several invocations.

  7. danielzgtg commented on May 24, 2025

    @danielzgtg

    Has anyone run jstack on the frozen process?

  8. ruchernchong commented on May 24, 2025

    @ruchernchong
    Contributor

    @a12233 this may have been fixed by #5600 , could you try 1.0.17?

    Problem still persisted for me even in 1.0.18 EAP.

  9. marked plugin #5583 as a duplicate of this issue on May 25, 2025
  10. auderson commented on May 26, 2025

    @auderson

    @a12233 this may have been fixed by #5600 , could you try 1.0.17?

    Problem still persisted for me even in 1.0.18 EAP.

    Same in 1.0.18

  11. Hakenadu commented on May 26, 2025

    @Hakenadu
  12. changed the title [-]JetBrains freezing[/-] [+]Autocomplete Freezing and Locking Up[/+] on May 26, 2025
  13. changed the title [-]Autocomplete Freezing and Locking Up[/-] [+]Autocomplete Freezing and Locking Up the IDE[/+] on May 27, 2025
  14. Patrick-Erichsen commented on May 27, 2025

    @Patrick-Erichsen
    ContributorAuthor

    @Hakenadu there are a few other users that have reported this too but I don't recall the issue number, if you find it definitely drop it here!

  15. 28 remaining items

  16. Patrick-Erichsen commented on Jul 17, 2025

    @Patrick-Erichsen
    ContributorAuthor

    @C-Lunn this should be resoled in 1.0.19, apologies for the issue!

  17. unpinned this issue on Aug 5, 2025
  18. blindahl commented on Aug 29, 2025

    @blindahl

    Is this issue solely in combination with autocomplete? I have experienced Continue to completely freeze after minutes upon launching a new Intellij and it won't recover. Until restarting Intellij. I reported it in Discord a while.ago: https://discord.com/channels/1108621136150929458/1379417064585822248

    I tried version 1.0.40-eap with Intellij 2025.2 ultimate but the freeze issue still persists.

  19. exigow commented on Sep 1, 2025

    @exigow
    Contributor

    Hi @blindahl 👋, thanks for posting this. As you may know, we've introduced some fixes that are addressing freezing issues, so your report is definitely concerning.

    I checked your post on Discord (+ links) and I have a few questions:

    • The freezing caused by autocomplete should now be eliminated. Can you provide more details what's causing it? Was it after using a specific feature or for example after being inactive?
    • The initial bug Cannot read field 'objId' because 'robj' is null has been fixed. Please let me know if it still occurs, but it should no longer appear in 1.0.40.
    • We recently introduced some changes to automatic error reporting so this app.posthog.com should never occur by default. Can you make sure that telemetry is disabled? It's an opt-in setting, but it's likely you have it enabled since we're seeing requests going to PostHog. The option can be found in Continue Toolbar > Settings (gear icon) > Allow Anonymous Telemetry. Could you please verify this?
    • Most important: Could you please share your IDE logs after the freeze? Logs are available under Menu > Help > Open Log in Editor.
  20. blindahl commented on Sep 3, 2025

    @blindahl

    @exigow I wonder if I should create a separate issue. Anyway, IntelliJ still freezes after using it for a short while. Maybe the
    Cannot read field 'objId' because 'robj' is null isn't present after all. I get back if it still shows up.

    Telemetry is off and I haven't seen the posthog error any more.

    At startup I always get this stacktrace though:

    Unhandled exception in Dispatchers.Main
    
    com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments: Read access is allowed from inside read-action only (see Application.runReadAction()); If you access or modify model on EDT consider wrapping your code in WriteIntentReadAction ; see https://jb.gg/ij-platform-threading for details
    Current thread: Thread[#42,AWT-EventQueue-0,10,main] 277916573 (EventQueue.isDispatchThread()=true)
    SystemEventQueueThread: (same)
    	at com.intellij.util.concurrency.ThreadingAssertions.createThreadAccessException(ThreadingAssertions.java:257)
    	at com.intellij.util.concurrency.ThreadingAssertions.throwThreadAccessException(ThreadingAssertions.java:248)
    	at com.intellij.util.concurrency.ThreadingAssertions.assertReadAccess(ThreadingAssertions.java:138)
    	at com.intellij.openapi.editor.impl.EditorThreading.assertInteractionAllowed(EditorThreading.kt:30)
    	at com.intellij.openapi.editor.impl.CaretImpl.getOffset(CaretImpl.java:661)
    	at com.github.continuedev.continueintellijextension.listeners.ActiveHandlerManager$caretPositionChanged$1.invokeSuspend(ActiveHandlerManager.kt:115)
    	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
    	at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:225)
    	at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:122)
    	at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:43)
    	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
    	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:781)
    	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:728)
    	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
    	at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
    	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
    	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:750)
    	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:595)
    	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:488)
    	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$12$lambda$11$lambda$10$lambda$9(IdeEventQueue.kt:313)
    	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:865)
    	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$12$lambda$11$lambda$10(IdeEventQueue.kt:312)
    	at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$3(IdeEventQueue.kt:974)
    	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:110)
    	at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:974)
    	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$12(IdeEventQueue.kt:307)
    	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:347)
    	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)
    	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelled}@151db016, Dispatchers.Main]
    

    I'll have to get back to you with the logs. I haven't been able to se a pattern when the feeze occurs. I don't do anything as far as I've seen. Mostly switch from ide to other applications and back and all of a sudden Continue doesn't react. I haven't used Continue while it freezes though. It has frozen when I wan't to use it. I both have continue window hidden and visible, it doesn't matter.

  21. blindahl commented on Sep 5, 2025

    @blindahl

    @exigow I wonder if I should create a separate issue. Anyway, IntelliJ still freezes after using it for a short while. Maybe the Cannot read field 'objId' because 'robj' is null isn't present after all. I get back if it still shows up.

    Telemetry is off and I haven't seen the posthog error any more.

    At startup I always get this stacktrace though:

    Unhandled exception in Dispatchers.Main
    
    com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments: Read access is allowed from inside read-action only (see Application.runReadAction()); If you access or modify model on EDT consider wrapping your code in WriteIntentReadAction ; see https://jb.gg/ij-platform-threading for details
    Current thread: Thread[#42,AWT-EventQueue-0,10,main] 277916573 (EventQueue.isDispatchThread()=true)
    SystemEventQueueThread: (same)
    	at com.intellij.util.concurrency.ThreadingAssertions.createThreadAccessException(ThreadingAssertions.java:257)
    	at com.intellij.util.concurrency.ThreadingAssertions.throwThreadAccessException(ThreadingAssertions.java:248)
    	at com.intellij.util.concurrency.ThreadingAssertions.assertReadAccess(ThreadingAssertions.java:138)
    	at com.intellij.openapi.editor.impl.EditorThreading.assertInteractionAllowed(EditorThreading.kt:30)
    	at com.intellij.openapi.editor.impl.CaretImpl.getOffset(CaretImpl.java:661)
    	at com.github.continuedev.continueintellijextension.listeners.ActiveHandlerManager$caretPositionChanged$1.invokeSuspend(ActiveHandlerManager.kt:115)
    	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
    	at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:225)
    	at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:122)
    	at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:43)
    	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
    	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:781)
    	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:728)
    	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
    	at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
    	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
    	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:750)
    	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:595)
    	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:488)
    	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$12$lambda$11$lambda$10$lambda$9(IdeEventQueue.kt:313)
    	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:865)
    	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$12$lambda$11$lambda$10(IdeEventQueue.kt:312)
    	at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$3(IdeEventQueue.kt:974)
    	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:110)
    	at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:974)
    	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$12(IdeEventQueue.kt:307)
    	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:347)
    	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)
    	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelled}@151db016, Dispatchers.Main]
    

    I'll have to get back to you with the logs. I haven't been able to se a pattern when the feeze occurs. I don't do anything as far as I've seen. Mostly switch from ide to other applications and back and all of a sudden Continue doesn't react. I haven't used Continue while it freezes though. It has frozen when I wan't to use it. I both have continue window hidden and visible, it doesn't matter.

    I figure this is something completely different so should I go ahead and create another issue for this?
    Edit: it looks like there's a couple of reports for it already: #7570 #7473 #7516

  22. exigow commented on Sep 5, 2025

    @exigow
    Contributor

    I figure this is something completely different so should I go ahead and create another issue for this?

    @blindahl, no worries! The issue you reported is actually a separate thing, but I've already managed to merge the fix (#7555).

    As for the freeze, I identified one of the problems and made a fix as well (#7550), but it might only be partially related (the fix addresses a bug where the JCEF browser could become unresponsive when switching between projects).

  23. MathiasFranceschi commented on Sep 17, 2025

    @MathiasFranceschi

    What I noticed, this is regardless of Continue's plugin version. It has to do with the major update to 2025.X.X for any of JetBrains's IDE

    I can confirm this, i couldn't make the plugin work on any version and i downgraded from 2025 to latest 2024 version and for a complete day i didn't had any crash.

  24. exigow commented on Sep 18, 2025

    @exigow
    Contributor

    @MathiasFranceschi, could you please share which exact version of the IDE you’re experiencing these crashes with (along with Continue plugin version)? I use #IU-252.25557.131 on a daily basis and have a different experience/downgrade was not required. I’d like to try downloading the exact same version you have and attempt to reproduce this. Version info is under IDE Menu > Help > About.

  25. MathiasFranceschi commented on Sep 19, 2025

    @MathiasFranceschi

    @MathiasFranceschi, could you please share which exact version of the IDE you’re experiencing these crashes with (along with Continue plugin version)? I use #IU-252.25557.131 on a daily basis and have a different experience/downgrade was not required. I’d like to try downloading the exact same version you have and attempt to reproduce this. Version info is under IDE Menu > Help > About.

    I would love to, but i uninstalled my previous versions who crashed.

    Image

    it was on these phpstorm versions that i had these crash and i tried multiple continue version and always the same crashes. I even tried the 0.075 version and it was exactly the same.

    The current working versions i'm using is PhpStorm 2024.3.7Build #PS-243.28141.5, built on September 9, 2025, and latest continue version.

  26. MathiasFranceschi commented on Sep 29, 2025

    @MathiasFranceschi

    @MathiasFranceschi, could you please share which exact version of the IDE you’re experiencing these crashes with (along with Continue plugin version)? I use #IU-252.25557.131 on a daily basis and have a different experience/downgrade was not required. I’d like to try downloading the exact same version you have and attempt to reproduce this. Version info is under IDE Menu > Help > About.

    I would love to, but i uninstalled my previous versions who crashed.
    Image

    it was on these phpstorm versions that i had these crash and i tried multiple continue version and always the same crashes. I even tried the 0.075 version and it was exactly the same.

    The current working versions i'm using is PhpStorm 2024.3.7Build #PS-243.28141.5, built on September 9, 2025, and latest continue version.

    Idk it can help but this weekend i installed webstorm latest , so 2025.2.2 on my Opensuse Tumbleweed and i had no issues at all, so i'm wondering if it's related to windows ?
    Or i have this idea too it could be that i have a really big project on this windows laptop so maybe the problems come when there are too much files.

  27. github-actions commented on Dec 29, 2025

    @github-actions
    Contributor

    This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.

  28. github-actions commented on Jan 9, 2026

    @github-actions
    Contributor

    This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ide:jetbrainsstale

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions