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

Bug 494145

Summary: Diagram rendering issues on Neon
Product: [Modeling] Sirius Reporter: Laurent Redor <laurent.redor>
Component: DiagramAssignee: Project Inbox <sirius.diagram-inbox>
Status: CLOSED WORKSFORME QA Contact: Laurent Redor <laurent.redor>
Severity: normal    
Priority: P3 CC: laurent.fasani, maxime.porhel, pierre-charles.david, sravankumarl
Version: 3.1.0Keywords: triaged
Target Milestone: 4.0.0   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Bug Depends on: 494035    
Bug Blocks:    
Attachments:
Description Flags
sampleProject.zip
none
diagramWithAndWithoutAutoScale.png
none
screenshotWithAndWithoutAutoSize.png
none
Screenshot under Linux (Ubuntu 16.04) with 3200×1800 resolution none

Description Laurent Redor CLA 2016-05-20 07:56:55 EDT
Created attachment 261887 [details]
sampleProject.zip

As explain in bugzilla 494035, there is rendering problem due to new SWT auto-scaling feature. This problem also exists in Sirius (as it is based on GMF).

Example on an EcoreTools diagram with this OS Configuration:
* Windows 10
* Resolution : 3840x2160
* Font size modification : 250% (recommanded)

Attachments:
* diagramWithAndWithoutAutoScale.png: Result of export as image of the sample diagram:
** On top, the diagram with auto-scale (standard configuration)
** On bottom, the diagram without auto-scale (argument -Dswt.enable.autoScale=false).
* screenshotWithAndWithoutAutoSize.png: Screenshot of the editor itself in the same conditions as above.
* sampleProject.zip: Contains the diagram used to reproduce the problem

On Sirius side, with the "-Dswt.enable.autoScale=false", the result is worse, except for GMF Note background Color.
Comment 1 Laurent Redor CLA 2016-05-20 07:57:32 EDT
Created attachment 261888 [details]
diagramWithAndWithoutAutoScale.png
Comment 2 Laurent Redor CLA 2016-05-20 07:57:57 EDT
Created attachment 261889 [details]
screenshotWithAndWithoutAutoSize.png
Comment 3 Pierre-Charles David CLA 2016-05-22 05:46:40 EDT
Created attachment 261923 [details]
Screenshot under Linux (Ubuntu 16.04) with 3200×1800 resolution

The problem does not seem to happen under Linux. Attached is a screenshot of the sample project made with the Neon RC1 Modeling package, on the following system:
- Ubuntu 16.04, under Gnome
- Sreen resolution: 3200×1800
- Font scaling: 120% (org.gnome.desktop.interface.text-scaling-factor)
- java.runtime.version=1.8.0_91-8u91-b14-0ubuntu4~16.04.1-b14
- org.eclipse.swt.internal.deviceZoom=100
- org.eclipse.swt.internal.gtk.version=3.18.9
Comment 4 Laurent Redor CLA 2016-05-23 03:42:46 EDT
To complete comment 1, more information of configuration:
* Windows 10
* Resolution : 3840x2160
* Font size modification : 250% (recommanded)
* org.eclipse.swt.internal.deviceZoom=200
* java.runtime.version=1.8.0_77-b03
* org.eclipse.draw2d.sdk (3.10.100.201605020204) "Draw2d"
* org.eclipse.gmf.runtime.sdk (1.10.0.201605032009) "Graphical Modeling Framework Runtime SDK"
Comment 5 Sravan Kumar Lakkimsetti CLA 2016-05-23 04:24:34 EDT
(In reply to Pierre-Charles David from comment #3)
> Created attachment 261923 [details]
> Screenshot under Linux (Ubuntu 16.04) with 3200×1800 resolution
> 
> The problem does not seem to happen under Linux. Attached is a screenshot of
> the sample project made with the Neon RC1 Modeling package, on the following
> system:
> - Ubuntu 16.04, under Gnome
> - Sreen resolution: 3200×1800
> - Font scaling: 120% (org.gnome.desktop.interface.text-scaling-factor)
> - java.runtime.version=1.8.0_91-8u91-b14-0ubuntu4~16.04.1-b14
> - org.eclipse.swt.internal.deviceZoom=100
> - org.eclipse.swt.internal.gtk.version=3.18.9

Is it possible for you to try it on unity with a scaling factor of 2
Comment 6 Maxime Porhel CLA 2016-05-23 05:31:28 EDT
Issue not reproduced with deviceZoom = 200 on MacOSX
Comment 7 Laurent Redor CLA 2016-05-23 05:37:18 EDT
(In reply to Sravan Kumar Lakkimsetti from comment #5)
> Is it possible for you to try it on unity with a scaling factor of 2

I try on a virtual box and I reproduce the problem with Ubuntu 15.10.
Comment 8 Laurent Redor CLA 2016-06-06 09:08:06 EDT
The problem no longer exists since RC3 (since fix of bug 494035).
Comment 9 Laurent Redor CLA 2016-06-06 09:08:30 EDT
OK with Sirius RC3
Comment 10 Pierre-Charles David CLA 2016-06-24 07:59:38 EDT
Available in Sirius 4.0.0.