Community
Participate
Working Groups
Running 4.18 on Big Sur I see the following output twice to the console whenever I open a MessageBox dialog: 2020-12-18 15:29:44.395 java[86838:1500311] Warning: Expected min height of view: (<NSButton: 0x7fe6c9fa7390>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation. The code is pretty simple: MessageBox dialog = new MessageBox(shell, SWT.ICON_QUESTION | SWT.YES | SWT.NO); dialog.setText("Some title); dialog.setMessage("Blah blah blah"); if (dialog.open()) ... I couldn't find this logged as a separate bug or known issue under bug 569361.
I tested your snippet on Big Sur 11.1, Eclipse 4.18 GA and OpenJDK 11.0.8+10 on 2020 MacBook Air but did not see the message written to console. Are you using latest Big Sur 11.1?
Created attachment 285087 [details] Simple test app Here's the simplest test app that I could create. The output appears when I click on 'Click Me'. Version of SWT is 4940, which I've re-downloaded to confirm is 4.18. I am on Big Sur 11.1. I didn't see this behaviour on ~4.14 on Catalina and then upgraded both; it's possible this is a normal regression or caused by Big Sur.
@Tim I ran your snippet and I'm not seeing the warning message written to console. My SWT version is also 4940. Big Sur version: 11.1 (20C69) What Java version are you on?
It was actually picking up an old Java 8 when I first saw this :), but I'm on AdoptOpenJDK 11.0.9 now and still seeing it. I've checked the classpath only has the JDK, the class, and Cocoa SWT jar on it; I can't think of anything else to check. I've got dark mode on? Please let me know if there's anything else I can check or verify.
Hardware? What's the Mac you're using? Retina device or not?
I can reproduce this problem on Mac book pro retina 15 inch 2017 model on Mac OS 11.1 Eclipse SDK Version: 2021-03 (4.19) Build id: I20201220-1800 OS: Mac OS X, v.10.16, x86_64 / cocoa Java version: 15.0.1
(In reply to Sravan Kumar Lakkimsetti from comment #6) > I can reproduce this problem on Mac book pro retina 15 inch 2017 model on > Mac OS 11.1 > Eclipse SDK > Version: 2021-03 (4.19) > Build id: I20201220-1800 > OS: Mac OS X, v.10.16, x86_64 / cocoa > Java version: 15.0.1 @lshanmug We are getting this in NSAlert.doModal() call. Need your help in debugging this.
Glad this has been reproduced in the meantime, but FWIW I'm on a 2019 16" MacBook Pro, retina screen.
(In reply to Sravan Kumar Lakkimsetti from comment #7) > @lshanmug > > We are getting this in NSAlert.doModal() call. Need your help in debugging > this. The message is coming from Apple code, found a few other threads reporting this issue, for eg: https://github.com/macvim-dev/macvim/issues/1114 and looks like it was fixed by rebuilding using Xcode 12. @Sravan, can you please open a Apple ticket for this?