Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 384503 - Tooltips are not shown on RHEL 5.8
Summary: Tooltips are not shown on RHEL 5.8
Status: CLOSED DUPLICATE of bug 384725
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.8   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 386494 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-07-06 15:12 EDT by Andrey Loskutov CLA
Modified: 2012-08-02 15:24 EDT (History)
5 users (show)

See Also:


Attachments
Example project (2.35 KB, application/zip)
2012-07-25 14:30 EDT, Andrey Loskutov CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Loskutov CLA 2012-07-06 15:12:21 EDT
AS IS:
On RHEL 5.8 64 bit Eclipse 3.8.0 has no tooltips on the main toolbar. Most likely they are not available at all (I have no access to my RHEL desktop now). Last time we saw tooltips were 3.7.2 release :-(

TO BE:
There are tooltips on newer Linux distributions which were using newer GTK libraries (for example Ubuntu 12.04 is just fine). It would be nice however if the tooltips would be also shown on such ancient releases as RHEL 5.8.

Not sure what caused this regression. For the Tooltip class, there were few commits:
http://git.eclipse.org/c/platform/eclipse.platform.swt.git/log/bundles/org.eclipse.swt/Eclipse%20SWT/gtk/org/eclipse/swt/widgets/ToolTip.java

and root causes could be those changes: bug 369149, bug 369150 and bug 364760.
Of course it could be also caused by the shift to the GTK3 stack (see work in the bug 340067).
Comment 1 Lakshmi P Shanmugam CLA 2012-07-09 03:12:49 EDT
(In reply to comment #0)
> AS IS:
> On RHEL 5.8 64 bit Eclipse 3.8.0 has no tooltips on the main toolbar.
What is the GTK version on it?
Comment 2 Andrey Loskutov CLA 2012-07-10 02:14:52 EDT
(In reply to comment #1)
> What is the GTK version on it?

$ rpm -q gtk2
gtk2-2.10.4-21.el5_7.7
Comment 3 Andrey Loskutov CLA 2012-07-16 11:21:00 EDT
$rpm -q cairo
cairo-1.2.4-5.el5
Comment 4 Andrey Loskutov CLA 2012-07-19 10:15:36 EDT
Correction: there are no tooltips for toolbar buttons only (both editor/view). 

There ARE tooltips for the minimize/maximize/close view/editor buttons and also for the CTabFolder (e.e. mouse hover over Package Explorer view title shows "Workspace" tooltip). Also ther is tooltip over the problems view description area ("x problems").
Comment 5 Andrey Loskutov CLA 2012-07-23 08:52:31 EDT
Just confirmed that the tooltips are *working* on RHEL 6.2:

rpm -q glibc pango cairo gtk2

glibc-2.12-1.47.el6.x86_64
pango-1.28.1-3.el6_0.5.x86_64
cairo-1.8.8-3.1.el6.x86_64
gtk2-2.18.9-6.el6.x86_64

Here are our 5.8 versions where tooltips are *not* working:

rpm -q glibc pango cairo gtk2
glibc-2.5-81
pango-1.14.9-8.el5_7.3
cairo-1.2.4-5.el5
gtk2-2.10.4-21.el5_7.7

I've also played a bit with Tooltip/Shell classes and tried to revert related commits / changes on 3.8 branch but with no luck. I guess I needed also to revert native bits in the OS class/native code.
Comment 6 Andrey Loskutov CLA 2012-07-25 14:30:49 EDT
Created attachment 219182 [details]
Example project

I've attached a small example project derived from http://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet18.java
(I've just set the extra tooltips on toolItem's).

On Centos 5.8 (should match our RHEL 5.8) if you hover with the mouse over the text items, no tooltips are shown. On Ubuntu 12.04 they are working fine.
Comment 7 Andrey Loskutov CLA 2012-07-25 14:32:14 EDT
@Anatoly: please see the attached Eclipse project. 
Thank you.
Comment 8 Anatoly Spektor CLA 2012-07-25 14:43:27 EDT
Ok, thanks. 

I'll take a look and let you know.

Regards,

Anatoly
Comment 9 Anatoly Spektor CLA 2012-07-26 12:08:05 EDT
To: Andrey Loskutov

  I have installed Red Hat 5.8 (as virtual machine).

  You can take a look at system stats:  http://oi49.tinypic.com/34ybfvl.jpg


  When I am running the Snippet you gave me I have this output:

  http://oi47.tinypic.com/2vsj1it.jpg  (When I hover on any button, Tooltip appear)

 If the problem you are having is connected with the Tooltip is not being visible when you hover on button, as you might see, unfortunately I am not able to reproduce the issue you are having. Thus, I could say that probably the problem is not in SWT code.

 If I misunderstood the issue, please let me know, I'll take a look again.

 Regards,

 Anatoly
Comment 10 Andrey Loskutov CLA 2012-07-26 13:49:54 EDT
(In reply to comment #9)

> If the problem you are having is connected with the Tooltip is not being
> visible when you hover on button, as you might see, unfortunately I am not able
> to reproduce the issue you are having.

Thanks Anatoly, this is *very* interesting.

Which SWT version/Eclipse version have you tried?

I've tried stock 3.8 classic 64 bit GTK2 package (eclipse-SDK-3.8-linux-gtk-x86_64.tar.gz) from [1] on both our office 5.8 RHEL and stock CentOS 5.8, and in both I was not able to see tooltips.

> Thus, I could say that probably the
> problem is not in SWT code.

We first saw the problem with SWT on Eclipse 3.8.0, Eclipse 3.7.2 has no problems on same system.

[1] http://download.eclipse.org/eclipse/downloads/drops/R-3.8-201206081200/
Comment 11 Anatoly Spektor CLA 2012-07-26 14:11:24 EDT
Hey Andrey,

Thank you for reminding me, I totally forgot to include this image:

http://oi49.tinypic.com/9aa8vq.jpg

As you might see I am using Eclipse 3.8 classic and it works fine for me.


Regards,

Anatoly
Comment 12 Anatoly Spektor CLA 2012-07-26 14:12:46 EDT
In addition:


 I am on 64-bit RHEL.

eclipse-SDK-3.8-linux-gtk-x86_64.tar.gz  -> is the exact file that I used.
Comment 13 Andrey Loskutov CLA 2012-07-26 14:49:59 EDT
(In reply to comment #12)
>  I am on 64-bit RHEL.
> eclipse-SDK-3.8-linux-gtk-x86_64.tar.gz  -> is the exact file that I used.

I'm stumped now. It is not that I'm alone - none of our devs tried 3.8.0 Eclipse can see tooltips, so it can't be just my local issue. Also "stock" CentOs in the VM has no tooltips, so I can't dream.

@Anatoly - just paranoia - do you use KDE as desktop, or Gnome? We are using KDE. 
Do you have something special settings/extra packages on your RHEL? Any idea?
Comment 14 Anatoly Spektor CLA 2012-07-26 15:54:14 EDT
@Andrey - this is not a paranoia, this is actually very reasonable question, because KDE and Gnome has some differences. 

For example you cannot draw on KDE's root window, but you can draw on Gnome's (even considering that it is bad practice).

I was testing on Gnome, as I don't usually use KDE. If it is Gnome-KDE related issue it will be hard for me to say what the problem is, as there could be something very  "dekstop" specific. 

Anyways, tomorrow I'll set up KDE on my Virtual Machine, and I'll try running  Snippet again.

I will let you know how it goes.


Regards,

Anatoly
Comment 15 Andrey Loskutov CLA 2012-07-26 16:57:00 EDT
(In reply to comment #14)
> I was testing on Gnome, as I don't usually use KDE. If it is Gnome-KDE related
> issue it will be hard for me to say what the problem is, as there could be
> something very  "dekstop" specific. 

I've just installed Gnome inside my CentOS VM and ... nothing changed. I still can't see tooltips for editor/view buttons, only for view/editor titles etc. What is specific for the Toolbar's items? Why only those can't show tooltips, while other widgets seem to work just fine?
 
> Anyways, tomorrow I'll set up KDE on my Virtual Machine, and I'll try running 
> Snippet again.
> 
> I will let you know how it goes.

Thank you very much.
Comment 16 Anatoly Spektor CLA 2012-07-27 10:14:11 EDT
To: Andrey Loskutov

 I have tested Tooltip issue in KDE.

 Take a look here: http://oi46.tinypic.com/2i9qi9z.jpg (sorry for quality of photo, it is hard to take snapshot of Tooltip :) ) 

  As you might see, there are Tooltips for me in KDE too. Thus, I am totally out of ideas why this particular feature does not work for you. 

   I don't have any plugins in my Eclipse, I just installed fresh version specially for this case.

 Also, I can't say what exactly is so specific for Toolbar. Toolbar belongs to widget group the same as Tooltip and Shell. Of course implementation is different,but again, considering that this works for my Virtual Machine, I am not 100% sure that problem is in SWT code. First I thought maybe there is some wrong GTK_VERSION guard, but its not.



 I have asked one of my co-workers what else to try regarding this issue, and he suggested that maybe you should try this:

 Plan A:

 a. Open terminal run 'export GDK_NATIVE_WINDOWS=1'
 b. Try running eclipse from the same Terminal

 Plan B:

  Open terminal, go to eclispe folder run:

  ./eclipse -Dorg.eclipse.swt.internal.gtk.cairoGraphics=false
-Dorg.eclipse.swt.internal.gtk.useCairo=false


  This is probably the only thing I can advice you in this situation, if it does not work, I don't know what else to add. 

  Regards,


  Anatoly
Comment 17 Anatoly Spektor CLA 2012-07-27 10:43:58 EDT
To: Andrey Loskutov


   You could also try enabling/disabling accessibility, maybe that could help.
Comment 18 Andrey Loskutov CLA 2012-07-27 13:51:04 EDT
(In reply to comment #16)
>    I don't have any plugins in my Eclipse, I just installed fresh version
> specially for this case.

Same. I even installed CentOS in the VM from scratch - no changes - no tooltips on toolbars.
 
>  Also, I can't say what exactly is so specific for Toolbar. Toolbar belongs to
> widget group the same as Tooltip and Shell. Of course implementation is
> different,but again, considering that this works for my Virtual Machine, I am
> not 100% sure that problem is in SWT code. First I thought maybe there is some
> wrong GTK_VERSION guard, but its not.

Obviously the problem starts to appear for us with the new Eclipse/SWT version (3.8). 3.7.2 works in same environment, so it must be SWT related.

>  Plan A:
> 
>  a. Open terminal run 'export GDK_NATIVE_WINDOWS=1'
>  b. Try running eclipse from the same Terminal

No changes.
 
>  Plan B:
> 
>   Open terminal, go to eclispe folder run:
> 
>   ./eclipse -Dorg.eclipse.swt.internal.gtk.cairoGraphics=false
> -Dorg.eclipse.swt.internal.gtk.useCairo=false

No changes.
 
>   This is probably the only thing I can advice you in this situation, if it
> does not work, I don't know what else to add. 

I see. Just out of curiosity: which VM are you using to run RHEL 5.8, and which graphic card driver is used for it? I'm using Virtual Box 4.1.18 with guest additions on 64 bit Ubuntu. I've tried both with/without 3D acceleration, no changes.

>    You could also try enabling/disabling accessibility, maybe that could help.

It was disabled, I've enabled it but didn't show any changes.
Comment 19 Brian de Alwis CLA 2012-08-02 11:38:21 EDT
I see this on CentOS 5.8 and some other developers on RHEL 5.6 and RHEL 5.8 see it too.  I'm running within VMWare Fusion 4.03 on MacOS X.  The other developers are running on a native installation.
Comment 20 Silenio Quarti CLA 2012-08-02 12:44:41 EDT
This bug has already been fixed in 4.2.1/3.8.1 and 4.3. The changes for bug#384725  fixed it.  Anatoly, are you testing with the latest code from master? That is probably why we cannot reproduce it.

*** This bug has been marked as a duplicate of bug 384725 ***
Comment 21 Anatoly Spektor CLA 2012-08-02 13:31:31 EDT
Silenio, yeah I downloaded it after the bug you pointed out was fixed, so probably this explains everything.

Thanks for your response.

Regards,

Anatoly
Comment 22 Andrey Loskutov CLA 2012-08-02 13:39:41 EDT
(In reply to comment #21)
> Silenio, yeah I downloaded it after the bug you pointed out was fixed, so
> probably this explains everything.
> 
> Thanks for your response.
> 
> Regards,
> 
> Anatoly

@Anatoly: so you were NOT testing 3.8.0, but some of maintenance builds of 3.8.1?
Comment 23 Andrey Loskutov CLA 2012-08-02 14:08:01 EDT
Just verified that the latest available 3.8.1 maintenance build for Linux gtk2-64 (http://download.eclipse.org/eclipse/downloads/drops/M20120726-1000/download.php?dropFile=eclipse-SDK-M20120726-1000-linux-gtk-x86_64.tar.gz) still has no tooltips on stock CentOS 5.8.

Also please notice, that bug 384725 was open for Ubuntu 12.04, while I personally never ever seen ANY tooltip problems on exactly same Ubuntu version with any of 3.7/3.8 builds.

So as the issue still remains, I think this is most likely NOT a duplicate of the bug 384725.
Comment 24 Brian de Alwis CLA 2012-08-02 14:31:49 EDT
*** Bug 386494 has been marked as a duplicate of this bug. ***
Comment 25 Silenio Quarti CLA 2012-08-02 14:34:38 EDT
Sorry, there is no maintenance build yet which contains this fix. Even M20120802-1000 will not have it.  Only 3.8 maintenance builds with SWT version>=3834 will have it.

Please try a 4.3 build or wait until next week (Thursday) for a new maintenance build.

*** This bug has been marked as a duplicate of bug 384725 ***
Comment 26 Anatoly Spektor CLA 2012-08-02 14:35:18 EDT

Andrey I was using 3.8.0 Last revised June 5 2012. For some reason I thought that patch was pushed earlier than that. But you are actually right, I should have the same issue.
Comment 27 Andrey Loskutov CLA 2012-08-02 14:47:35 EDT
(In reply to comment #25)
> Sorry, there is no maintenance build yet which contains this fix. Even
> M20120802-1000 will not have it.  Only 3.8 maintenance builds with SWT
> version>=3834 will have it.
> 
> Please try a 4.3 build or wait until next week (Thursday) for a new
> maintenance build.
> 
> *** This bug has been marked as a duplicate of bug 384725 ***

Tested with latest available 4.3 build - it works, at lest on CentOS 5.8 (and I hope on RHEL too). Thanks.
BTW, why is there such a delay between commits and deployment as a build? Fix was committed on 2012-07-17, and will NOT be even in 2012-08-02?
Comment 28 Silenio Quarti CLA 2012-08-02 15:24:25 EDT
The truth is: we have not been able to do a build submission for 4.2.1 and 3.8.1
because there has not been many committers around due to summer vacations and other constraints.