-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Long hangs when there is a large number of characters in the LSP autocomplete pop-up window #47141
Copy link
Copy link
Closed as not planned
Closed as not planned
Crash
Copy link
Labels
area:autocompletionsFeedback for code completions in the editorFeedback for code completions in the editorarea:performanceFeedback for performance issues, speed, memory usage, etcFeedback for performance issues, speed, memory usage, etcfrequency:uncommonBugs that happen for a small subset of users, special configurations, rare circumstances, etcBugs that happen for a small subset of users, special configurations, rare circumstances, etcmeta:freezeEditor or OS - freezing / hanging / lockingEditor or OS - freezing / hanging / lockingpriority:P2Average run-of-the-mill bugsAverage run-of-the-mill bugsstaleLabel used by `stale` actionLabel used by `stale` actionstate:needs reproNeeds reproduction steps and/or someone to reproduceNeeds reproduction steps and/or someone to reproduce
Metadata
Metadata
Assignees
Labels
area:autocompletionsFeedback for code completions in the editorFeedback for code completions in the editorarea:performanceFeedback for performance issues, speed, memory usage, etcFeedback for performance issues, speed, memory usage, etcfrequency:uncommonBugs that happen for a small subset of users, special configurations, rare circumstances, etcBugs that happen for a small subset of users, special configurations, rare circumstances, etcmeta:freezeEditor or OS - freezing / hanging / lockingEditor or OS - freezing / hanging / lockingpriority:P2Average run-of-the-mill bugsAverage run-of-the-mill bugsstaleLabel used by `stale` actionLabel used by `stale` actionstate:needs reproNeeds reproduction steps and/or someone to reproduceNeeds reproduction steps and/or someone to reproduce
Type
Fields
Give feedbackNo fields configured for Crash.
Reproduction steps
I noticed this when dealing with very large arrays in odin e.g
https://github.com/odin-lang/Odin/blob/master/vendor/microui/default_atlas.odin
When accessing a module with a very large array via LSP autocomplete Zed will freeze for ~10-20 seconds, and from profiling it it seems like DirectWrite is causing the slow down. I assume its trying to draw all ~50,000 symbols in the array in the autocomplete pop up which is causing the issue. I also tested on Linux and didn't have the issue so I assume this is a Windows specific issue.
Profile view during the freeze

Current vs. Expected behavior
Video showing the issue:
https://github.com/user-attachments/assets/e9af380b-5ff4-4e8f-8dba-1bafc0209608
Hang log:
https://github.com/user-attachments/files/24716185/hang-2026-01-19_12-53-35.txt
Zed version and system specs
Zed: v0.219.4+stable.119.5595f7ce23d51a58eb66dd025a487bbd6c75dad1 (Zed)
OS: Windows 10.0.19045
Memory: 31.9 GiB
Architecture: x86_64
GPU: AMD Radeon RX 6700 XT || AMD Corporation || 25.10.2 (25.10.33.02-250924a-420421C-AMD-Software-Adrenalin-Edition)
Attach Zed log file
Zed.log
Relevant Zed settings
None relevant
Relevant Keymap
None relevant
(for AI issues) Model provider details
No response
If you are using WSL on Windows, what flavor of Linux are you using?
None