Skip to content

Windows: Using the Zed Preview command 'markdown: open preview' consumes 2GB of memory #39914

@luckzylp

Description

@luckzylp

Summary

Using the Zed Preview command 'markdown: open preview' consumes 2GB of memory.

Description

Steps to trigger the problem:

  1. Right-click 'Open with Zed' to open the 'README.md' file.
  2. Use the command 'markdown: open preview'.
  3. Zed's memory consumption rose from over 140 MB to over 2092 MB.
    • Even if markdown preview is turned off, memory consumption will not decrease.
    • Even when 'README.md' is closed again, memory consumption still does not decrease.

Expected Behavior: Reasonable memory consumption for rendering a markdown file. Closed markdown preview memory decline.
Actual Behavior: Rendering a markdown file consumes too much memory. Moreover, memory will not decrease even if markdown preview is closed.

The test video and test files are as follows,

Video_20251010095234.mov

README.md

Zed Version and System Specs

Zed: v0.208.2 (Zed Preview)
OS: Windows 10.0.26100
Memory: 15.7 GiB
Architecture: x86_64
GPU: Intel(R) Iris(R) Xe Graphics || Intel Corporation || 32.0.101.5972

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:performanceFeedback for performance issues, speed, memory usage, etcarea:performance/memory leakarea:preview/markdownmarkdown previewplatform:windowshappens only on Windows, not other OSpriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsstate:needs reproNeeds reproduction steps / someone to reproduce

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions