macvim-dev / macvim-dev/macvim

MacVim hangs for minutes with hundreds of threads

未关闭
#1,204 25 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Vim Script
星标
7.9k
派生
691
PR 合并指标
30 天内没有已合并 PR

描述

Describe the bug
I'm a daily user of MacVim and my work depends on it. MacVim occasionally hangs for minutes with hundreds of threads (500 or more) when editing some specific large file(s). I had this happen several times, but only once a day at the most. It could be a syntax highlighting problem perhaps. It's difficult to reproduce exactly.

To Reproduce
Detailed steps to reproduce the behavior:

  1. Run open -a MacVim Forth500.s
  2. Edit Forth500.s and perhaps some other files in other windows (but don't think that matters)
  3. Change Syntax to Assembly/Turbo then navigate, search, type, etc.
  4. Eventually the problem occurs, but I can't tell when and why. It may happen after a while, so it's not frequent, fortunately for me.

Expected behavior
No hot laptop!

Screenshots
N/A

Environment (please complete the following information):

  • MacVim version: Custom Version 8.2.2681 (171)
  • OS: MacOS 10.15.7
  • Terminal: N/A

Additional context
The Forth500.s file is here: https://github.com/Robert-van-Engelen/Forth500/blob/main/Forth500.s

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先使用 open -a MacVim Forth500.s 重现卡死,然后在使用 Assembly/Turbo 语法进行导航、搜索或输入的同时编辑 Forth500.s。将行为与提供的 Forth500.s 文件以及报告中的 MacVim 8.2.2681 环境进行比较;完成的标准是找出可靠的原因,并确认持续数分钟的卡死和线程增长不再发生。

由索引模型根据 Issue 内容生成。

评估

技术栈
macos, vim
领域
desktop-dev, performance
Issue 类型
缺陷
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
15/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。