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

Bug in VSCode: Lagging Output and Freezing 'Continue' chat Window #3048

Open
3 tasks done
antonovkz opened this issue Nov 23, 2024 · 3 comments
Open
3 tasks done

Bug in VSCode: Lagging Output and Freezing 'Continue' chat Window #3048

antonovkz opened this issue Nov 23, 2024 · 3 comments
Assignees
Labels
area:chat Relates to chat interface ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior "needs-triage"

Comments

@antonovkz
Copy link

antonovkz commented Nov 23, 2024

Before submitting your bug report

Relevant environment info

- OS: Windows 11
- IDE version: VSCode|VSCodium
- config.json:
  
{
  "models": [
    {
      "model": "Qwen2.5-Coder-32B-Instruct-exl2-4.5bpw-hb8",
      "title": "Qwen2.5-Coder-32B-Instruct-exl2-4.5bpw-hb8-32к",
      "apiBase": "http://127.0.0.1:7001/v1",
      "provider": "openai",
      "contextLength": 32768,
      "completionOptions": {
        "temperature": 0.1,
        "topK": 20,
        "topP": 0.8,
        "maxTokens": 30000
      }
    }
  ],
  "tabAutocompleteModel": {
    "title": "Codestral",
    "provider": "mistral",
    "model": "codestral-latest",
    "apiKey": ""
  },
  "contextProviders": [
    {
      "name": "code",
      "params": {}
    },
    {
      "name": "docs",
      "params": {}
    },
    {
      "name": "diff",
      "params": {}
    },
    {
      "name": "terminal",
      "params": {}
    },
    {
      "name": "problems",
      "params": {}
    },
    {
      "name": "folder",
      "params": {}
    },
    {
      "name": "codebase",
      "params": {}
    }
  ],
  "slashCommands": [
    {
      "name": "share",
      "description": "Export the current chat session to markdown"
    },
    {
      "name": "cmd",
      "description": "Generate a shell command"
    },
    {
      "name": "commit",
      "description": "Generate a git commit message"
    }
  ],
  "allowAnonymousTelemetry": false
}

Description

This is an extremely critical bug that I encounter regularly after using the chat for a certain amount of time, especially during long conversations. The issue is present in all versions, both "stable" and preview. Initially, the chat output starts lagging noticeably, and after some time, the "Continue" chat window completely freezes. Currently, the only solution is a complete restart of VSCode. If any additional information or logs are needed, I am ready to provide them, as I am very interested in resolving this issue.
Screenshot 2024-11-16 205731

To reproduce

To reproduce the issue, it is enough to use the chat for some time. In my case, it happens regardless of whether I create new chats or use the same one for an extended period — the problem consistently occurs.

Log output

Developer debug console: empty
@sestinj sestinj self-assigned this Nov 23, 2024
@dosubot dosubot bot added area:chat Relates to chat interface ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior labels Nov 23, 2024
@shashanknimje
Copy link

shashanknimje commented Nov 23, 2024

image

I wonder if the above error I am now getting after updating to ollama v0.4.4 (preview) is related to this issue.

It occurs as soon as you try to launch Continue. I tried uninstalling a reinstalling, but that didn't fix it either.

Here's the error vscode throws:

Error loading webview: Error: Could not register service worker: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state..

Edit: Created a new issue #3049

@antonovkz
Copy link
Author

I wonder if the above error I am now getting after updating to ollama v0.4.4 (preview) is related to this issue.

It occurs as soon as you try to launch Continue. I tried uninstalling a reinstalling, but that didn't fix it either.

Here's the error vscode throws:

Error loading webview: Error: Could not register service worker: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state..

Edit: Created a new issue #3049

In my case, it doesn’t matter which backend is used—Ollama, OpenAI, Nebius, or someone else. The extension completely breaks down and requires an IDE restart to function again.

@sestinj
Copy link
Contributor

sestinj commented Nov 27, 2024

@shashanknimje the error you're sharing here (thank you!) is separate and has been solved.

@antonovkz when this crash happens, how long are your chats? I'm trying to get a sense of what we should be testing.

Regardless, I'm aware of a few potential re-rendering problems that we intend to fix this month

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:chat Relates to chat interface ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior "needs-triage"
Projects
None yet
Development

No branches or pull requests

3 participants