Bug 424343 - [GTK3] SWT - Empty tables on Ubuntu Linux with overlay scrollbars
Summary: [GTK3] SWT - Empty tables on Ubuntu Linux with overlay scrollbars
Status: VERIFIED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Launcher (show other bugs)
Version: 3.10.0 Luna   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: Luna M7   Edit
Assignee: Silenio Quarti CLA
QA Contact: Arun Thondapu CLA
URL:
Whiteboard:
Keywords:
: 420771 429385 432108 432116 (view as bug list)
Depends on:
Blocks: 340067 427126 430372 460141
  Show dependency tree
 
Reported: 2013-12-18 10:07 EST by Lars Vogel CLA
Modified: 2015-02-17 11:29 EST (History)
13 users (show)

See Also:


Attachments
GTK3 Screenshot (38.75 KB, image/png)
2013-12-18 10:07 EST, Lars Vogel CLA
no flags Details
GTK2 screenshot (43.16 KB, image/png)
2013-12-18 10:07 EST, Lars Vogel CLA
no flags Details
Extension (40.23 KB, image/png)
2014-02-11 19:18 EST, Lars Vogel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2013-12-18 10:07:01 EST
The PDE "Extension" tab stays empty if I try to add a new extension. If I start Eclipse with export SWT_GTK3=0 the list is visible. I attach two screenshots.
Comment 1 Lars Vogel CLA 2013-12-18 10:07:43 EST
Created attachment 238444 [details]
GTK3 Screenshot
Comment 2 Lars Vogel CLA 2013-12-18 10:07:57 EST
Created attachment 238445 [details]
GTK2 screenshot
Comment 3 Lars Vogel CLA 2013-12-18 10:17:29 EST
I use the following GTK version under Ubuntu 13.10

