Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse Photon messing up graphics
Eclipse Photon messing up graphics [message #1791524] Sun, 01 July 2018 22:45 Go to next message
Jan Richter is currently offline Jan RichterFriend
Messages: 2
Registered: July 2018
Junior Member
Hello,

I was using Eclipse Oxygen for Java (installed via the eclipse.org/downloads installer) until a few days ago under Ubuntu 18.04. My desktop environment is i3 and eclipse worked out of the box just fine. However I got updated to Eclipse Photon at the start of an eclipse session and now the workspace is full of graphic issues (right window):

https://files.jnrcdn.de/eclipse_error.png

The left window is the output when started via cli.

I then removed eclipse and reinstalled Photon directly to rule out a broken update, but the issue remains (the above screenshot is from the reinstalled instance).
Sadly I have no idea how to debug this issue, so I wanted to ask for help here. Maybe Photon changed something about the DPI handling? I can still click on everything and for example the "File"-Menu button top left is far bigger than it is shown. So I thought it might be a DPI issue.

Any ideas?

[Updated on: Mon, 02 July 2018 07:06]

Report message to a moderator

Re: Eclipse Photon messing up graphics [message #1791530 is a reply to message #1791524] Mon, 02 July 2018 06:44 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
As far as I understand, there are two system properties you could try that affect how/whether SWT scales for high DPI. The following is copied from the Javadoc in https://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/bundles/org.eclipse.swt/Eclipse%20SWT/common/org/eclipse/swt/internal/DPIUtil.java

String org.eclipse.swt.internal.DPIUtil.SWT_AUTOSCALE : "swt.autoScale"

System property that controls the autoScale functionality.
•false: deviceZoom is set to 100%
•integer: deviceZoom depends on the current display resolution, but only uses integer multiples of 100%. The detected native zoom is generally rounded down (e.g. at 150%, will use 100%), unless close to the next integer multiple (currently at 175%, will use 200%).
•integer200: like integer, but the maximal zoom level is 200%.
•quarter: deviceZoom depends on the current display resolution, but only uses integer multiples of 25%. The detected native zoom is rounded to the closest permissible value.
•exact: deviceZoom uses the native zoom (with 1% as minimal step).
•<value>: deviceZoom uses the given integer value in percent as zoom level.
The current default is "integer200".

String DPIUtil.SWT_AUTOSCALE_METHOD : "swt.autoScale.method"

System property that controls the method for scaling images:
•"nearest": nearest-neighbor interpolation, may look jagged
•"smooth": smooth edges, may look blurry
The current default is to use "nearest", except on GTK when the deviceZoom is not an integer multiple of 100%. The smooth strategy currently doesn't work on Win32 and Cocoa, see bug 493455.

You'd specify such options in the -vm section (as a separate new line near the end) of your installation's eclipse.ini.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Eclipse Photon messing up graphics [message #1791531 is a reply to message #1791530] Mon, 02 July 2018 07:21 Go to previous messageGo to next message
Jan Richter is currently offline Jan RichterFriend
Messages: 2
Registered: July 2018
Junior Member
First, I fixed the first post, my image wasn't shown. See above for the image and console output.

Second, thank you for the suggestions! The swt.autoscale is indeed one problem, as setting it to false fixed the black parts. However the DPI/Scale is far too low (-> because the setting disabled it), making it unusable to work with. Is there any way to fix this? All other settings and combinations (autoscale to integer or else) all have the black screen problem.
Re: Eclipse Photon messing up graphics [message #1791547 is a reply to message #1791531] Mon, 02 July 2018 11:25 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Sorry, I don't know much about all these details on Linux. And I'm not sure where to suggest as the best place to ask these questions. Perhaps open a Bugzilla for https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform would get a response.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic: setup to create new andriod project in Eclips
Next Topic:How to open odt files on Eclipse (In-Place Editor) ?
Goto Forum:
  


Current Time: Fri Apr 26 03:12:13 GMT 2024

Powered by FUDForum. Page generated in 0.05596 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top