Bug 574167 - [mac][regression] Chevron displays wrongly in 2021-06
Summary: [mac][regression] Chevron displays wrongly in 2021-06
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.20   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-12 15:08 EDT by Thomas Wolf CLA
Modified: 2021-08-23 15:04 EDT (History)
3 users (show)

See Also:


Attachments
Broken chevron display (11.17 KB, image/png)
2021-06-12 15:08 EDT, Thomas Wolf CLA
no flags Details
Normal chevron display after mouse over (7.99 KB, image/png)
2021-06-12 15:09 EDT, Thomas Wolf CLA
no flags Details
Same effect in the EGit history search (14.69 KB, image/png)
2021-07-01 03:48 EDT, Thomas Wolf CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wolf CLA 2021-06-12 15:08:14 EDT
Created attachment 286578 [details]
Broken chevron display

After update to 2021-06 I noticed the chevron displays wrongly.

OS X 10.14.6, x86_64, Java 11, 27" HiDPI display

Version: 2021-06 (4.20)
Build id: I20210611-1600

See the attachment. On mouse over, the chevron display is corrected.
Comment 1 Thomas Wolf CLA 2021-06-12 15:09:03 EDT
Created attachment 286579 [details]
Normal chevron display after mouse over
Comment 2 Thomas Wolf CLA 2021-06-12 15:51:07 EDT
(Screenshots are from Eclipse SDK I20210611-1600.)
Comment 3 Thomas Wolf CLA 2021-07-01 03:45:31 EDT
Note: actually the broken display is flipped vertically and blurred.
Comment 4 Thomas Wolf CLA 2021-07-01 03:48:33 EDT
Created attachment 286707 [details]
Same effect in the EGit history search

The same bug can also be observed in the search field in the EGit history page's toolbar (You may have to click the "looking glass" toolbar button to make it visible first).

See the attachment. This is after entering "Wolf" in the field and the clicking the search icon in the search field.
Comment 5 Thomas Wolf CLA 2021-07-01 03:56:35 EDT
The EGit screenshot is also from an Oomph auto-updated Eclipse (updated to 2021-06). 

I see other strange effects in Oomph-updated Eclipses, such as the splash screen for 2021-06 being shown too small on launching.

In a freshly dowloaded epp.java package, this does not occur.

@Ed, would you have any idea what might be the cause or how one might fix this? Some wrong SWT or wrong SWT native libraries from a previous update being taken?
Comment 6 Ed Merks CLA 2021-07-01 04:10:36 EDT
Are such anomalies seen in a clean new workspace as well as in an older reused workspace?

I should be able to reproduce this if I install 2021-03 and then update it 2021-06, right?  Of course I'm on Windows and such behavior might be specific to Mac...
Comment 7 Ed Merks CLA 2021-07-01 04:32:55 EDT
I did not see any such strangeness updating the Java product from 2021-03 to 2021-06 via Help -> Perform Setup Tasks after Navigate -> Open Setup -> Installation and changing it from 2021-03 to 2021-06.
Comment 8 Thomas Wolf CLA 2021-07-01 04:41:35 EDT
Yes, this is specific to Mac. I don't see these effects in an Oomph-updated Eclipse running on Windows 10 in a virtual machine on my Mac.

There was a bug in SWT a while ago, Cocoa-specific, where widgets were drawn upside down (but not blurry). I wonder if somehow the wrong (native?) code gets run? Some strange corruption in the bundle pool?
Comment 9 Ed Merks CLA 2021-07-01 04:48:42 EDT
You should be able to look in the installation details to see which versions of all the plugins and features that are actually being used.  The Repository Explorer always includes the profile as a repository in the drop down choices, so you can look at such details from there too.

I don't have a theory for what could be wrong...
Comment 10 Thomas Wolf CLA 2021-07-01 05:50:52 EDT
Weird and weirder.

Plugin versions (only checked anything related to SWT) are identical to a downloaded EPP package.

But:
(In reply to Thomas Wolf from comment #5)
> I see other strange effects in Oomph-updated Eclipses, such as the splash
> screen for 2021-06 being shown too small on launching.

I decided to take a look at this and noticed that the downloaded EPP had in eclipse.ini (according to About->Installation Details->Configuration)

 -showsplash
 -launcher
 ...
 org.eclipse.equinox.launcher.splash.location=/path/to/Eclipse 16.app/Contents/Eclipse/plugins/org.eclipse.platform_4.20.0.v20210611-1600/splash.bmp

whereas the Oomph-update Eclipse had

  -showsplash
  /Users/thomas/.p2/pool/plugins/org.eclipse.epp.package.common_4.20.0.20210612-1200
  -launcher
  ...
  org.eclipse.equinox.launcher.splash.location=/Users/thomas/.p2/pool/plugins/org.eclipse.platform_4.20.0.v20210611-1600/splash.bmp

So I edited the eclipse.ini af the Oomph-updated Eclipse to remove the path after "-showsplash"

Config is now shown as

  -showsplash
  -launcher
  ...
  org.eclipse.equinox.launcher.splash.location=/Users/thomas/.p2/pool/plugins/org.eclipse.platform_4.20.0.v20210611-1600/splash.bmp

and the Splash screen shows in the correct size.

The "upside down and blurry" effects are still there, though.
Comment 11 Thomas Wolf CLA 2021-07-28 10:07:47 EDT
As mentioned in comment 0 and comment 2: occurs on OS X 10.14.6 (don't know about other OS X versions), in Eclipse 4.20 or newer. Reproducible still in Eclipse SDK I20210721-1800.

Might be related to the editor cheese reported in bug 574351 and bug 574585. Perhaps also relevant in SWT: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/176681 ?
Comment 12 Phil Beauvoir CLA 2021-07-29 03:20:59 EDT
I can confirm the chevron and EGit Search field issues on a MacBook Pro with macOS 10.14.6, OpenJDK 11.

I wasn't seeing it at first, until I clicked on a new Editor tab.

But not seeing the problem on macOS 10.15.7, though.
Comment 13 Thomas Wolf CLA 2021-08-23 14:07:19 EDT
(In reply to Phil Beauvoir from comment #12)
> I can confirm the chevron and EGit Search field issues on a MacBook Pro with
> macOS 10.14.6, OpenJDK 11.
> 
> I wasn't seeing it at first, until I clicked on a new Editor tab.
> 
> But not seeing the problem on macOS 10.15.7, though.

Just noticed: it's not just the chevron but also the minimize/maximize buttons. Those are also shown blurry and upside down, and they too are corrected on mouse over.
Comment 14 Phil Beauvoir CLA 2021-08-23 14:25:30 EDT
(In reply to Thomas Wolf from comment #13)
> (In reply to Phil Beauvoir from comment #12)
> > I can confirm the chevron and EGit Search field issues on a MacBook Pro with
> > macOS 10.14.6, OpenJDK 11.
> > 
> > I wasn't seeing it at first, until I clicked on a new Editor tab.
> > 
> > But not seeing the problem on macOS 10.15.7, though.
> 
> Just noticed: it's not just the chevron but also the minimize/maximize
> buttons. Those are also shown blurry and upside down, and they too are
> corrected on mouse over.

Thomas, what Eclipse version is this on? Did you try latest I build?
Comment 15 Thomas Wolf CLA 2021-08-23 15:04:20 EDT
No I-build. Several Eclipses updated to latest 2021-09, or also in a child Eclipse started from latest SWT master.
Comment 16 Thomas Wolf CLA 2021-08-23 15:04:59 EDT
(In reply to Thomas Wolf from comment #15)
> Several Eclipses updated to latest 2021-09
... updated by Oomph