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

Bug 490243

Summary: All the icons size are bigger than expected (and low resolution) with M6
Product: [Eclipse Project] Platform Reporter: Cedric Brun <cedric.brun>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: akurtakov, akurtakov, azerr, lorenzo.bettini, loskutov, melanie.bats, mistria, peter, pierre-charles.david, sravankumarl
Version: 4.6   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 479614    
Attachments:
Description Flags
screenshot of Eclipse 4.6M6 vs 4.5.2
none
Screenshot under Ubuntu 15.10 / GNOME none

Description Cedric Brun CLA 2016-03-23 04:11:27 EDT
Created attachment 260508 [details]
screenshot of Eclipse 4.6M6 vs 4.5.2

Hello !

I'm using 
Eclipse-SDK M6 86_64 linux from http://download.eclipse.org/eclipse/downloads/drops4/S-4.6M6-201603170200/
Oracle Java1.8.0_73
On OpenSuse 13.2 which is shipped with libgtk3-3.14.15-21.1 and libgtk2-2.24.28-4.14.1

Starting Eclipse on a new workspace, I get very big and pixelated icons.

My desktop has two screens both at 1920x1080 though the laptop one is 13" and the external one is 22" (I guess this could be linked with pixel density in some way...)
Comment 1 Cedric Brun CLA 2016-03-23 04:16:05 EDT
I just tried with SWT_GTK3=0 and I'm getting the same problem with the icons being too big.
Comment 2 Mickael Istria CLA 2016-03-23 04:18:45 EDT
Can anyone confirm whether this works fine on other OS than Linux/GTK ?
Comment 3 Alexander Kurtakov CLA 2016-03-23 04:23:58 EDT
This is most probably an outcome of hidpi patches not handling multiple monitors good. Adding Sravan on cc.
Comment 4 Melanie Bats CLA 2016-03-23 04:33:46 EDT
I tried on Linux with and without SWT_GTK3=0 and in both cases it works fine.
Comment 5 Cedric Brun CLA 2016-03-23 04:34:30 EDT
(In reply to Alexander Kurtakov from comment #3)
> This is most probably an outcome of hidpi patches not handling multiple
> monitors good. Adding Sravan on cc.

I just tried without the external monitor. Restarted X, logged in, started Eclipse 4.6M6 and the problem is still there. 

More information about my environnement (I have no clue if this can be relevant), I'm using KDE with the KWin window manager.
Comment 6 Pierre-Charles David CLA 2016-03-23 04:35:03 EDT
Created attachment 260511 [details]
Screenshot under Ubuntu 15.10 / GNOME

It seems to work fine for me. I'm under Ubuntu 15.10 with GNOME. Tested with and without SWT_GTK3=0.
Comment 7 Sravan Kumar Lakkimsetti CLA 2016-03-23 06:33:42 EDT
This works fine on Ubuntu. On other platforms we calculate dpi based in the actual dimensions of the monitor. so that might be the reason why you are seeing this. 
We are actively working on it as a part of bug 489771

In the meanwhile you can disable auto scaling by 
This feature can be disabled on Windows and GTK by setting this VM argument to false in eclipse.ini or on the command line after -vmargs:

-Dswt.enable.autoScale=false
Comment 8 Cedric Brun CLA 2016-03-23 06:46:26 EDT
(In reply to Sravan Kumar Lakkimsetti from comment #7)
> This works fine on Ubuntu. On other platforms we calculate dpi based in the
> actual dimensions of the monitor. so that might be the reason why you are
> seeing this. 
> We are actively working on it as a part of bug 489771
> 
> In the meanwhile you can disable auto scaling by 
> This feature can be disabled on Windows and GTK by setting this VM argument
> to false in eclipse.ini or on the command line after -vmargs:
> 
> -Dswt.enable.autoScale=false

Thanks Sravan,

I confirm the workaround works as expected and give me back a correct rendering.

Is there something I could do to help fixing this? Should I close this one and move the add to the discussion in bug 489771 ?
Comment 9 Sravan Kumar Lakkimsetti CLA 2016-03-23 07:20:18 EDT
(In reply to Cedric Brun from comment #8)
> (In reply to Sravan Kumar Lakkimsetti from comment #7)
> > This works fine on Ubuntu. On other platforms we calculate dpi based in the
> > actual dimensions of the monitor. so that might be the reason why you are
> > seeing this. 
> > We are actively working on it as a part of bug 489771
> > 
> > In the meanwhile you can disable auto scaling by 
> > This feature can be disabled on Windows and GTK by setting this VM argument
> > to false in eclipse.ini or on the command line after -vmargs:
> > 
> > -Dswt.enable.autoScale=false
> 
> Thanks Sravan,
> 
> I confirm the workaround works as expected and give me back a correct
> rendering.
> 
> Is there something I could do to help fixing this? Should I close this one
> and move the add to the discussion in bug 489771 ?

You can close this bug. Please add this discussion to bug 489771. We would probably need help in testing when we are ready with the fix we will request for a test. I hope that would be OK with you
Comment 10 Mickael Istria CLA 2016-03-23 07:28:06 EDT
Just to confirm, this bug will be part of Neon M6 anyway, or does the Platform team plan a respin of the 4.6.M6 build once the bug is fixed?
Comment 11 Sravan Kumar Lakkimsetti CLA 2016-03-23 07:33:12 EDT
This will be part of M7. We are not yet fixed the issue there are no plans for respin
Comment 12 Cedric Brun CLA 2016-03-23 10:42:19 EDT

*** This bug has been marked as a duplicate of bug 489771 ***
Comment 13 Angelo ZERR CLA 2016-05-11 05:27:36 EDT
> an anyone confirm whether this works fine on other OS than Linux/GTK ?

I have tried Neon M7 with Windows 64 bits and I have the problem with icons which are too large.

When I add "-Dswt.enable.autoScale=false" to my eclipse.ini, it resolves my problem.