Bug 569825 - Console warning creating MessageBox on Big Sur
Summary: Console warning creating MessageBox on Big Sur
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.18   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-18 16:31 EST by Tim deBoer CLA
Modified: 2020-12-30 04:21 EST (History)
3 users (show)

See Also:


Attachments
Simple test app (1.29 KB, text/plain)
2020-12-20 11:13 EST, Tim deBoer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim deBoer CLA 2020-12-18 16:31:13 EST
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.
Comment 1 Phil Beauvoir CLA 2020-12-19 06:25:17 EST
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?
Comment 2 Tim deBoer CLA 2020-12-20 11:13:12 EST
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.
Comment 3 Phil Beauvoir CLA 2020-12-20 11:47:30 EST
@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?
Comment 4 Tim deBoer CLA 2020-12-20 22:43:24 EST
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.
Comment 5 Phil Beauvoir CLA 2020-12-21 04:51:31 EST
Hardware? What's the Mac you're using? Retina device or not?
Comment 6 Sravan Kumar Lakkimsetti CLA 2020-12-21 10:03:41 EST
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
Comment 7 Sravan Kumar Lakkimsetti CLA 2020-12-21 11:35:04 EST
(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.
Comment 8 Tim deBoer CLA 2020-12-21 15:04:07 EST
Glad this has been reproduced in the meantime, but FWIW I'm on a 2019 16" MacBook Pro, retina screen.
Comment 9 Lakshmi P Shanmugam CLA 2020-12-30 04:21:13 EST
(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?