macvim icon indicating copy to clipboard operation
macvim copied to clipboard

macOS high sierra + lastest release = black screen on fullscreen

Open vahvarh opened this issue 9 years ago • 52 comments

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

vahvarh avatar Oct 10 '17 10:10 vahvarh

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.

ActionScripted avatar Oct 10 '17 13:10 ActionScripted

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

alokshenoy avatar Oct 10 '17 15:10 alokshenoy

Same issue here.

zeeraktalat avatar Oct 10 '17 17:10 zeeraktalat

Same issue here.

fishioon avatar Oct 12 '17 13:10 fishioon

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...

ephbaum avatar Oct 12 '17 17:10 ephbaum

Same issue here, with another method of reproducing it:

  • go fullscreen with MacVim
  • go back to window mode

dehesselle avatar Oct 15 '17 11:10 dehesselle

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

mliker avatar Oct 15 '17 12:10 mliker

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

ls84 avatar Oct 17 '17 03:10 ls84

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.

zeeraktalat avatar Oct 17 '17 14:10 zeeraktalat

@ZeerakW another workaround is to keep the setting on and only use buffers, not tabs.

mliker avatar Oct 17 '17 14:10 mliker

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.

cvortmann avatar Oct 20 '17 08:10 cvortmann

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.

dmost1 avatar Oct 23 '17 17:10 dmost1

Could you guys try this with Core Text renderer?

$ defaults write org.vim.MacVim MMUseCGLayerAlways -bool YES

splhack avatar Oct 26 '17 05:10 splhack

@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.

dmost1 avatar Oct 26 '17 15:10 dmost1

@splhack: what exactly is MMUseCGLayersAlways?

alokshenoy avatar Oct 26 '17 15:10 alokshenoy

@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 avatar Oct 26 '17 15:10 splhack

@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

dmost1 avatar Oct 26 '17 15:10 dmost1

Again. Could you guys try this with Core Text renderer?

$ defaults write org.vim.MacVim MMUseCGLayerAlways -bool YES

splhack avatar Oct 27 '17 03:10 splhack

defaults write org.vim.MacVim MMUseCGLayerAlways -bool YES seems to correct issue for me, @splhack. Thank you!

ephbaum avatar Oct 27 '17 08:10 ephbaum

@splhack Resolved it for me too.

alokshenoy avatar Oct 28 '17 16:10 alokshenoy