macvim-dev / macvim-dev/macvim

VIM crashes after executing xelatex and colorscheme

Đang mở
#1,202 11 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
Vim Script
Star
7.9k
Fork
691
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lỗi crash trong MacVim với .vimrc được cung cấp, autocommand colorscheme WinEnter và mapping makeprg xelatex. So sánh hành vi khi tải một tệp LaTeX, chạy k và điều hướng đến một tệp khác với báo cáo crash của macOS. Hoàn tất khi việc điều hướng giữa các tệp không còn làm MacVim crash trong kịch bản này.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
macos, vim
Lĩnh vực
desktop
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.