macvim-dev / macvim-dev/macvim

Intermittent pseudo-crashes

未关闭
#61 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

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

描述

On multiple machines, and multiple OSes (Mav, Yos), I intermittently get the following incorrect behavior.

In a terminal, type mvim abcd where abcd is some non-existent file.

Expected: I get a MacVim window with an empty buffer that is assigned the name "abcd".

Actual: Most of the time I get what I'll call a pseudo-crash. All MacVim windows vanish instantly with no offer to save unsaved changes, and MacVim vanishes from the Dock. However, there's no crash report. The only clue as to what happened is in Console.app, and it's a meager clue at that:

Vim: 07/21/15 2:15:23.551 p Vim[89294]: -[MMBackend(Private) connectionDidDie:]@2315: Main connection was lost before process had a chance to terminate; preserving swap files.

It can also happen if I am already in a MacVim window and I do :edit abcd (where again, abcd is non-existent).

Is anyone else getting this? I see that someone else reported the same error message in Console but in a different context on Feb 19th of last year, and that Bjorn didn't know what it meant.

I can't find a way to get 100% reproduction. It tends to come and go in "streaks", i.e., a few hours of pseudocrashes, then a day without them, then two days with, then a few hours without, etc.

At first I thought maybe it was because I have Spotlight disabled (using mduitl -i off or mdutil -d), but I tested this theory by reactivating Spotlight and I still see the problem. (And surely MacVim doesn't need Spotlight to be on. I've had Spotlight off for years with no problems like this).

贡献指南

打开贡献指南

从这里开始

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

调研方向

首先测试报告中的入口点:对不存在的文件运行 mvim abcd,并在现有的 MacVim 窗口中尝试 :edit abcd。查看 Console.app 中关于 MMBackend 失去连接的消息,并比较所报告的 macOS 版本之间的行为。完成的标准是可以复现 pseudo-crash,并且已确定底层故障,同时对其进行阻止或适当报告。

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

评估

技术栈
macos, vim
领域
desktop
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

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