Skip to content

Zed constantly "locks up" / hangs for minutes at a time #47750

@alonsoC1s

Description

@alonsoC1s

Reproduction steps

  1. Start Zed
  2. Run zed: open log file
  3. Scroll up and down a few times

Current vs. Expected behavior

Almost any interaction with Zed locks up the entire editor, and I can't do anything on it for periods ranging from a few seconds to 2 minutes. Simple things, such as opening the Zed log or any kind of file at all, including plain text files, result in these prolonged hangups. Wether the project is marked as trusted or not makes no difference

Image

The log suggests it's a problem with gpui. I've had these issues since late October / November 2025 (sorry I can't be more precise). I tend to keep up with daily updates. The issue has persisted across versions ever since.

This is complete speculation, but I have a suspicion that the hang lasts so long because of the sheer amount of data it logs. The hang logs are about 12mb per instance. This issue seems to be unrelated to #47141, as it happens even with files smaller than 20 lines, or simply interacting with the UI

Zed version and system specs

Zed: v0.220.6+stable.133.6a75953cd3a6512d120cf6d3cc96eeaa14f827ff (Zed)
OS: Linux Wayland debian 12
Memory: 31.1 GiB
Architecture: x86_64
GPU: Intel(R) UHD Graphics 630 (CFL GT2) || Intel open-source Mesa driver || Mesa 22.3.6

Attach Zed log file

Zed.log
2026-01-27T10:35:44+01:00 INFO  [zed] ========== starting zed version 0.220.6+stable.133.6a75953cd3a6512d120cf6d3cc96eeaa14f827ff, sha 6a75953 ==========
2026-01-27T10:35:44+01:00 INFO  [crashes] spawning crash handler process
2026-01-27T10:35:46+01:00 INFO  [crashes] connected to crash handler process after 2s
2026-01-27T10:35:46+01:00 INFO  [crashes] crash handler registered
2026-01-27T10:35:47+01:00 INFO  [util] set environment variables from shell:/bin/zsh, path:/home/numerik/amartine/.juliaup/bin:/opt/conda/bin:/opt/conda/condabin:/home/numerik/amartine/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2026-01-27T10:36:17+01:00 INFO  [sqlez::migrations] Found 9 foreign key relationships to check
2026-01-27T10:36:17+01:00 INFO  [gpui::platform::linux::platform] activate is not implemented on Linux, ignoring the call
2026-01-27T10:36:18+01:00 INFO  [auto_update] Auto Update: checking for updates
2026-01-27T10:36:18+01:00 INFO  [extension_host] installing extension html latest version
2026-01-27T10:36:18+01:00 INFO  [gpui::platform::blade::blade_renderer] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8Unorm, alpha: PreMultiplied }
2026-01-27T10:36:18+01:00 INFO  [crates/workspace/src/workspace.rs:3280] Couldn't find any enabled panel for the Left dock.
2026-01-27T10:36:18+01:00 INFO  [workspace] Rendered first frame
2026-01-27T10:36:18+01:00 INFO  [zed::zed] Using GPU: GpuSpecs { is_software_emulated: false, device_name: "Intel(R) UHD Graphics 630 (CFL GT2)", driver_name: "Intel open-source Mesa driver", driver_info: "Mesa 22.3.6" }
2026-01-27T10:36:18+01:00 INFO  [sqlez::migrations] Found 10 foreign key relationships to check
2026-01-27T10:36:18+01:00 INFO  [sqlez::migrations] Found 10 foreign key relationships to check
2026-01-27T10:36:18+01:00 INFO  [sqlez::migrations] Found 11 foreign key relationships to check
2026-01-27T10:36:19+01:00 INFO  [extension_host] rebuilt extension index in 10.916572ms
2026-01-27T10:36:19+01:00 INFO  [extension_host] extensions updated. loading 1, reloading 0, unloading 0
2026-01-27T10:36:50+01:00 INFO  [onboarding] Imported VS Code settings from /home/numerik/amartine/.config/Code/User/settings.json
2026-01-27T10:36:58+01:00 INFO  [sqlez::migrations] Found 12 foreign key relationships to check
2026-01-27T10:37:45+01:00 INFO  [project::trusted_worktrees] Worktree "/home/htc/amartine/opinion-polarization-rl-jl" is not trusted
2026-01-27T10:37:45+01:00 INFO  [zed::zed] Using GPU: GpuSpecs { is_software_emulated: false, device_name: "Intel(R) UHD Graphics 630 (CFL GT2)", driver_name: "Intel open-source Mesa driver", driver_info: "Mesa 22.3.6" }
2026-01-27T10:37:54+01:00 INFO  [sqlez::migrations] Found 17 foreign key relationships to check
2026-01-27T10:38:29+01:00 INFO  [extension_host] installing extension julia latest version
2026-01-27T10:38:31+01:00 INFO  [extension_host] rebuilt extension index in 17.320539ms
2026-01-27T10:38:31+01:00 INFO  [extension_host] extensions updated. loading 1, reloading 0, unloading 0
2026-01-27T10:38:50+01:00 INFO  [lsp] starting language server process. binary path: "/home/numerik/amartine/.juliaup/bin/julia", working directory: "/home/htc/amartine/opinion-polarization-rl-jl", args: ["--project=@zed-julia", "--startup-file=no", "--history-file=no", "--thread=auto", "-e", "\n                import Pkg, UUIDs\n\n                ls_uuid = UUIDs.UUID(\"2b0e0bc5-e4fd-59b4-8912-456d1b03d8d7\")\n                if !haskey(Pkg.dependencies(), ls_uuid)\n                    Pkg.add(Pkg.PackageSpec(uuid=ls_uuid))\n                end\n\n                try\n                    @eval using LanguageServer\n                catch\n                    Pkg.update()\n                    @eval using LanguageServer\n                end\n\n                runserver()\n                "]
2026-01-27T10:39:07+01:00 INFO  [gpui::platform::blade::blade_renderer] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8Unorm, alpha: PreMultiplied }
2026-01-27T10:39:34+01:00 ERROR [crates/languages/src/json.rs:319] missing executable in directory "/home/numerik/amartine/.local/share/zed/languages/json-language-server/node_modules/vscode-langservers-extracted/bin/vscode-json-language-server"
2026-01-27T10:39:34+01:00 INFO  [node_runtime] Node runtime install_if_needed
2026-01-27T10:39:36+01:00 INFO  [node_runtime] using Zed managed Node.js at /home/numerik/amartine/.local/share/zed/node/node-v24.11.0-linux-x64 since system Node.js wasn't found on PATH: cannot find binary path
2026-01-27T10:39:42+01:00 INFO  [gpui::platform::blade::blade_renderer] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8Unorm, alpha: PreMultiplied }
2026-01-27T10:39:58+01:00 ERROR [crates/gpui/src/window.rs:1194] window not found
2026-01-27T10:39:58+01:00 ERROR [crates/gpui/src/window.rs:1212] window not found
2026-01-27T10:39:58+01:00 ERROR [crates/gpui/src/window.rs:1224] window not found
2026-01-27T10:43:00+01:00 INFO  [sqlez::migrations] Found 18 foreign key relationships to check
2026-01-27T10:43:04+01:00 ERROR [crates/fs/src/fs_watcher.rs:216] Error { kind: WatchNotFound, paths: ["/home/numerik/amartine/.cache/zed/.tmpgoxfaJ"] }
2026-01-27T10:45:03+01:00 INFO  [gpui::platform::blade::blade_renderer] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8Unorm, alpha: PreMultiplied }
2026-01-27T10:45:03+01:00 INFO  [zed::zed] Using GPU: GpuSpecs { is_software_emulated: false, device_name: "Intel(R) UHD Graphics 630 (CFL GT2)", driver_name: "Intel open-source Mesa driver", driver_info: "Mesa 22.3.6" }
2026-01-27T10:45:05+01:00 ERROR [crates/gpui/src/window.rs:1212] window not found
2026-01-27T10:45:05+01:00 ERROR [crates/gpui/src/window.rs:1224] window not found
2026-01-27T10:45:40+01:00 INFO  [lsp] starting language server process. binary path: "/home/numerik/amartine/.juliaup/bin/julia", working directory: "/home/htc/amartine/NNlib.jl", args: ["--project=@zed-julia", "--startup-file=no", "--history-file=no", "--thread=auto", "-e", "\n                import Pkg, UUIDs\n\n                ls_uuid = UUIDs.UUID(\"2b0e0bc5-e4fd-59b4-8912-456d1b03d8d7\")\n                if !haskey(Pkg.dependencies(), ls_uuid)\n                    Pkg.add(Pkg.PackageSpec(uuid=ls_uuid))\n                end\n\n                try\n                    @eval using LanguageServer\n                catch\n                    Pkg.update()\n                    @eval using LanguageServer\n                end\n\n                runserver()\n                "]
2026-01-27T10:45:47+01:00 INFO  [zed::reliability] hang detected, trace file saved at: /home/numerik/amartine/.local/share/zed/hang_traces/hang-2026-01-27_10-45-47.miniprof
[ repeats at least 20 separate times]
2026-01-27T11:15:19+01:00 INFO  [zed::reliability] hang detected, trace file saved at: /home/numerik/amartine/.local/share/zed/hang_traces/hang-2026-01-27_11-14-24.miniprof
2026-01-27T11:15:20+01:00 INFO  [zed::reliability] hang detected, trace file saved at: /home/numerik/amartine/.local/share/zed/hang_traces/hang-2026-01-27_11-14-24.miniprof
2026-01-27T11:15:21+01:00 INFO  [zed::reliability] hang detected, trace file saved at: /home/numerik/amartine/.local/share/zed/hang_traces/hang-2026-01-27_11-14-24.miniprof
2026-01-27T11:15:22+01:00 INFO  [zed::reliability] hang detected, trace file saved at: /home/numerik/amartine/.local/share/zed/hang_traces/hang-2026-01-27_11-14-24.miniprof

