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

MMUseCGLayerAlways fixed black patches in macOS full screen when multiple tabs are open or view is split. Both User Core Text renderer and Prefer native full-screen support are enabled.

lsnizek avatar Apr 24 '18 11:04 lsnizek

Tried commenting out the entire vimrc but unfortunately, no luck on my end. Also tried removing python2 and running a clean install but no dice.

zeeraktalat avatar May 01 '18 23:05 zeeraktalat

autocmd FocusLost * redraw! works for me

fftyjw avatar Jun 07 '18 10:06 fftyjw

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.

zoerb avatar Jun 28 '18 16:06 zoerb

Same black fullscreen issue on the new macOS Mojave (10.14) with macVim 8.1.280:

  1. Open macVim.
  2. Go fullscreen.
  3. Open a new tab.
  4. Switch to another screen.
  5. Switch back to macVim.

Note that you have to open a new tab in fullscreen mode to trigger the issue (tabs open in normal mode do no harm).

geryogam avatar Oct 25 '18 05:10 geryogam

I've had this issue +1 also MacOS Mojave 10.14

peterwillcn avatar Nov 01 '18 06:11 peterwillcn

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

rahul-mereddy avatar Nov 02 '18 15:11 rahul-mereddy

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

ychin avatar Nov 02 '18 15:11 ychin

@ychin using Homebrew I installed macvim on my system.

I need ASAP to use mvim on my system.

rahul-mereddy avatar Nov 02 '18 16:11 rahul-mereddy

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

ychin avatar Nov 02 '18 16:11 ychin

Could a build be made available that includes these fixes? Does homebrew include them?

philipn avatar Nov 19 '18 23:11 philipn

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.

ychin avatar Nov 20 '18 05:11 ychin