macvim-dev / macvim-dev/macvim

MacVim hangs for minutes with hundreds of threads

Aperta
#1,204 25 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
Vim Script
Stelle
7.9k
Fork
691
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia riproducendo il blocco con open -a MacVim Forth500.s, quindi modifica Forth500.s usando la sintassi Assembly/Turbo e navigando, cercando o digitando. Confronta il comportamento con il file Forth500.s fornito e l’ambiente MacVim 8.2.2681 segnalato; il lavoro è completato quando viene identificata una causa affidabile e viene confermato che il blocco della durata di diversi minuti e la crescita dei thread non si verificano più.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
macos, vim
Ambito
desktop-dev, performance
Tipo di issue
Bug
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
15/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.