Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 526091

Summary: Display design upside down with MacosX High Sierra
Product: z_Archived Reporter: Olivier Prouvost <olivier.prouvost>
Component: WindowBuilderAssignee: Olivier Prouvost <olivier.prouvost>
Status: RESOLVED FIXED QA Contact:
Severity: blocker    
Priority: P3 CC: a.nesheret, borlander, brsanthu, daniel.budziwojski, f473699, kilian, psuzzi, wim.jongman
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
See Also: https://git.eclipse.org/r/113150
https://git.eclipse.org/c/windowbuilder/org.eclipse.windowbuilder.git/commit/?id=62e8c700d9c895e579f05e26b327752c690988d1
https://bugs.eclipse.org/bugs/show_bug.cgi?id=558678
Whiteboard:
Attachments:
Description Flags
Window builder with high sierra
none
Same issue: image rotated upside-down, feedback layer is still ok
none
Fix from #113150 => still mirrored with El Capitan none

Description Olivier Prouvost CLA 2017-10-16 11:11:37 EDT
Created attachment 271020 [details]
Window builder with high sierra

With mac os x High sierra, Window builder displays the design view like in a mirror (see attached file).
Comment 1 Olivier Prouvost CLA 2017-12-06 04:41:32 EST
For information, I am using : 

Version: Oxygen.1a Release (4.7.1a)
Build id: 20171005-1200

And Window builder 1.9.0
Comment 2 Patrik Suzzi CLA 2017-12-11 05:09:16 EST
Created attachment 271847 [details]
Same issue: image rotated upside-down, feedback layer is still ok

I got the same issue after updating from MacOS Sierra to High Sierra.

The full image is rotated upside-down, but the feedback layer of WindowBuilder works as expected.

I encountered the bug on Eclipse for RCP and RAP developers Oxygen 1.a with latest window builder.
I am able to reproduce the issue also on Eclipse for RCP and RAP developers Neon.3, with window builder for Eclipse Neon. 

This looks like an issue with the O.S. 

A possible solution is to identify the O.S. and rotate the "snapshotted image" if the O.S. is MacOS High Sierra or above.
Comment 3 Olivier Prouvost CLA 2017-12-11 07:32:48 EST
See gerrit review : 

https://git.eclipse.org/r/113150
Comment 4 Michael Golubev CLA 2017-12-12 07:10:56 EST
(In reply to Olivier Prouvost from comment #3)
> See gerrit review : 
> https://git.eclipse.org/r/113150

With this gerrit the diagram is shown rotated for El Capitan, I will attached the screen shot in a moment
Comment 5 Michael Golubev CLA 2017-12-12 07:13:05 EST
Created attachment 271865 [details]
Fix from #113150 => still mirrored with El Capitan

We definitely need to make the fix conditional
Comment 6 Olivier Prouvost CLA 2017-12-13 08:32:04 EST
I added a test to rotate only for High Sierra version.
Comment 7 Michael Golubev CLA 2017-12-13 08:56:11 EST
(In reply to Olivier Prouvost from comment #6)
> I added a test to rotate only for High Sierra version.

Thank you, I have verified that it works again on El Capitan. 

Based on the structure of the last change, it is hard to believe that it may break the previously confirmed fix for High Sierra, so I am going to go forward and push this.
Comment 9 K Kumar CLA 2017-12-27 02:08:40 EST
Is this fix included as part of Oxygen.2?
Comment 10 Olivier Prouvost CLA 2017-12-27 05:52:35 EST
The market place is not yet updated. 

If you want to use the latest version, use the nightly build update site here :

https://ci.eclipse.org/windowbuilder/job/org.eclipse.windowbuilder/lastSuccessfulBuild/artifact/org.eclipse.wb.releng.updatesite/target/repository/
Comment 11 K Kumar CLA 2017-12-27 10:58:16 EST
Thank you, installed the patch and it is working fine. thank you.
Comment 12 Wim Jongman CLA 2017-12-28 07:43:57 EST
(In reply to K Kumar from comment #11)
> Thank you, installed the patch and it is working fine. thank you.

Is this a setting? Please see Eric's comments here where he suspects it is a driver failure which may be fixed in the next apple update.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=525425#c7
Comment 13 Wim Jongman CLA 2017-12-28 07:45:44 EST
*** Bug 525425 has been marked as a duplicate of this bug. ***
Comment 14 John Doe CLA 2018-03-30 04:58:56 EDT
I've just installed WindowBuilder on Oxygen.3 with MacOS High Sierra and it's also upside down so this problem doesn't seem to be resolved.
Comment 15 Olivier Prouvost CLA 2018-03-30 06:11:17 EDT
How did you install it ? Using market place ? 

Unfortunately, the bug #528861 is opened for the update but it is not still fixed... It is just a copy of the zip file but I don't have the right. I will ping the guy who as the rights again.
Comment 16 Olivier Prouvost CLA 2018-03-30 06:33:21 EDT
If you want to get the updated zip, you can rebuild it using these commands : 

git clone git://git.eclipse.org/gitroot/windowbuilder/org.eclipse.windowbuilder.git
cd org.eclipse.windowbuilder
man clean install

The uplatesite zip file is generated here : 

org.eclipse.wb.releng.updatesite/target/org.eclipse.wb.releng.updatesite-1.0.0-SNAPSHOT.zip
Comment 17 Olivier Prouvost CLA 2018-03-30 06:34:23 EDT
sorry it is 

git clone git://git.eclipse.org/gitroot/windowbuilder/org.eclipse.windowbuilder.git
cd org.eclipse.windowbuilder
mvn clean install

The uplatesite zip file is generated here : 

org.eclipse.wb.releng.updatesite/target/org.eclipse.wb.releng.updatesite-1.0.0-SNAPSHOT.zip
Comment 18 Jürgen Kilian CLA 2020-01-13 01:19:45 EST
That issue is back with Catalina 15.2 und WB 19.2
While running some Catalina 15.1 beta everything worked still fine, after updating to 15.2 release the issue is back.

Can anybody verify or is there already some fix?
Comment 19 Olivier Prouvost CLA 2020-01-13 04:44:48 EST
Hi Jurgen, 

I have not still installed Catalina. 

The bug fix is not complicated : the Catalina version should be added in the list.. 

But may be, I will fix it in the other way : if the version is before High Sierra do nothing... as it appears for each new release now...

I opened the bug #559096 for Catalina, you can add you as cc