libgtk-3-bin                           3.8.6-0ubuntu3           amd64                    programs for the GTK+ graphical user interface library
Comment 4 Alexander Kurtakov CLA 2014-01-08 06:54:37 EST
This is second time I see such bug report but haven't reproduced it in pure SWT code? Would you please come up with a simple pure swt reproducer?
Comment 5 Michael Vorburger CLA 2014-01-09 16:46:30 EST
I see and can repro. this one too.. note also bug 424878 and bug 424891...
Comment 6 Lars Vogel CLA 2014-01-10 04:21:35 EST
(In reply to Alexander Kurtakov from comment #4)
> This is second time I see such bug report but haven't reproduced it in pure
> SWT code? Would you please come up with a simple pure swt reproducer?

I tried to reproduce this with a simple SWT table but I was not successful. Sorry.
Comment 7 Alexander Kurtakov CLA 2014-02-07 02:18:03 EST
Lars, can you reproduce with the latest I-build?
Comment 8 Lars Vogel CLA 2014-02-07 03:42:29 EST
(In reply to Alexander Kurtakov from comment #7)
> Lars, can you reproduce with the latest I-build?

I tested with Build id: I20140204-0800 and still the same empty dialog.
Comment 9 Matthias Mailänder CLA 2014-02-07 07:02:29 EST
Confirmed. I am also affected on openSUSE 13.1 with gtk3 version 3.10.4
Comment 10 Lars Vogel CLA 2014-02-11 19:17:47 EST
(In reply to Lars Vogel from comment #8)
> (In reply to Alexander Kurtakov from comment #7)
> > Lars, can you reproduce with the latest I-build?
> 
> I tested with Build id: I20140204-0800 and still the same empty dialog.

Tested with Build id: I20140211-1100 and still an empty dialog if I deselect the checkbox (see screenshot).
Comment 11 Lars Vogel CLA 2014-02-11 19:18:34 EST
Created attachment 239839 [details]
Extension

model extension point was visible before I deselect the checkbox.
Comment 12 Arthur Daussy CLA 2014-04-01 08:54:24 EDT
I am working on EMF Compare preference page and I am using CheckboxTableViewer element. Although it's working perfectly fine on Kepler platform, on Luna M6 platform CheckboxTableViewer are not visible at all.

Is there any progress on this issue?

Config:
OS: Kunbuntu 13.10 OS
libgtk-3-bin Version: 3.8.6-0ubuntu3.1
Comment 13 Marc-André Laperle CLA 2014-04-04 14:15:50 EDT
Lars, Arthur. Since you are using Ubuntu, could you try to disable overlay scrollbars using LIBOVERLAY_SCROLLBAR=0 environment variable and see if it fixes the problem? This sounds similar to bug 420771.
Comment 14 Arthur Daussy CLA 2014-04-07 04:38:55 EDT
Hi Marc-Andre,

Exporting LIBOVERLAY_SCROLLBAR=0 solves the problem.

Thanks for your help.

Regards.

Arthur
Comment 15 Alexander Kurtakov CLA 2014-04-07 04:42:57 EDT
I would appreciate it if someone opens a bug againts libscrollbar-overlay at ubuntu bug tracking system as there is close to nothing to be done on swt side. 
The only thing I can think of is setting the env variable in equinox launcher to make sure that eclipse always run with scrollbar overlays disabled.
Comment 16 Marc-André Laperle CLA 2014-04-07 07:47:43 EDT
(In reply to Alexander Kurtakov from comment #15)
> I would appreciate it if someone opens a bug againts libscrollbar-overlay at
> ubuntu bug tracking system as there is close to nothing to be done on swt
> side. 

Alexander, I opened a bug and will attempt to fix it on the Ubuntu side.
https://bugs.launchpad.net/overlay-scrollbar/+bug/1303758

(In reply to Alexander Kurtakov from comment #15)
> The only thing I can think of is setting the env variable in equinox
> launcher to make sure that eclipse always run with scrollbar overlays
> disabled.

I think that might be a good idea. But I don't know how everyone feels about the overlay-scrollbars, perhaps some people like it. I think it should still be possible to force it on for them. So I think it would make sense to only force it off it the environment variable is not already defined.
Comment 17 Marc-André Laperle CLA 2014-04-07 07:48:58 EDT
*** Bug 420771 has been marked as a duplicate of this bug. ***
Comment 18 Alexander Kurtakov CLA 2014-04-07 07:58:29 EDT
(In reply to Marc-Andre Laperle from comment #16)
> (In reply to Alexander Kurtakov from comment #15)
> > I would appreciate it if someone opens a bug againts libscrollbar-overlay at
> > ubuntu bug tracking system as there is close to nothing to be done on swt
> > side. 
> 
> Alexander, I opened a bug and will attempt to fix it on the Ubuntu side.
> https://bugs.launchpad.net/overlay-scrollbar/+bug/1303758
> 
> (In reply to Alexander Kurtakov from comment #15)
> > The only thing I can think of is setting the env variable in equinox
> > launcher to make sure that eclipse always run with scrollbar overlays
> > disabled.
> 
> I think that might be a good idea. But I don't know how everyone feels about
> the overlay-scrollbars, perhaps some people like it. I think it should still
> be possible to force it on for them. So I think it would make sense to only
> force it off it the environment variable is not already defined.

I am not able to test such change so someone must step in and propose such change. I can only point to a place where such thing might be a good fit - take a look at http://git.eclipse.org/c/equinox/rt.equinox.framework.git/tree/features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkInit.c#n103 .
Comment 19 Marc-André Laperle CLA 2014-04-07 09:30:58 EDT
Patch to disable overlay-scrollbar by default:
https://git.eclipse.org/r/#/c/24545/
Comment 20 Alexander Kurtakov CLA 2014-04-07 09:46:12 EDT
Reassigned to equinox.launchers for consideration of the patch.
Comment 21 Arun Thondapu CLA 2014-04-07 14:35:25 EDT
*** Bug 432116 has been marked as a duplicate of this bug. ***
Comment 22 Christian Frommeyer CLA 2014-04-08 16:02:32 EDT
*** Bug 432108 has been marked as a duplicate of this bug. ***
Comment 23 Marc-André Laperle CLA 2014-04-11 18:36:27 EDT
The launcher patch was merged so marking as "fixed" (worked around really).
Comment 24 Arun Thondapu CLA 2014-04-14 17:37:26 EDT
The rebuilt launcher binaries are committed - https://git.eclipse.org/c/equinox/rt.equinox.binaries.git/commit/?id=332c87e5ef36644994b776fbc826965a5737a0db
Comment 25 Arun Thondapu CLA 2014-04-15 14:33:11 EDT
Verified the fix in the latest I-build I20140415-0800.
Comment 26 Marc-André Laperle CLA 2014-05-26 10:39:26 EDT
*** Bug 429385 has been marked as a duplicate of this bug. ***
Comment 27 Lars Vogel CLA 2014-09-23 13:44:23 EDT
(In reply to Lars Vogel from comment #0)
> The PDE "Extension" tab stays empty if I try to add a new extension. If I
> start Eclipse with export SWT_GTK3=0 the list is visible. I attach two
> screenshots.

Work fine with Build id: N20140922-2000 if I specify export LIBOVERLAY_SCROLLBAR=1 on Ubuntu 14.04. Has this been fixed in SWT for Mars?
Comment 28 Marc-André Laperle CLA 2014-09-23 13:55:37 EDT
(In reply to Lars Vogel from comment #27)
> (In reply to Lars Vogel from comment #0)
> > The PDE "Extension" tab stays empty if I try to add a new extension. If I
> > start Eclipse with export SWT_GTK3=0 the list is visible. I attach two
> > screenshots.
> 
> Work fine with Build id: N20140922-2000 if I specify export
> LIBOVERLAY_SCROLLBAR=1 on Ubuntu 14.04. Has this been fixed in SWT for Mars?

I don't think so, I still see the problem when adding an extension and also in Installation Details > Installation History for example. You did set SWT_GTK3=1 explicitly as well, right? That's necessary on Ubuntu 14.04 (GTK 3.10 is not white listed to be used by Eclipse).
Comment 29 Lars Vogel CLA 2014-09-23 14:33:32 EDT
(In reply to Marc-Andre Laperle from comment #28)
> I don't think so, I still see the problem when adding an extension and also
> in Installation Details > Installation History for example. You did set
> SWT_GTK3=1 explicitly as well, right? That's necessary on Ubuntu 14.04 (GTK
> 3.10 is not white listed to be used by Eclipse).

Thanks, indeed if I use export SWT_GTK3=1, the table gets empty. This bug is marked as fixed. Do we have a bug report for the root cause of this issue?
Comment 30 Marc-André Laperle CLA 2014-09-23 14:43:47 EDT
(In reply to Lars Vogel from comment #29)
> (In reply to Marc-Andre Laperle from comment #28)
> > I don't think so, I still see the problem when adding an extension and also
> > in Installation Details > Installation History for example. You did set
> > SWT_GTK3=1 explicitly as well, right? That's necessary on Ubuntu 14.04 (GTK
> > 3.10 is not white listed to be used by Eclipse).
> 
> Thanks, indeed if I use export SWT_GTK3=1, the table gets empty. This bug is
> marked as fixed. Do we have a bug report for the root cause of this issue?

There is a bug report on Ubuntu's side:
https://bugs.launchpad.net/overlay-scrollbar/+bug/1303758

Keep in mind that there are other issues about the overlay-scrollbars so I wouldn't re-enable them by default just yet:

- Stack overflows in overlay-scrollbar:
https://bugs.launchpad.net/bugs/789123 (with patch)

- Crash in Webkit that is Ubuntu specific and seems to be a bug on the Webkit side when using the overlay-scrollbar:
https://bugs.webkit.org/show_bug.cgi?id=129784 (with patch)

- Use of a scrollbar as a slider: it's not visible when it's the only child in a container, see:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=368929
https://bugs.eclipse.org/bugs/show_bug.cgi?id=384763
https://bugs.launchpad.net/overlay-scrollbar/+bug/1188831 (with patch)
Comment 31 Paul Gestwicki CLA 2014-10-22 15:35:09 EDT
I see that this is marked as verified fixed, but I am still experiencing this error. I am running Mint 17 KDE, 64-bit, everything up-to-date.

If I run Eclipse Luna as-is, it crashes on opening the Preferences->Appearance tab.

If I run Eclipse Luna with SWT_GTK3=1, it does not crash, but my tables are empty (e.g. Installation Details). This happens whether or not I specify LIB_OVERLAY_SCROLLBAR to 0 or 1 and UBUNTU_MENUPROXY to 0 or 1.

The above behaviors are the same when I run the Mars M2 and the 20141021 nightly, both crashing on default settings and having empty tables when using SWT_GTK3=1.
Comment 32 Marc-André Laperle CLA 2014-10-22 16:53:53 EDT
(In reply to Paul Gestwicki from comment #31)
> If I run Eclipse Luna with SWT_GTK3=1, it does not crash, but my tables are
> empty (e.g. Installation Details). This happens whether or not I specify
> LIB_OVERLAY_SCROLLBAR to 0 or 1 and UBUNTU_MENUPROXY to 0 or 1.

It's LIBOVERLAY_SCROLLBAR not LIB_OVERLAY_SCROLLBAR. If that doesn't work, could you create a new bug? It sounds like a different issue. Also it would be good to include your gtk2 and gtk3 versions. Thanks!
Comment 33 Andrey Loskutov CLA 2014-12-29 10:47:27 EST
For people on the CC who still see the problem on the latest Eclipse builds: most likely you are using KDE desktop with oxygen-gtk theme and so hitting bug 432673 like me. :-(
Comment 34 Marc-André Laperle CLA 2015-01-07 16:43:13 EST
(In reply to Marc-Andre Laperle from comment #23)
> The launcher patch was merged so marking as "fixed" (worked around really).

The fix doesn't work in the case when no splash is shown so the patch is incomplete. I opened bug 454299.