macOS high sierra + lastest release = black screen on fullscreen
macOS high sierra macvim snapshot 138
screen goes (almost) black, only cursor, tabs and scroller are visible. on moving cursor or editing text, screen is gradually drawn back.
how to reproduce: open macvim go fullscreen switch to another desktop switch back to macvim
I've had this issue also. I've also had this lead to other issues with other windows like text input hovers that only manifest while MacVim is open.
Same issue here. OS: MacOS High Sierra (with Supplemental Update) MacVim: Snapshot 138 (installed using HomeBrew) Plugins: YCM, NerdTree, AutoPairs, matchtag, Airline
Reproduction: Same as original post by @vahvarh
Same issue here.
Same issue here.
Same. This was happening on intermittently Sierra for me as well, but is now constant on High Sierra whenever I leave and go back (which I do often). It's maddening. Easiest way to see contents is to switch tabs and having to gt gT every time I come back to the window...
Same issue here, with another method of reproducing it:
- go fullscreen with MacVim
- go back to window mode
Same here MacVim in fullscreen but only when i open more then one tab. with a single tab open switching back and forth between apps does not corrupt macvim's window content
Btw. disabling option "Prefer native full-screen support" fixes this issue for me.
high sierra MacVim @8.0.snapshot137_1+huge+python27 from Macports
I can reproduce this by
- toggle MacVim to fullscreen mode
- activate Mission Control (three finger swipe up by default)
- wait a few seconds, MacVim app thumbnail from the top selection area goes blank
- MavVim becomes black screen
I can confirm that @mliker's fix works (although inelegantly as the default screen toolbar stays on and takes over the top of the window.
@ZeerakW another workaround is to keep the setting on and only use buffers, not tabs.
It also happens if you're in fullscreen, use MacVim as the git editor and call git commit. It'll open another MacVim screen which sometimes is black and/or unresponsive. The fullscreen MacVim will be then black.
I'm not positive, but I believe it has to do with modifying font size. When I have MacVim open on default font settings, and full screen, I cannot recreate the error. However, after altering the font size, and using the above methods of reproduction, such as mission control, or changing desktops, the black screen issue occurs. Once on the black screen changing the font size, even one increment, fixes the black screen issue.
edit: Disabling "Use Core Text renderer", under Preferences->Advanced, fixed the issue for me.
high sierra -v 10.13 MacVim -v 8.0.
Could you guys try this with Core Text renderer?
$ defaults write org.vim.MacVim MMUseCGLayerAlways -bool YES
@splhack I can confirm that after issuing the command:
$ defaults write org.vim.MacVim MMUseCGLayerAlways -bool YES
"Use Core Text Renderer", while enabled does not produce any errors, and there are no more errors relating to this issue, whatsoever, on my end.
edit: There was only one error I was having prior to utilizing the above command, that being the black screen error.
@splhack: what exactly is MMUseCGLayersAlways?
@dmost1 what do you mean by "errors"? No more black screen with MMUseCGLayerAlways=YES?
@alokshenoy see https://github.com/macvim-dev/macvim/blob/master/src/MacVim/MMCoreTextView.m
@splhack Yes, I should retract that. There is no more error, that being the black screen error, which I was having prior to using the
$ defaults write org.vim.MacVim MMUseCGLayerAlways -bool YES
command
Again. Could you guys try this with Core Text renderer?
$ defaults write org.vim.MacVim MMUseCGLayerAlways -bool YES
defaults write org.vim.MacVim MMUseCGLayerAlways -bool YES seems to correct issue for me, @splhack. Thank you!
@splhack Resolved it for me too.