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

Bug 505965

Summary: GTK 3.22 Partially Breaking UI
Product: [Eclipse Project] Platform Reporter: Markus Walther <m.walther97>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: critical    
Priority: P3 CC: daniel_megert, lucas.steinmann
Version: 4.6   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Elements cut off in Preferences window (Buttons on the bottom and to the right)
none
All 'Warning' and 'Critical' messages during startup none

Description Markus Walther CLA 2016-10-14 06:25:13 EDT
Created attachment 264849 [details]
Elements cut off in Preferences window (Buttons on the bottom and to the right)

After upgrading to GTK 3.22 Eclipse is reporting various 'Warning' and 'Critical' messages to the console at startup and during operation.

The splash screen is sometimes changing positions on the screen multiple times while loading Eclipse.

When opening the Preferences and other 'sub-windows' of Eclipse, elements like buttons and text are cut off on the bottom and right sides of the window.

Downgrading GTK to gtk3-3.20.9 fixed all issues for now.

System:
x86_64
Arch Linux

Tested with these software versions:
Gnome 3.20 & 3.22
gtk3-3.22.x (tested all available versions from the arch repository)
eclipse-java 4.6.0-1 & 4.6.1-1 (Neon/Neon.1)

Warnings and Critical messages (examples, there are more):
(java:2499): Gtk-WARNING **: Theme parsing error: gtk.css:680:14: not a number

(java:2499): Gtk-WARNING **: Theme parsing error: gtk.css:680:14: Expected a string.

(Eclipse:2499): GLib-CRITICAL **: g_base64_encode_step: assertion 'in != NULL' failed
Comment 1 Markus Walther CLA 2016-10-14 06:26:07 EDT
Created attachment 264850 [details]
All 'Warning' and 'Critical' messages during startup
Comment 2 Leo Ufimtsev CLA 2016-10-14 10:11:32 EDT
I run my Eclipse on Gtk3.22.1. Works fine.

However, I see things like that when I run in the Wayland backend. Are you using Wayland?

Try:
export GDK_BACKEND=x11
./eclipse

Does issue still occur?
Comment 3 Markus Walther CLA 2016-10-14 11:41:08 EDT
Interesting. I hadn't explicitly set the backend to Wayland but this fixed the UI bugs. I do still get the Warning and Critical messages during startup however.

It appears that the default backend changes from x11 to wayland by upgrading the gtk3 package to 3.22.

With gtk3-3.20.9 i get a crash when running Eclipse with GDK_BACKEND=wayland while GDK_BACKEND=x11 fixes the bugs when using gtk3-3.22.x.
Comment 4 Leo Ufimtsev CLA 2016-10-17 10:04:21 EDT
At the moment there are known issues with Eclipse on Wayland:

496923: [Wayland] Improve support for Wayland in 4.7
https://bugs.eclipse.org/bugs/show_bug.cgi?id=496923

We are working on fixing that. We also run into all of the issues you mentioned above.

At least with the recent Fedora Eclipse, Mat changed it so that we'll be using X11 for now until Wayland is a bit more stable. (See https://bugs.eclipse.org/bugs/show_bug.cgi?id=496923#c3 ).
On non-fedora's, you might have to change bits.

I'll close the bug as duplicate for now (?), but feel free to follow bug above or submit child bugs (if different from existing child bugs).

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