RFR: 8235627: Blank stages when running JavaFX app in a macOS virtual machine

Frederic Thevenet github.com+7450507+fthevenet at openjdk.java.net
Fri Dec 20 14:15:25 UTC 2019


On Fri, 20 Dec 2019 14:06:30 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:

>> It looks good then, please update PR without `err != kCGLNoError`
> 
> Something like this, maybe?
> 
>     if (pix == NULL) {
>         NSLog(@"CGLChoosePixelFormat: unable to find a pixel format, trying again with reduced capabilities");
> 
> The message could perhaps be improved, but something indicating we are using a fallback would be helpful.

> The existing logging done right before the function returns will indeed log a complete failure to find a valid pixel format. It won't, however, log the fact that the initial attempt failed and we then try to use a fallback. It was this that @arapte asked to be logged. I agree with his request.

Agreed. 
I suggest the printout only explains that we failed to get a pixel format object and we're about to try again but doesn't mention the returned error; since we don't check on its value, we could end up printing something like "Failed to do something very important[..] (Error: No error)", which would just be confusing IMO.

-------------

PR: https://git.openjdk.java.net/jfx/pull/65


More information about the openjfx-dev mailing list