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

Bug 319430

Summary: [GTK] ToolTip leaves a black box when scrolling
Product: [Eclipse Project] Platform Reporter: jkuglics
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, eclipse.org, ericwill, loskutov, marens, markus.kell.r, ndjensen, remy.suen, rgansevles, volovyan
Version: 3.6Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
tooltip before
none
black rectangle after none

Description jkuglics CLA 2010-07-09 16:32:40 EDT
Build Identifier: 20100617-1415

ToolTips work correctly until I scroll up or down while viewing one.  A block box will be left in its place after scrolling. Screen: http://img534.imageshack.us/content_round.php?page=done&l=img534/7931/screenshot1fwu.png

Reproducible: Always

Steps to Reproduce:
1. Make a tooltip appear
2. Use scroller on mouse to scroll up or down
Comment 1 jkuglics CLA 2010-07-09 17:35:29 EDT
(In reply to comment #0)
> Build Identifier: 20100617-1415
> 
> ToolTips work correctly until I scroll up or down while viewing one.  A block
> box will be left in its place after scrolling. Screen:
> http://img534.imageshack.us/content_round.php?page=done&l=img534/7931/screenshot1fwu.png
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. Make a tooltip appear
> 2. Use scroller on mouse to scroll up or down

I forgot to mention that the OS I'm using is openSUSE 11.2 with GNOME.
Comment 2 Prakash Rangaraj CLA 2010-07-29 04:56:16 EDT
Moving to JDT UI.
Comment 3 Dani Megert CLA 2010-07-29 05:13:18 EDT
Can you please attach the images directly to this bug?
Also, can you attach a picture of the hover before it goes black?

SWT fixed a similar bug for Ubuntu (see bug 309907).
Comment 4 Markus Keller CLA 2010-07-29 08:38:45 EDT
*** Bug 305321 has been marked as a duplicate of this bug. ***
Comment 5 François Rey CLA 2011-02-08 11:47:33 EST
I'm also having this issue with JDT on:
Arch Linux 64 bit
KDE 4.6
Oracle 64bit JVM 1.6.0_23
Eclipse 3.6.1

See attached screenshots before and after.
This is really annoying for those of us using the mouse scroll wheel.
Thanks for looking in to this.
Comment 6 François Rey CLA 2011-02-08 11:48:02 EST
Created attachment 188533 [details]
tooltip before
Comment 7 François Rey CLA 2011-02-08 11:48:45 EST
Created attachment 188534 [details]
black rectangle after
Comment 8 Nate Jensen CLA 2014-01-03 13:34:42 EST
We are experiencing the same thing except instead of a black box it is a partial blue rectangle.

Platform: CentOS 6.4
gtk: 2.18.9
Eclipse: 3.8.2
Java: Oracle 1.7.0_40
Comment 9 Vladimir Olovyannikov CLA 2016-05-09 14:13:56 EDT
I ran into this issue today (never happened before).
On mouse hover (tooltip window appears) everything is fine until I start scrolling with mouse. Then the black rectangle hides the code in the tooltip. I have to select the code to be able to see the contents.

Platform: Ubuntu 14.04
Java version 1.8.0_77
Eclipse: Version: Mars.2 Release (4.5.2)
         Build id: 20160218-0600
Comment 10 Andrey Loskutov CLA 2016-05-09 14:23:16 EDT
Under KDE this can be fixed by disabling some extra animatons settings.
Comment 11 Vladimir Olovyannikov CLA 2016-05-09 14:42:35 EDT
Which settings should be disabled?
Also I have Eclipse Juno (Left from Android development tools), which does not have this issue.
Any idea how I could fix Mars 4.5 tooltip scrolling?
Both horizontal and vertical scrolling provide a black rectangle in the tooltip area leaving only couple of lines visible.
Thanks.
Comment 12 Vladimir Olovyannikov CLA 2016-05-10 17:21:37 EDT
My environment is Gnome. I could not find any settings to change which would help to eliminate the issue. It turns out not only a tooltip window, but also Macro expansion window, where scrolling left/right/up/down causes the black rectangle in the window showing only a couple of lines/columns. There are NO issues with Eclipse Juno, only with Mars. Unfortunately I cannot use Juno because it does not allow DS5 plugin installation...
Comment 13 Andrey Loskutov CLA 2016-05-11 02:41:19 EDT
(In reply to Vladimir Olovyannikov from comment #11)
> Which settings should be disabled?

I'm a KDE user, I know that Gnome does not allow that fine grained configuration, but try to find similar settings and play with them if you can.

Following settings need to be changed under KDE to avoid "black boxes" under tooltips on scrolling:

1) Desktop Effects -> General -> Various animations -> Off
2) Desktop Effects -> General -> Activation -> Enable Desktop Effects at Startup (!!!) 
3) Desktop Effects -> All Effects -> Blur -> Off
4) Desktop Effects -> All Effects -> Fade -> Off

