| Summary: | Eclipse Photon 4.8 messes up graphics with black parts and DPI scaling | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Jan Richter <eclipse> |
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | bugs.eclipse.org, eclipse, eclipse, loskutov, sravankumarl |
| Version: | 4.8 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Attachments: | |||
|
Description
Jan Richter
Created attachment 274785 [details]
Console log of swt.autoScale = default (messed up graphics)
Created attachment 274786 [details]
Console log of swt.autoScale = false (no messed up graphics, but dpi scaling issues)
Which GTK 3 version do you have and which scaling on the OS level? Looks like you are using plasma desktop. I feel its a duplicate of 536542. (In reply to Sravan Kumar Lakkimsetti from comment #4) > Looks like you are using plasma desktop. I feel its a duplicate of 536542. No, like I stated in my initial description, I am using i3wm and not plasma. But you are right, it looks like a similar graphical issue. (In reply to Andrey Loskutov from comment #3) > Which GTK 3 version do you have and which scaling on the OS level? The GTK3 version should be 3.22.30. Concerning scaling I have none activated, I just set "Xft.dpi: 192" in my .Xresources file, which helps for the most part. Ah, I also use "GDK_DPI_SCALE=1.1". Can you please try with environment variable GDK_SCALE=2 Created attachment 274891 [details]
Screenshot with GDK_SCALE=2 and swt.autoscale=true
With GDK_SCALE=2 and swt.autoscale=true, the graphics are correct, however the UI is far to large to work with. GDK_SCALE does not allow for floating values, so this is not a solution.
Created attachment 274892 [details]
Screenshot with GDK_SCALE=2 and swt.autoscale=false
With GDK_SCALE=2 and swt.autoscale=false, the graphics are messed up and also far too big.
So with GDK_SCALE=2 the "autoscale" messed up graphics switch: before (with GDK_SCALE=1) the graphics were messed up with autoscale=true and correct when on autoscale=false.
Now (with GDK_SCALE=2) the graphics are correct on autoscale=true and wrong on autoscale=false.
It looks like a problem in the the GTK itself . I found that none the GTK applications scale properly on the plasma desktop. Probably you are also see in the same problem in i3wm. To confirm you can try with gtk-calculator app. Please check whether the icons scale properly or not. (In reply to Sravan Kumar Lakkimsetti from comment #11) > It looks like a problem in the the GTK itself . I found that none the GTK > applications scale properly on the plasma desktop. Probably you are also see > in the same problem in i3wm. > > To confirm you can try with gtk-calculator app. Please check whether the > icons scale properly or not. The appname is gnome-calculator I found a temporary workaround. With GDK_SCALE=2 and swt.autoscale=true I have all graphics rendered correctly, but twice as big. I can use GDK_DPI_SCALE=0.5 to rescale everything to normal size. However this is only a workaround for the DPI rendering bug of eclipse, as all other applications on my machine (firefox or else) can render correctly (and in correct size) without all those tweaks. Created attachment 274893 [details]
Gnome Calculator scaling correctly on i3wm
No, I do not see wrong rendering in gnome calculator. This is because I explicitly set the DPI in the xft settings (Xresources file). Maybe eclipse does not use the DPI settings of the X server?
And I also tested gnome-calculator: It scales nicely unter KDE Plasma, without any additional settings... Created attachment 274899 [details] Gnome calculator at 100% and at 200% (In reply to Thomas Stieler from comment #15) > And I also tested gnome-calculator: It scales nicely unter KDE Plasma, > without any additional settings... Please compare the images on the tool bar. Yo can clearly see that the images are not scaled. *** Bug 536841 has been marked as a duplicate of this bug. *** (In reply to Sravan Kumar Lakkimsetti from comment #16) > Created attachment 274899 [details] > Gnome calculator at 100% and at 200% > > (In reply to Thomas Stieler from comment #15) > > And I also tested gnome-calculator: It scales nicely unter KDE Plasma, > > without any additional settings... > > Please compare the images on the tool bar. Yo can clearly see that the > images are not scaled. Ok, I see your point and agree, that the toolbar images are not scaled... Okay, that is true. Can you elaborate more on what exactly the window manager must do to support this for GTK3? Because while this might get fixed for plasma by some developers, we i3wm users will most certainly have to fix it ourselves. (In reply to Jan Richter from comment #19) > Okay, that is true. Can you elaborate more on what exactly the window > manager must do to support this for GTK3? Because while this might get fixed > for plasma by some developers, we i3wm users will most certainly have to fix > it ourselves. I have to check with GTK developers here. Raised https://gitlab.gnome.org/GNOME/gtk/issues/1207 with GTK *** This bug has been marked as a duplicate of bug 536542 *** |