ziglang/sublime-zig-language

Multiple second pauses when building

BarabasGitHub opened this issue · 0 comments

I posed this earlier on the Sublime text bug tracker, but it only seems to happen when I'm building with Zig (not with Python), so I'm posting again here in the hopes that someone can help figure out what the problem is.

Description of the bug

When I open the command command palette or sometimes when compiling Sublime text hangs for a while. When I look at task manager and do 'analyse process' it tells me it's waiting for dwm.exe. I'm guessing it's related to the graphics somehow.

I'm running Windows 10 with a AMD Radeon RX 5700 XT and driver version 21.12.1 (latest at the moment).
Sublime text is at version 4125

It might be related to #4546 that issue doesn't have much info and for me it hasn't happened when copy-pasting.
Steps to reproduce

  1. Start Sublime
  2. Open command palette

Most of the time it's fine, but sometimes it freezes multiple times in a row for a few seconds.

  1. Start Sublime
  2. Build project

Sometimes I do see output before it hangs, sometimes I don't. Again doesn't always happen, but when it does it does so multiple times in a row.

Expected behavior

No freezes of any kind.

Actual behavior

Sublime text freezes for multiple seconds. Might be as long as 10s, haven't hold a stopwatch to it.

Sublime Text build number

4125

Operating system & version

Windows 10