The logs show persistent hangs. I attached a couple of examples of the .miniprof files (with the extension changed to .txt) referenced in the logs.

hang-2026-01-27_11-29-45.txt
hang-2026-01-27_11-31-58.txt
hang-2026-01-27_11-33-33.txt

The shortest interaction that triggers the hangup produces this log (notice no LSP is initialized)

2026-01-27T12:04:34+01:00 INFO  [zed] ========== starting zed version 0.220.6+stable.133.6a75953cd3a6512d120cf6d3cc96eeaa14f827ff, sha 6a75953 ==========
2026-01-27T12:04:34+01:00 INFO  [crashes] spawning crash handler process
2026-01-27T12:04:34+01:00 INFO  [extension_host] extensions updated. loading 2, reloading 0, unloading 0
2026-01-27T12:04:34+01:00 INFO  [crashes] connected to crash handler process after 100ms
2026-01-27T12:04:34+01:00 INFO  [crashes] crash handler registered
2026-01-27T12:04:34+01:00 INFO  [gpui::platform::linux::platform] activate is not implemented on Linux, ignoring the call
2026-01-27T12:04:34+01:00 INFO  [auto_update] Auto Update: checking for updates
2026-01-27T12:04:34+01:00 INFO  [gpui::platform::blade::blade_renderer] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8Unorm, alpha: PreMultiplied }
2026-01-27T12:04:35+01:00 INFO  [workspace] Rendered first frame
2026-01-27T12:04:35+01:00 INFO  [zed::zed] Using GPU: GpuSpecs { is_software_emulated: false, device_name: "Intel(R) UHD Graphics 630 (CFL GT2)", driver_name: "Intel open-source Mesa driver", driver_info: "Mesa 22.3.6" }
2026-01-27T12:04:35+01:00 INFO  [util] set environment variables from shell:/bin/zsh, path:/home/numerik/amartine/.juliaup/bin:/opt/conda/bin:/opt/conda/condabin:/home/numerik/amartine/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2026-01-27T12:04:47+01:00 INFO  [project::trusted_worktrees] Worktree "/home/numerik/amartine/Dokumente/empty_project" is not trusted
2026-01-27T12:04:47+01:00 INFO  [gpui::platform::blade::blade_renderer] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8Unorm, alpha: PreMultiplied }
2026-01-27T12:04:47+01:00 INFO  [zed::zed] Using GPU: GpuSpecs { is_software_emulated: false, device_name: "Intel(R) UHD Graphics 630 (CFL GT2)", driver_name: "Intel open-source Mesa driver", driver_info: "Mesa 22.3.6" }
2026-01-27T12:05:32+01:00 INFO  [zed::reliability] hang detected, trace file saved at: /home/numerik/amartine/.local/share/zed/hang_traces/hang-2026-01-27_12-05-32.miniprof
2026-01-27T12:05:33+01:00 INFO  [zed::reliability] hang detected, trace file saved at: /home/numerik/amartine/.local/share/zed/hang_traces/hang-2026-01-27_12-05-32.minipro

Relevant Zed settings

I'm not sure what settings might be relevant, so I include the entirety of the file's contents

settings.json
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run `zed: open default settings` from the
// command palette
{
  "preview_tabs": {
    "enabled": false
  },
  "relative_line_numbers": "enabled",
  "sticky_scroll": {
    "enabled": true
  },
  "gutter": {
    "line_numbers": true
  },
  "minimap": {
    "show": "never"
  },
  "buffer_font_fallbacks": [
    "monospace"
  ],
  "show_whitespaces": "none",
  "base_keymap": "VSCode",
  "vim_mode": true,
  "ui_font_size": 16,
  "buffer_font_size": 14.5,
  "buffer_font_weight": 450,
  "buffer_font_family": "Monaspace Neon",
  "buffer_font_features": {
    "calt": true,
    "liga": true,
    "ss01": true,
    "ss02": true,
    "ss03": true,
    "ss04": true,
    "ss05": true,
    "ss06": true,
    "ss07": true,
    "ss08": true,
    "ss09": true
  },
  "active_pane_magnification": 1.4,
  "experimental.theme_overrides": { "syntax": { "comment": { "font_style": "italic" } } },
  "file_icons": true,
  "preferred_line_length": 90,
  "soft_wrap": "editor_width",
  "wrap_guides": [
    89
  ],
  "theme": {
    "mode": "system",
    "light": "Gruvbox Light",
    "dark": "Gruvbox Dark"
  },
  "vim": { "toggle_relative_line_numbers": true },
  "terminal": {
    "font_size": 15.0,
    "env": {
      "JULIA_DEPOT_PATH": "\"/scratch/htc/amartine/julia_thunderstorm:\""
    },
    "dock": "right",
    "font_family": "FiraCode Nerd Font Mono",
    "line_height": "standard"
  },
  "project_panel": { "dock": "right" }
}

Relevant Keymap

None relevant. No modifications were made from stock

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:performanceFeedback for performance issues, speed, memory usage, etcfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usageplatform:linux/waylandhappens only on Linux Waylandpriority:P1Security holes w/o exploit, crash, install/update, sign-in, badly broken common features

    Type

    No fields configured for Crash.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions