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

Bug 517957

Summary: [GTK2][Ubuntu] Tiny icons in console tab views
Product: [Eclipse Project] Platform Reporter: Stefan Daurer <s.daurer>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P5 CC: akurtakov, jan.public, loskutov, psuzzi
Version: 4.7Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 530841    
Attachments:
Description Flags
Screenshot with the open console tab, icons there are tiny, others are OK
none
Oversized input box with GTK 3
none
Oversized elements with GTK 3 none

Description Stefan Daurer CLA 2017-06-07 12:25:31 EDT
Created attachment 268794 [details]
Screenshot with the open console tab, icons there are tiny, others are OK

Icons in the console tab are almost invisible small since 4.7, all other icons are sized normal. Ubunut/x66, Res: 1920x1080, no HiDPI settings

eclipse.ini options:
-------------------------
-vm
/opt/apps/jdk/bin
--launcher.GTK_version
2
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.500.v20170511-1520
-product
org.eclipse.epp.package.dsl.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx2048m
--add-modules=ALL-SYSTEM
--permit-illegal-access
Comment 1 Patrik Suzzi CLA 2017-06-07 16:30:22 EDT
Stefan, thanks for reporting this bug. 

As you are using the option "--launcher.GTK_version 3", I suggest launching eclipse as follows:

SWT_GTK3=0
./eclipse

If the above doesn't fix the issue, I think we'll need more information: 
- Which version of GTK have you installed on your Linux machine?
- Can you please provide the Build ID information for your Eclipse? 
  (Ctrl+3 > Copy Build ID information to Clipboard)
Comment 2 Patrik Suzzi CLA 2017-06-07 16:33:45 EDT
> As you are using the option "--launcher.GTK_version 3", I suggest launching
> eclipse as follows:
> 
> SWT_GTK3=0
> ./eclipse
>

Correction, I meant: 

export SWT_GTK3=0
./eclipse
Comment 3 Andrey Loskutov CLA 2017-06-12 10:46:12 EDT
Moving to SWT for comments. The reporter was using GTK2, not sure how bad/good HIDPI support is there.

@Stefan: please change --launcher.GTK_version to 3 in your eclipse.ini and check if this fixes the problem. Please attach your GTK2 and GTK3 versions.
Comment 4 Leo Ufimtsev CLA 2017-06-12 14:09:35 EDT
@Stefan. 

This does not reproduce on my ubuntu Vm with Eclipse in Gtk2/gtk3.

Ubuntu 4.10.0-22 May 22nd 2017.
Eclipse 20170606

Please kindly test with latest and greatest and let us know if issue still occurs.

To download recent nightly/integration builds, please go here:
http://download.eclipse.org/eclipse/downloads/
- Scroll down to "4.x Integration Builds". 
- Click on the most recent stable build like "I201XXXXX...", 
- Find your platform in the "Eclipse SDK". Download the archive, extract it and run the 'eclipse' binary.

Also, try with gtk3 to see if there are any observable differences and let us know.
export SWT_GTK3=0
./eclipse
Comment 5 Stefan Daurer CLA 2017-06-13 05:49:02 EDT
GTK3 version is completely useless because of about 0.5mm spaces between all elements and oversized buttons everywhere. Found the recommendation for the problem in 4.6 somewhere in the eclipse forum that setting gtk to version 2 is recommended because 3 is buggy as hell (which I sadly can approve, see attachments) (Ubuntu zesty/Mate newerst packets installed).

4.6 is working fine with those settings btw...
Comment 6 Stefan Daurer CLA 2017-06-13 05:50:16 EDT
Created attachment 268881 [details]
Oversized input box with GTK 3
Comment 7 Stefan Daurer CLA 2017-06-13 05:50:49 EDT
Created attachment 268882 [details]
Oversized elements with GTK 3
Comment 8 Leo Ufimtsev CLA 2017-06-14 17:43:21 EDT
(In reply to Stefan Daurer from comment #5)
> GTK3 version is completely useless because of about 0.5mm spaces between all
> elements and oversized buttons everywhere. Found the recommendation for the
> problem in 4.6 somewhere in the eclipse forum that setting gtk to version 2
> is recommended because 3 is buggy as hell (which I sadly can approve, see
> attachments) (Ubuntu zesty/Mate newerst packets installed).
> 
> 4.6 is working fine with those settings btw...

A lot of these issues were fixed in the newest version of Eclipse. Have you tried a nightly version of Eclipse?

http://download.eclipse.org/eclipse/downloads/
ex, try this one:
http://download.eclipse.org/eclipse/downloads/drops4/I20170612-0950/download.php?dropFile=eclipse-SDK-I20170612-0950-linux-gtk.tar.gz
Comment 9 Leo Ufimtsev CLA 2017-08-01 12:51:18 EDT
ping.
Comment 10 Leo Ufimtsev CLA 2018-02-07 10:31:50 EST
Triaging Gtk2-only bugs. Please see Bug 530841 for details.
If this bug is not gtk2-specific, please indicate.
Thank you for your bug submission.

Side note: a bunch of spacing issues were resolved in newer Eclipse versions. I recommend trying 4.8 M5.
Comment 11 Eric Williams CLA 2018-07-10 13:57:53 EDT
Please note: GTK2 support for SWT is being dropped in Eclipse 4.10 / SimRel 2018-12 release. 

See the following mail for more info: http://dev.eclipse.org/mhonarc/lists/cross-project-issues-dev/msg15783.html
Comment 12 Alexander Kurtakov CLA 2018-07-12 10:13:18 EDT
Marking the bug as duplicate of the GTK2 tracker as no work for GTK2 issues will happen. Please reopen if you still face the issue using GTK 3.x.

*** This bug has been marked as a duplicate of bug 530841 ***