Skip to content

Very high cpu usage #4376

Open
Open

Description

@kekxv

Before submitting your bug report

Relevant environment info

- OS: macos
- Continue version: 1.0.0
- IDE version: IntelliJ IDEA 2024.3.3 (Ultimate Edition)
- Model: qwen2.5-code
- config:
  
  "embeddingsProvider": {
    "provider": "ollama",
    "model": "nomic-embed-text"
  },
  "tabAutocompleteModel": {
    "title": "Tab Autocomplete",
    "provider": "ollama",
    "model": "qwen2.5-coder:1.5b",
    "completionOptions.bak": {
      "stop": [
        "[PREFIX]",
        "[SUFFIX]"
      ]
    },
    "useLegacyCompletionsEndpoint": false
  },
  "tabAutocompleteOptions": {
    "useCopyBuffer": true,
    "useSuffix": true,
    "maxPromptTokens": 500,
    "useOtherFiles": true,
    "stopSequences": 5,
    "prefixPercentage": 0.5,
    "useFileSuffix": true
  }

Description

Image

To reproduce

No response

Log output

[2025-02-26T15:01:47] The operation was aborted.

Code: undefined
Error number: undefined
Syscall: undefined
Type: aborted

xYe: The operation was aborted.
    at u (/snapshot/continue/binary/out/index.js:46:17817)
    at AbortSignal.I (/snapshot/continue/binary/out/index.js:46:18004)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:645:20)
    at AbortSignal.dispatchEvent (node:internal/event_target:587:26)
    at abortSignal (node:internal/abort_controller:292:10)
    at AbortController.abort (node:internal/abort_controller:322:5)
    at Bke.cancel (/snapshot/continue/binary/out/index.js:8267:2844)
    at wke._createListenableGenerator (/snapshot/continue/binary/out/index.js:8267:3582)
    at wke.getGenerator (/snapshot/continue/binary/out/index.js:8267:4054)
    at getGenerator.next (<anonymous>)
[2025-02-26T15:03:44] The operation was aborted.

Code: undefined
Error number: undefined
Syscall: undefined
Type: aborted

xYe: The operation was aborted.
    at u (/snapshot/continue/binary/out/index.js:46:17817)
    at AbortSignal.I (/snapshot/continue/binary/out/index.js:46:18004)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:645:20)
    at AbortSignal.dispatchEvent (node:internal/event_target:587:26)
    at abortSignal (node:internal/abort_controller:292:10)
    at AbortController.abort (node:internal/abort_controller:322:5)
    at Bke.cancel (/snapshot/continue/binary/out/index.js:8267:2844)
    at wke._createListenableGenerator (/snapshot/continue/binary/out/index.js:8267:3582)
    at wke.getGenerator (/snapshot/continue/binary/out/index.js:8267:4054)
    at getGenerator.next (<anonymous>)
[info] Starting Continue core...
[2025-02-26T15:04:19] [info] Starting Continue core...
[2025-02-26T15:04:19] Setup
[2025-02-26T15:04:19] V1 Dev data migration: /Users/caesar/.continue/dev_data/0.1.0/tokensGenerated.jsonl already exists, skipping tokens_generated
[2025-02-26T15:04:19] [binary] Core started

Activity

  1. added
    ide:jetbrains
    kind:bug
    on Feb 26, 2025
  2. fulco813 commented on Mar 3, 2025

    @fulco813

    Same error 【The operation was aborted.】

  3. kekxv commented on Mar 3, 2025

    @kekxv
    Author

    Same error 【The operation was aborted.】

    2025 eap work,But the CPU is still high.

  4. kekxv commented on Mar 5, 2025

    @kekxv
    Author
    Freeze in EDT for 24 seconds
    Sampled time: 15200ms, sampling rate: 100ms, GC time: 701ms (3%), Class loading: 0%
    
    com.intellij.diagnostic.Freeze
    	at [email protected]/java.io.FileOutputStream.writeBytes(Native Method)
    	at [email protected]/java.io.FileOutputStream.write(FileOutputStream.java:367)
    	at [email protected]/java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:125)
    	at [email protected]/java.io.BufferedOutputStream.implFlush(BufferedOutputStream.java:252)
    	at [email protected]/java.io.BufferedOutputStream.flush(BufferedOutputStream.java:246)
    	at [email protected]/sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:412)
    	at [email protected]/sun.nio.cs.StreamEncoder.lockedFlush(StreamEncoder.java:214)
    	at [email protected]/sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:201)
    	at [email protected]/java.io.OutputStreamWriter.flush(OutputStreamWriter.java:262)
    	at com.github.continuedev.continueintellijextension.continue.CoreMessenger.write(CoreMessenger.kt:35)
    	at com.github.continuedev.continueintellijextension.continue.CoreMessenger.request(CoreMessenger.kt:46)
    	at com.github.continuedev.continueintellijextension.autocomplete.AutocompleteService.triggerCompletion(AutocompleteService.kt:104)
    	at com.github.continuedev.continueintellijextension.autocomplete.AutocompleteDocumentListener$documentChanged$$inlined$invokeLater$default$1.run(actions.kt:62)
    	at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:240)
    	at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:25)
    	at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:202)
    	at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runIntendedWriteActionOnCurrentThread$lambda$7(AnyThreadWriteThreadingSupport.kt:315)
    	at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport$$Lambda/0x000000b00178c3a8.compute(Unknown Source)
    	at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction$lambda$6(AnyThreadWriteThreadingSupport.kt:270)
    	at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport$$Lambda/0x000000b0014f4000.invoke(Unknown Source)
    	at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWithTemporaryThreadLocal(AnyThreadWriteThreadingSupport.kt:210)
    	at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:270)
    	at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runIntendedWriteActionOnCurrentThread(AnyThreadWriteThreadingSupport.kt:314)
    	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:923)
    	at com.intellij.openapi.application.impl.ApplicationImpl$4.run(ApplicationImpl.java:501)
    	at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:102)
    	at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:102)
    	at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:108)
    	at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:102)
    	at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27)
    	at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:117)
    	at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:43)
    	at com.intellij.openapi.application.impl.FlushQueue$$Lambda/0x000000b0014204c8.run(Unknown Source)
    	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 [email protected]/java.security.AccessController.executePrivileged(AccessController.java:778)
    	at [email protected]/java.security.AccessController.doPrivileged(AccessController.java:400)
    	at [email protected]/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:585)
    	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:482)
    	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$12$lambda$11$lambda$10$lambda$9(IdeEventQueue.kt:307)
    	at com.intellij.ide.IdeEventQueue$$Lambda/0x000000b001ebb810.compute(Unknown Source)
    	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:864)
    	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$12$lambda$11$lambda$10(IdeEventQueue.kt:306)
    	at com.intellij.ide.IdeEventQueue$$Lambda/0x000000b0018527c8.invoke(Unknown Source)
    	at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$3(IdeEventQueue.kt:958)
    	at com.intellij.ide.IdeEventQueueKt$$Lambda/0x000000b001852ee8.run(Unknown Source)
    	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:109)
    	at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:958)
    	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$12(IdeEventQueue.kt:301)
    	at com.intellij.ide.IdeEventQueue$$Lambda/0x000000b001851e80.run(Unknown Source)
    	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:341)
    	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)
    
    Image
  5. vubaone commented on Mar 13, 2025

    @vubaone

    I have the same issue, no autocompletion request, no chat, disable indexing, just open vscode in idle but continue try to peak 300% CPU.

    Why do I know it? Yay my macbook got hot and I disable continue and everything got normal, turn on continue and the CPU peak again.

  6. regs01 commented on Mar 13, 2025

    @regs01

    Noticed same behavior. Just opened idling Code with Continue enabled eating 17% of CPU instantly. Everything is disabled in User Settings.

  7. gins3000 commented on Mar 20, 2025

    @gins3000

    Same, starting Vscode with this extension instantly burns all of my CPU cores until the extension is disabled and vscode restarted.

  8. added
    os:mac
    on May 7, 2025
  9. Patrick-Erichsen commented on May 23, 2025

    @Patrick-Erichsen
    Contributor

    Hi all, we are going to prioritize this in the near term. I've created a main issue to track all reports of slows downs/freezes with the JetBrains extension in this issue: #5819

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

Metadata

Metadata

Assignees

Labels

ide:jetbrainskind:bugneeds-triageos:mac

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions