Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

VIM crashes after executing xelatex and colorscheme

未關閉
#1,202 11 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
macos, vim
領域
desktop

研究方向

首先使用提供的 .vimrc、WinEnter colorscheme autocommand 和 xelatex makeprg mapping 在 MacVim 中重現當機。將載入一個 LaTeX 檔案、執行 k 以及導覽至另一個檔案時的行為與 macOS 當機報告進行比較。在此情境中於檔案之間導覽不再導致 MacVim 當機時,即表示完成。

由索引模型根據 Issue 內容生成。

描述

Describe the bug
When there is an autocommand to change the colorscheme Vim crashes after executing xelatex.

To Reproduce
Detailed steps to reproduce the behavior:

  1. Include the code below in the .vimrc file:
let g:colors = "lucius"
augroup color
    au!
    au WinEnter * exe "colorscheme ".g:colors
augroup END

set makeprg=xelatex\ \-file\-line\-error\ \-interaction=nonstopmode
nmap <leader>k :exec "silent make ".shellescape(expand('%'))<cr>
  1. Load a latex file
  2. Compile with <leader>k
  3. Navigate to another latex file
  4. Vim crashes

See report below:

Process:               MacVim [33498]
Path:                  /Applications/MacVim.app/Contents/MacOS/MacVim
Identifier:            org.vim.MacVim
Version:               8.2.2164 (169)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           MacVim [33498]
User ID:               502

Date/Time:             2021-07-21 18:42:43.350 -0700
OS Version:            Mac OS X 10.15.7 (19H2)
Report Version:        12
Bridge OS Version:     4.6 (17P6610)
Anonymous UUID:        35483298-412C-44A4-AED8-52EE10686945

Sleep/Wake UUID:       A07E24BD-D769-40DF-B2B1-77023F65444C

Time Awake Since Boot: 14000 seconds
Time Since Wake:       4400 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x000076141ecb4d88
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [33498]

VM Regions Near 0x76141ecb4d88:
    Stack                  00007000021fc000-000070000227e000 [  520K] rw-/rwx SM=COW  thread 6
--> 
    MALLOC_TINY            00007f84c8400000-00007f84c8500000 [ 1024K] rw-/rwx SM=PRV  

Application Specific Information:
objc_msgSend() selector name: retain

Expected behavior
Vim should load new file without crashing.

Environment (please complete the following information):

  • Vim version: 8.2 (Dec 19 2020)
  • OS: MacOS 10.15.7
  • Terminal: GUI
主要語言
Vim Script
星號
7.9k
分支
691
PR 合併指標
30 天內沒有已合併 PR

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

macvim-dev/macvim 的其他 Issue

查看 macvim-dev/macvim 的全部 Issue

相似的 Issue

更多 Desktop Dev Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。