You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
macOS high sierra + lastest release = black screen on fullscreen #557
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 gtgT every time I come back to the window...
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
Reacted by Zeerak Talat, Harvey Kandola, James Mitchell, Russell Rollins, José Luis Millán, Jason Floyd, Justyn Shull, Joaquin Gumucio L. and Daniel Burkhardt Cerigo
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.
Here's a minimal repro with a stock MacVim install (no plugins or custom vimrc). This is using macOS 10.13.5, the latest MacVim snapshot (149), with core text and native full-screen enabled, and without changing MMUseCGLayerAlways from its default. I get the same behavior on the built-in retina display, and a non-retina external display.
Start MacVim, enter full-screen, create a new window split, then either switch macOS spaces or enter mission control, and return to the MacVim space. For me it shows a black screen. Note that I don't see the black screen if I don't create a window split, or if I create the window split before entering full-screen. Calling :redraw! fixes rendering, but creating a new window and switching spaces surfaces the issue again.
Running defaults write org.vim.MacVim MMUseCGLayerAlways -bool YES fixes the black screen but causes other rendering issues as reported in previous comments.
I bought a new MacBook Pro 15 inches last week and installed macvim on mac latest os but it is acting weird like mvim screen is blinking and sometimes goes completely black image and I tried uninstall and installed several times but the issue is not resolved.
@mereddy22 I believe that's #751. We are currently trying to fix it and there is a pull request under review right now and should be merged in soon.
How are you installing MacVim? If you use the official release from this site it should not have the issue (since it's still being built with High Sierra SDKs). Or are you using it from Homebrew?
Homebrew build includes that already. For the binary snapshot releases here on Github I think I would prefer to make a release containing the fix for all the Mojave issue as well, unless that drags on too much.
Activity
ActionScripted commentedon Oct 10, 2017
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.
alokshenoy commentedon Oct 10, 2017
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
zeeraktalat commentedon Oct 10, 2017
Same issue here.
fishioon commentedon Oct 12, 2017
Same issue here.
ephbaum commentedon Oct 12, 2017
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
gtgTevery time I come back to the window...dehesselle commentedon Oct 15, 2017
Same issue here, with another method of reproducing it:
mliker commentedon Oct 15, 2017
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
ls84 commentedon Oct 17, 2017
I can reproduce this by
zeeraktalat commentedon Oct 17, 2017
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.
mliker commentedon Oct 17, 2017
@ZeerakW another workaround is to keep the setting on and only use buffers, not tabs.
cvortmann commentedon Oct 20, 2017
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.dmost1 commentedon Oct 23, 2017
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.
splhack commentedon Oct 26, 2017
Could you guys try this with Core Text renderer?
dmost1 commentedon Oct 26, 2017
@splhack I can confirm that after issuing the command:
"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.
alokshenoy commentedon Oct 26, 2017
@splhack: what exactly is MMUseCGLayersAlways?
29 remaining items
fftyjw commentedon Jun 7, 2018
autocmd FocusLost * redraw!
works for me
zoerb commentedon Jun 28, 2018
Here's a minimal repro with a stock MacVim install (no plugins or custom vimrc). This is using macOS 10.13.5, the latest MacVim snapshot (149), with core text and native full-screen enabled, and without changing MMUseCGLayerAlways from its default. I get the same behavior on the built-in retina display, and a non-retina external display.
Start MacVim, enter full-screen, create a new window split, then either switch macOS spaces or enter mission control, and return to the MacVim space. For me it shows a black screen. Note that I don't see the black screen if I don't create a window split, or if I create the window split before entering full-screen. Calling :redraw! fixes rendering, but creating a new window and switching spaces surfaces the issue again.
Running
defaults write org.vim.MacVim MMUseCGLayerAlways -bool YESfixes the black screen but causes other rendering issues as reported in previous comments.Fixed native fullscreen rendering / resize bug
Fixed native fullscreen rendering corruption bug
Fixed native fullscreen rendering corruption bug
geryogam commentedon Oct 25, 2018
Same black fullscreen issue on the new macOS Mojave (10.14) with macVim 8.1.280:
Note that you have to open a new tab in fullscreen mode to trigger the issue (tabs open in normal mode do no harm).
peterwillcn commentedon Nov 1, 2018
I've had this issue +1 also MacOS Mojave 10.14
Fixed native fullscreen rendering corruption bug
rahul-mereddy commentedon Nov 2, 2018
I bought a new MacBook Pro 15 inches last week and installed macvim on mac latest os but it is acting weird like mvim screen is blinking and sometimes goes completely black image and I tried uninstall and installed several times but the issue is not resolved.
Could someone please help me how to fix
Thanks
ychin commentedon Nov 2, 2018
@mereddy22 I believe that's #751. We are currently trying to fix it and there is a pull request under review right now and should be merged in soon.
How are you installing MacVim? If you use the official release from this site it should not have the issue (since it's still being built with High Sierra SDKs). Or are you using it from Homebrew?
rahul-mereddy commentedon Nov 2, 2018
@ychin using Homebrew I installed macvim on my system.
I need ASAP to use mvim on my system.
ychin commentedon Nov 2, 2018
@mereddy22 If you need to use MacVim ASAP I recommend downloading an official build from our releases which should still work on Mojave.
Otherwise, you could use the Apple system provided Vim for now.
The proper fix should be committed in a week or so.
philipn commentedon Nov 19, 2018
Could a build be made available that includes these fixes? Does homebrew include them?
ychin commentedon Nov 20, 2018
Homebrew build includes that already. For the binary snapshot releases here on Github I think I would prefer to make a release containing the fix for all the Mojave issue as well, unless that drags on too much.