Community
Participate
Working Groups
Created attachment 274784 [details] Image of messed up graphics and output of console Overview: Like stated in the forums (https://www.eclipse.org/forums/index.php/t/1094012/), the update to Photon from Oxygen messes up Eclipse Interface with black parts (see attachment screenshot). Even on a new Eclipse Photon installation this happens. Ed Merks suggested changing the swt.autoScale and swt.autoScale.method. Changing swt.autoScale to false it solves the black parts, but disables DPI scaling which makes it impossible to read and work on my screen. Other settings for swt.autoScale and any settings for swt.autoScale.method keep the messed up graphics. Steps to Reproduce: Install Eclipse Photon via Installer from eclipse.org/downloads. Start Eclipse Actual Results: Eclipse starts but is unusable, as the interface is littered with black parts. UI elements are also drawn smaller than they are (the clickable area is much larger than the buttons). See attached screenshot. Expected Results: Eclipse starts normally and renders all elements according to my DPI. Build Date & Hardware: Hardware specs: Surface Pro 4 Display: 12.3 inches (31 cm) 2736x1824 (267ppi) Software: Ubuntu 18.04 with gdm and i3wm Eclipse Version: Photon Release (4.8.0) Build id: 20180619-1200 Any ideas what the issue is? And what can I provide more to further help debugging it?
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 ***