Bug 483545 - [GTK3][Elementary OS] Dialogs unusable under ElementaryOS 0.3.1 (Freya)
Summary: [GTK3][Elementary OS] Dialogs unusable under ElementaryOS 0.3.1 (Freya)
Status: CLOSED DUPLICATE of bug 542451
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.5.1   Edit
Hardware: PC Linux
: P3 critical with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2015-12-03 05:07 EST by Andreas Sewe CLA
Modified: 2019-03-20 14:31 EDT (History)
5 users (show)

See Also:


Attachments
The Install New Software dialog, as shown under Elementary OS 0.3.1 (60.88 KB, image/png)
2015-12-03 05:07 EST, Andreas Sewe CLA
no flags Details
Search dialog screenshot (26.71 KB, image/png)
2017-01-18 04:55 EST, Nicola Buso CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Sewe CLA 2015-12-03 05:07:42 EST
Created attachment 258432 [details]
The Install New Software dialog, as shown under Elementary OS 0.3.1

I am testing Eclipse Mars.1 for Java Developers under Elementary OS 0.3.1 (with OpenJDK 7 as the Java runtime). Unfortunately, the UI is pretty much unusable. The workbench window looks fine, but child dialogs like the "Install New Software" dialog are shown twice with part of the content (like OK buttons) cut of in the "real" dialog. Hard to describe... See the attached screenshot.
Comment 1 Andreas Sewe CLA 2015-12-03 05:08:54 EST
Almost forgot: The terminal I launched Eclipse from shows

*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug
Comment 2 Andreas Sewe CLA 2015-12-03 05:28:34 EST
FWIW, just tested with Neon M3. Same issues.
Comment 3 Andreas Sewe CLA 2015-12-03 05:33:45 EST
In light of the comments on Bug 465107, I tried with SWT_GTK3=0. This fixes the issue, but of course it's only a workaround.
Comment 4 Andreas Sewe CLA 2015-12-03 05:38:08 EST
(In reply to Andreas Sewe from comment #3)
> In light of the comments on Bug 465107, I tried with SWT_GTK3=0. This fixes
> the issue, but of course it's only a workaround.

Also, it logs the following on the console, which seems mildly worrying:

Gtk-Message: Failed to load module "pantheon-filechooser-module"

(eclipse:2004): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(eclipse:2004): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(eclipse:2004): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(eclipse:2004): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(eclipse:2004): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "pantheon-filechooser-module"

(java:2016): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(java:2016): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(java:2016): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(java:2016): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(java:2016): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
Gtk-Message: Failed to load module "canberra-gtk-module"
Comment 5 Bart louwers CLA 2016-04-09 17:36:45 EDT
Users should be warned to run Eclipse in GTK2, with SWT_GTK3=0 as  Andreas Sewe already mentioned.

Eclipse is completely unusable for me with GTK3...
Dialogs make the application freeze.
Comment 6 Leo Ufimtsev CLA 2016-09-19 10:12:58 EDT
Do you know if Elementary OS is running on regular X11 or did they switch to Wayland?

We had issues like that with Wayland.
Comment 7 Andreas Sewe CLA 2016-09-19 10:42:15 EDT
(In reply to Leo Ufimtsev from comment #6)
> Do you know if Elementary OS is running on regular X11 or did they switch to
> Wayland?
> 
> We had issues like that with Wayland.

As they are based on Ubuntu 14.04, I doubt it.

That being said, Elementary OS has recently had its 0.4 release. I'm not sure whether the issue I reported in comment 0 is still current.

Will check and report back.
Comment 8 Andreas Sewe CLA 2016-09-19 12:33:20 EDT
(In reply to Andreas Sewe from comment #7)
> Will check and report back.

Just tried Elementary OS 0.4 (Loki) [1], which is still using Xorg. I installed all the OS updates and openjdk-8-jdk. Then I installed Eclipse SDK 4.7 M2 [2].

It is virtually unusable. In a VirtualBox VM with 4 GB memory, just starting Eclipse causes Linux to swap shortly after the splash screen appears. Even after 5 minutes, the workbench won't become not visible, with Xorg being at about 90% CPU. After a few more minutes, the java process is terminated automatically.

A jstack call issued shortly before the VM became unusable due to swapping shows the following stack trace (unfortunately no copy and paste from Guest to Host; had to copy what I saw):

OS._g_main_context_iteration native
OS.g_main_context_iteration 2448
Display.readAndDispatch 4142
Window.runEventLoop 818
Window.open 794
ChooseWorkspaceDialog.prompt 114

Hope this helps in diagnosing the issue.

[1] <https://elementary.io/>
[2] <http://download.eclipse.org/eclipse/downloads/drops4/S-4.7M2-201609150230/>
Comment 9 Eric Williams CLA 2016-10-04 12:09:17 EDT
Without more to go on this bug will be difficult to solve, especially if it's limited to ElementaryOS (which it seems to be). 

Also the theme-engine errors lead me to believe that this may be another casualty of the oxygen-gtk problems.
Comment 10 Andreas Sewe CLA 2016-10-04 12:16:17 EDT
(In reply to Eric Williams from comment #9)
> Without more to go on this bug will be difficult to solve, especially if
> it's limited to ElementaryOS (which it seems to be). 

Well, at least this bug is very easy to reproduce: Just install Elementary OS in a VirtualBox and start Eclipse. That does not mean, of course, that this bug is easy to fix.

> Also the theme-engine errors lead me to believe that this may be another
> casualty of the oxygen-gtk problems.

Note that the theme engine errors mentioned in comment 4 use Elementary OS 0.3.1. With version 0.4.0, the problems have grown more severe, as mentioned in comment 8. (In hindsight, I probably should have opened a separate bug.)
Comment 11 Nicola Buso CLA 2017-01-18 04:55:06 EST
Created attachment 266342 [details]
Search dialog screenshot
Comment 12 Nicola Buso CLA 2017-01-18 04:56:19 EST
I have similar problems on:
Fedora 25
Wayland
GTK4

Eclipse Java EE IDE for Web Developers.

Version: Neon.2 Release (4.6.2)
Build id: 20161208-0600
----------------

Eclipse is installed manually not using the distribution package manager.

Most of the dialogs have rendering problems, some are completely unusable.
I added a screenshot attach
Comment 13 Alexander Kurtakov CLA 2018-01-15 15:24:13 EST
Is this still reproducible with latest version?
Comment 14 Andreas Sewe CLA 2018-01-16 11:16:53 EST
(In reply to Alexander Kurtakov from comment #13)
> Is this still reproducible with latest version?

Tried with Elementary OS 0.4.1 (+0.0.1 since my last test) and Eclipse SDK 4.8 M4 (+0.1.2) and the problem noted in comment 8 is still there: The workbench doesn't start (or extremely slowly), but consumes lots of CPU cycles.
Comment 15 Eric Williams CLA 2019-03-20 14:31:59 EDT
This has been fixed.

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