-
-
Notifications
You must be signed in to change notification settings - Fork 681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I debug MacVim crashing? #1407
Comments
Just to clarify, is individual Vim windows crashing, or the entire MacVim app? For individual Vim, you will see the Vim window suddenly closing, but MacVim would remain open. For MacVim app crashing you should see the entire app crash. I have really wanted to add better crash detection and throw up a dialog box informing you that Vim has crashed but never got around to doing that. Right now, when a particular Vim window has crashed, we just close it which leads to a rather jarring result unfortunately. The logs should be located at Let me know if that works. |
I don't know if it helps but im like... 70% sure its when i activate FZF with control P. I type so fast and on autopilot i always forget the exact thing that i did to trigger it. obviously you couldnt debug from that small piece of info but i was thinking maybe crash logs for that might be stored in a different place or something |
When you say you are running "latest MacVim" in the issue, which version exactly do you mean? It's always useful to provide more info than less if you think there's a regression. There are different ways to install MacVim, after all (binary release vs Homebrew vs building from source), and you can opt in to pre-release builds. You can tell by going to MacVim -> About MacVim. |
Sorry, I didn't give as much info because I didnt actually have any useful other debugging information to add to my ticket so I figured it was mostly a wash (mostly was trying to figure out where to even find that 'other info'). Here is some info to help:
I installed it via homebrew
|
Hmm, did you have a crash recently? If there was a crash recently it's supposed to show up in the locations I pointed out but I think they do get cleared after a while. It's also a little suspicious that your "Crash Reports" in Console.app is completely empty. Are you filtering that list or something? Otherwise you can just go to Console.app and go to the main tab (under Devices), and then hit record, then trigger the crash (if it's reproducible). Did you also update FZF or Ctrl-P? ARe there more info on when the crash would occur? I do know Vim could crash under some circumstances in the current build (fixed in source but not released yet) but you should still get a crash log. |
Yes I believe it crashed today. Let me look again, but I am sure I'm not filtering it. I also clicked around there for some time because I thought it was odd it was blank. The search box is empty. everything on that entire area is grayed out because theres no results. if i click in search box at top right... type, enter, hit escape, it simply doesnt do anything as there are no results. Next time it crashes I'll try to open it immediately and see if it shows up. I wish it were easily reproduceable as I could definitely have more info. I tried for a good 30 minutes to make it happen and could not. It does happen mostly once per day or every other day, so thats really my only course of action. Hmmm... so FZF is up to date, and i regularly update plugins with :plug Upgrade, :plug Update I wish I had more information... I suppose my best bet is for it to happen again and quick check crash reports. |
Steps to reproduce
I will be using macvim and maybe once every 2 days it will crash after hours and hours of use. Because of this time lag it's very difficult to run it in --clean mode, or to systematically eliminate plugins as sources of error.
Is there a crash log somewhere?
I looked in ~/Logs/... diagnostic reports (cant remember exact path) and there is nothing there
Expected behaviour
No crashing
Version of Vim and architecture
Latest MacVim
Environment
Latest iTerm, latest OSX, latest macvim, M2 CPU macbook pro
How MacVim was installed
brew install macvim
Logs and stack traces
Vim configuration where issue is reproducable
No response
Issue has been tested with given configuration
Issue has been tested with no configuration
mvim --clean
(orgvim
, supplied by MacVim distribution)vim --clean
(in terminal, supplied by MacVim distribution)vim --clean
(in terminal, other suppliers, e.g. /usr/bin/vim)Other conditions
The text was updated successfully, but these errors were encountered: