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

Updated FAQ https://github.com/macvim-dev/macvim/wiki/FAQ#black-screen-on-full-screen

splhack avatar Oct 28 '17 22:10 splhack

May I politely ask if documenting the workaround in the FAQ is supposed to be the final solution to this issue? I would either expect the underlying issue to be resolved with a future release of MacVim, or, if I am mistaken to call the current solution a workaround, expect a future release of MacVim to ship with adjusted default settings to accommodate for the necessary changes.

I cannot tell from reading the FAQ if this is meant as a temporary solution or not. I'm hoping you're not going to leave it as it is right now, MacVim in a broken state (no offense, I know very well that the new OS broke it), relying on the user to fix it.

dehesselle avatar Oct 29 '17 00:10 dehesselle

will reopen this but I have been not able to repro this at all, so no further action from my end.

splhack avatar Oct 29 '17 01:10 splhack

@splhack Thank you for your efforts so far! I think leaving this open is the best course of action for now.

Also, very valuable information from your end: you're the first one to report here who cannot reproduce this issue. That leads to me believe that we've got dig a little deeper. What kind of Mac do you have? Is this possibly a retina vs non-retina issue? I was at a friend's yesterday (non-retina Macbook), no issue there as well.

dehesselle avatar Oct 29 '17 09:10 dehesselle

I have a problem on macbook air 2014 + apple thunderbolt display. I think that has nothing to do with retina.

"defaults write" solves for me.

vahvarh avatar Oct 29 '17 12:10 vahvarh

I also agree that I believe it doesn't have to do with Retina. My mac air doesn't have one, and it did produce the black screen error, initially, before the quick fix.

dmost1 avatar Oct 29 '17 13:10 dmost1

after quick fix and on latest version, there is no black screen but when I start editing (prior to changing to another tab and back), screen gets messed up.

vahvarh avatar Nov 07 '17 06:11 vahvarh

I can reproduce the blank screen, while defaults write org.vim.MacVim MMUseCGLayerAlways -bool YES is set.

I open a mvim window on an external display, make it full screen, and then invoke mvim again. In settings, I open files from applications 'in a new window'; however, mvim is opening a new tab that is full black. When mvim is not in full screen mode, the behaviour is as expected (new window for new files).

After entering this error state, the Mac OS menu will never hide while in full screen mode.

eaoliver avatar Nov 10 '17 02:11 eaoliver

Same issue here.

After applying the command defaults write org.vim.MacVim MMUseCGLayerAlways -bool YES, the following issue happened screen shot 2017-11-21 at 2 23 27 pm

kamyuentse avatar Nov 21 '17 06:11 kamyuentse

After applying the command defaults write org.vim.MacVim MMUseCGLayerAlways -bool YES my macvim's scrolling became insanely slow, I know you're not supposed to scroll using vim indeed, but when I just try to move a few lines lower I experience a pretty big delay. Removing core text renderer option helped me better but the scrolling speed is a bit lower as well. mbp 2017 high sierra BTW a little offtopic, can I ask you people a question please. Is it ok that both in terminal.app and iTerm2 vim renders scrolling super slow comparing to linux terminal, do people just live with that or is there a solution? The only terminal worked for me was hyper I suppose because it uses html+js

StaverDmitry avatar Nov 26 '17 22:11 StaverDmitry

If you are using multiple monitors, want to edit in full screen, and want to leave Core Text renderer enabled, then the change that worked for me: goto MacVim->Preferences->Advanced

  • Check "Use Core Text renderer"
  • Uncheck "Prefer native full-screen support"

I did not need defaults write org.vim.MacVim MMUseCGLayerAlways -bool YES, which seemed to create additional rendering problems since I wanted to leave "Use Core Text renderer" enabled for performance reasons.

tlindteigen avatar Dec 10 '17 19:12 tlindteigen

This issue makes MacVim nearly unusable for me in a work environment. The solution should not be a hack to get around it by disabling Core Text and suffering from performance loss as a result.

jonathanpatt avatar Dec 22 '17 17:12 jonathanpatt

Disabling Core Text renderer brings another set of issues :( I found a very radical workaround: migrate to neovim + VimR as a GUI

sasha-alias avatar Jan 06 '18 17:01 sasha-alias

This might be related to #196.

blochberger avatar Jan 26 '18 14:01 blochberger

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

This fixes the black screen issue but breaks my cursor.

rspenc29 avatar Feb 26 '18 14:02 rspenc29

Hey, this doesn't solve the problem of my macvim; when resizing to max it still shows no UI.

imajes avatar Feb 26 '18 15:02 imajes

+1 on the problem. Setting defaults write org.vim.MacVim MMUseCGLayerAlways -bool YES causes rendering issues similar to the screen grab posted by @kamyuentse. Unchecking "Prefer native full-screen support" as suggested by @tlindteigen causes the app launcher bar to always stay above the window.

MadWombat avatar Mar 13 '18 19:03 MadWombat

~How are you guys even unchecking "Prefer native full-screen support"? My preference window is just a white box.~

Now-irrelevant screenshot: screen shot 2018-04-19 at 11 24 34

defaults write org.vim.MacVim MMUseCGLayerAlways -bool YES didn't change either the black screen or white preference window.

Commenting out set fu in my .vimrc fixed the white preference window. Now, with or without "Prefer native full-screen support", new windows instantly disappear.

Commenting out the rest of my .vimrc fixed the black screen and allows me to use set fu without a problem...

Plugin problem, I suppose: YouCompleteMe bclose.vim ctrlp.vim omnisharp-vim syntastic tcomment_vim vim-dispatch vim-node vim-sensible vim-test

~I'll see if I can figure out the culprit.~

Fixed after updating to latest omnisharp-vim and YouCompleteMe, and brew uninstall python@2. Not sure which part actually solved it. Hope this helps someone.

kibiz0r avatar Apr 19 '18 15:04 kibiz0r

The defaults write org.vim.MacVim MMUseCGLayerAlways -bool YES fix seemed to work for me. It's early days though. There might be something else that goes wrong!

Sounds like it could be a plugin issue, especially as it's affecting different people in different ways. I haven't got any of the plugins mentioned above installed though. Python problem maybe?!?

pablinos avatar Apr 20 '18 16:04 pablinos

My problem is not getting black, but when I set fu in my vimrc file, then open MacVIM, it will go back to the original desktop immediately after switching to the new desktop.

com3345 avatar Apr 21 '18 21:04 com3345