In short, in my understanding, the black box thingy seem to appear if the window manager tries to render "funny" extra effects for the windows. Interestingly, I have to *enable* effects in general (see point 2 above) to make the black boxes disappear.
Comment 14 Vladimir Olovyannikov CLA 2016-05-11 12:42:02 EDT
Thanks for your points Andrey, but nothing helps...
Windows with scroll boxes (even when I invoke "Installation Details" dialog and click on a plugin with a long description) as soon as scrolling begins have a black rectangle. I uploaded the picture here: http://postimg.org/image/ceu6bdy01/
I did a fresh Eclipse installation using "Eclipse installer" once again, and everything was fine, I installed plugins and had no issues. However, after approx an hour of working I noticed some graphics "artifacts". After restarting Eclipse I have black rectangles on scrolling. Reverting back using "Installation History" does not help... I am on Ubuntu 14.04 and graphics card is ATI/AMD Radeon HD 7470, with X-ORG X Server (opensource). Removed Eclipse installation, then re-installed with "Eclipse Installer" - have black rectangles from beginning. Maybe installer saves something out of the folder Eclipse to be installed?
Anyway, any idea would be highly appreciated.
Comment 15 Vladimir Olovyannikov CLA 2016-05-11 17:40:10 EDT
By searching the Internet I found this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=431160
Added
--launcher.GTK_version
2
before vmargs in the eclipse.ini and the problem gone.

So this bug may have relation to the 431160.
Comment 16 Nate Jensen CLA 2016-05-16 13:06:12 EDT
I tried the suggestion of --launcher.GTK_version 2 and it didn't work for me.  Eclipse 4.5.1, CentOS 6, and gtk2.  I'll try again when I get to Eclipse 4.6.

Thanks for the suggestions.
Comment 17 Eric Williams CLA 2018-05-11 15:35:27 EDT
(In reply to Nathan Jensen from comment #16)
> I tried the suggestion of --launcher.GTK_version 2 and it didn't work for
> me.  Eclipse 4.5.1, CentOS 6, and gtk2.  I'll try again when I get to
> Eclipse 4.6.
> 
> Thanks for the suggestions.

This suggests the issue might be related to drivers/the OS, and not SWT.

I can't reproduce this issue: please re-open this ticket if you continue to experience it.
Comment 18 Nate Jensen CLA 2018-05-11 15:41:15 EDT
(In reply to Eric Williams from comment #17)
> (In reply to Nathan Jensen from comment #16)
> > I tried the suggestion of --launcher.GTK_version 2 and it didn't work for
> > me.  Eclipse 4.5.1, CentOS 6, and gtk2.  I'll try again when I get to
> > Eclipse 4.6.
> > 
> > Thanks for the suggestions.
> 
> This suggests the issue might be related to drivers/the OS, and not SWT.
> 
> I can't reproduce this issue: please re-open this ticket if you continue to
> experience it.

Sorry, I forgot about this.  It's not an issue on Eclipse 4.7.3 with CentOS 7.4 and gtk2, so some kind of upgrade fixed it.