Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running TigerVNC on macOS 11 (Big Sur) just gives you empty windows. #1087

Closed
CendioOssman opened this issue Sep 2, 2020 · 9 comments
Closed
Labels
bug Something isn't working

Comments

@CendioOssman
Copy link
Member

Describe the bug
Running TigerVNC on macOS 11 (Big Sur) just gives you empty windows.

To Reproduce
Steps to reproduce the behavior:

  1. Launch TigerVNC

Expected behavior
The login window with fields and buttons visible.

Client (please complete the following information):

  • OS: macOS 11 (Big Sur)
  • VNC client: TigerVNC
  • VNC client version: master
  • Client downloaded from: Nightly build
@CendioOssman
Copy link
Member Author

We got some reports here downstream and have debugged the issue:

https://www.cendio.com/bugzilla/show_bug.cgi?id=7539

It turns out to be a FLTK bug, and not a TigerVNC one. Still, we need to fix FLTK in our build systems at least.

I ended up fixing it using this patch:

diff -up fltk-1.3.5/src/Fl_cocoa.mm.gc fltk-1.3.5/src/Fl_cocoa.mm
--- fltk-1.3.5/src/Fl_cocoa.mm.gc	2020-09-02 09:22:48.283241978 +0200
+++ fltk-1.3.5/src/Fl_cocoa.mm	2020-09-02 09:23:11.162043044 +0200
@@ -3609,13 +3609,7 @@ void Fl_Window::make_current()
   } else
 #endif
   {
-    NSGraphicsContext *nsgc;
-#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
-    if (fl_mac_os_version >= 100400)
-      nsgc = [fl_window graphicsContext]; // 10.4
-    else
-#endif
-      nsgc = through_Fl_X_flush ? [NSGraphicsContext currentContext] : [NSGraphicsContext graphicsContextWithWindow:fl_window];
+    NSGraphicsContext *nsgc =   through_Fl_X_flush ? [NSGraphicsContext currentContext] : [NSGraphicsContext graphicsContextWithWindow:fl_window];
     i->gc = (CGContextRef)[nsgc graphicsPort];
   }
 

@bphinz, could you apply this on your build system for macOS? I can test the binaries for you here on our macOS 11 test box.

@bphinz
Copy link
Contributor

bphinz commented Sep 2, 2020 via email

@CendioOssman
Copy link
Member Author

Did this patch make it in to the nightly build? Cause I'm unfortunately still seeing the bug. :/

@bphinz
Copy link
Contributor

bphinz commented Sep 4, 2020 via email

@bphinz
Copy link
Contributor

bphinz commented Sep 4, 2020 via email

@CendioOssman
Copy link
Member Author

I've verified it works fine now. Thanks.

@CendioOssman CendioOssman added the bug Something isn't working label Sep 7, 2020
@bphinz
Copy link
Contributor

bphinz commented Nov 16, 2020 via email

@EagTG
Copy link

EagTG commented Jan 5, 2021

Confirmed, nightly worked here as well fixing same problem reported initially. Thanks for the help @bphinz!!

@juniway
Copy link

juniway commented Jan 14, 2021

my macOS is Mojave 10.14.6, and tigervnc 1.11 gives me an empty window, so I download an older version 1.8.0, and it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants