macvim-dev / macvim-dev/macvim
MacVim hangs for minutes with hundreds of threads
Nobody has claimed this yet.
- Dominant language
- Vim Script
- Stars
- 7.9k
- Forks
- 691
- PR merge metrics
- No merged PRs in 30d
Description
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:
- Run
open -a MacVim Forth500.s - Edit
Forth500.sand perhaps some other files in other windows (but don't think that matters) - Change Syntax to Assembly/Turbo then navigate, search, type, etc.
- 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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the hang with open -a MacVim Forth500.s, then edit Forth500.s while using the Assembly/Turbo syntax and navigating, searching, or typing. Compare the behavior with the supplied Forth500.s file and the reported MacVim 8.2.2681 environment; done means identifying a reliable cause and confirming that the minutes-long hang and thread growth no longer occur.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, vim
- Domain
- desktop-dev, performance
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100