Bug 428697 - [CSS] part tabs disappear
Summary: [CSS] part tabs disappear
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.2   Edit
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Target Milestone: 4.17 RC1   Edit
Assignee: Rolf Theunissen CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 445717 533569 534110 536158 (view as bug list)
Depends on:
Blocks: 563540
  Show dependency tree
 
Reported: 2014-02-20 18:42 EST by Farzi Pourmoetamed CLA
Modified: 2021-09-26 10:03 EDT (History)
9 users (show)

See Also:
Lars.Vogel: pmc_approved+


Attachments
tabs with default theme (121.83 KB, image/bmp)
2014-02-27 13:21 EST, Farzi Pourmoetamed CLA
no flags Details
Tabs after changing to Windows 7 Theme (51.88 KB, image/bmp)
2014-02-27 13:21 EST, Farzi Pourmoetamed CLA
no flags Details
Photon - video of editor tabs being disappearing (449.16 KB, video/mp4)
2018-04-30 15:35 EDT, chidveer chinthakuntla CLA
no flags Details
Photon - No theme - video of editor tabs being disappearing (341.17 KB, video/mp4)
2018-05-01 13:25 EDT, chidveer chinthakuntla CLA
no flags Details
Windows Mouse: Pointer-speed settings (56.36 KB, image/png)
2018-05-02 05:53 EDT, Niraj Modi CLA
no flags Details
Not only the tabs, but other GUI components are affected too (293.40 KB, image/png)
2018-06-22 11:31 EDT, Petr Haji269 CLA
no flags Details
Using Classic Appearance causes, that tabs are kept properly. (88.12 KB, image/png)
2018-06-22 12:17 EDT, Petr Haji269 CLA
no flags Details
Probably Memory Leak after change of Appearance from Dark to Classical. (39.85 KB, image/png)
2018-07-07 16:47 EDT, Petr Haji269 CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Farzi Pourmoetamed CLA 2014-02-20 18:42:18 EST
This is an intermittent problem that I have seen with one of my customers while he is using 2 different products I support: Rational Developer for System z (RDz) version 9.0.1 and Rational Developer for AIX and Linux (RDAL) version 9.0.1. Both of these products are built on top of eclipse 4.2. And this behaviour was not seen on earlier products that were based on eclipse 3.6.x:
1) In RDAL, sometimes the view (and it does not matter which views) in the workbench are invisible as if they have disappeared. But when you hover over the tabs that are visible, the disappeared tabs reappear.
2) When an action results in a dialog to pop up, some of the fields in the dialog appear to be missing or better, the dialog looks transparent. But when you hover over the dialog in different sections, all the fields are there and they re-appear.

I looked all different eclipse bugs to see if there is anything similar to it but cannot find. Please advise.
Comment 1 Paul Webster CLA 2014-02-24 09:02:20 EST
Is there anything in their error log when this happens?

It sounds like a painting problem.  What version/patch level of OS/windowing system does this customer have? Is their problem reproducible on multiple boxes?

PW
Comment 2 Farzi Pourmoetamed CLA 2014-02-26 19:59:57 EST
Unfortunately not, the error log was the first place I checked. They are using Windows 7 with service pack 1. They can reproduce it other machines in their environment but unfortunately, I do not have the same environment and cannot reproduce it. Originally when they reported the problem and I asked for a snapshot, they attempted to use the print screen to get the snapshot but the print screen would show the correct dialog and not the half transparent one. I even asked them to use a new workspace and that only delayed the problem from happening. I was hoping I could add a trace for a plugin in their environment to see what was happening.
Comment 3 Farzi Pourmoetamed CLA 2014-02-27 13:21:15 EST
Created attachment 240374 [details]
tabs with default theme
Comment 4 Farzi Pourmoetamed CLA 2014-02-27 13:21:47 EST
Created attachment 240375 [details]
Tabs after changing to Windows 7 Theme
Comment 5 Farzi Pourmoetamed CLA 2014-02-27 13:22:25 EST
But the customer does not change the tabs and only uses the default one so I cannot explain why the tabs disappear.
Comment 6 Farzi Pourmoetamed CLA 2014-02-27 13:26:26 EST
I double checked with the customer:
- He does not have any third party plugins
- Many other users see the same behaviour
- Tabs disappear often during the day
- And hovering over the missing ones shows them again.

I somehow can recreate it but not the way the customer does it. If I change the Tabs appearance Theme from the default which RationalIDE to for example Windows 7, that would require a restart. Most of the times, the restart shows all the tabs but sometimes, the restart would show only some of the tabs unless I hover over that area and then see the rest of the tabs.

Please note, the customer has not changed the appearance at all. This is just how I could recreate the same scenario.
Comment 7 Farzi Pourmoetamed CLA 2014-03-04 08:25:20 EST
The customer has also noticed that when this situation occurs, if he drags any other screen such as a word document, outlook, etc. over the top of the missing tab, and then remove it, the missing tabs reappear. I suspect the action for the move would force an event for the paint refresh and that is why it is working after doing such but any idea what to look for and how to resolve would really be appreciated.
Comment 8 Paul Webster CLA 2014-03-04 16:45:48 EST
Perhaps related to the CTabFolder rendering?

PW
Comment 9 Daniel Rolka CLA 2014-03-05 02:17:35 EST
(In reply to Paul Webster from comment #8)
> Perhaps related to the CTabFolder rendering?
> 
> PW

Yes, it might be involved with

Daniel
Comment 10 Daniel Rolka CLA 2014-03-05 02:22:39 EST
(In reply to Farzi Pourmoetamed from comment #7)
> The customer has also noticed that when this situation occurs, if he drags
> any other screen such as a word document, outlook, etc. over the top of the
> missing tab, and then remove it, the missing tabs reappear. I suspect the
> action for the move would force an event for the paint refresh and that is
> why it is working after doing such but any idea what to look for and how to
> resolve would really be appreciated.

Could you please verify whether problem still occurs in the build http://download.eclipse.org/eclipse/downloads/drops4/I20140304-0800/ or the incoming M6 one?

The considered builds contain some rendering change and hence the issue can be fixed

thanks,
Daniel
Comment 11 Farzi Pourmoetamed CLA 2014-03-05 11:49:46 EST
(In reply to Daniel Rolka from comment #10)
> (In reply to Farzi Pourmoetamed from comment #7)
> > The customer has also noticed that when this situation occurs, if he drags
> > any other screen such as a word document, outlook, etc. over the top of the
> > missing tab, and then remove it, the missing tabs reappear. I suspect the
> > action for the move would force an event for the paint refresh and that is
> > why it is working after doing such but any idea what to look for and how to
> > resolve would really be appreciated.
> 
> Could you please verify whether problem still occurs in the build
> http://download.eclipse.org/eclipse/downloads/drops4/I20140304-0800/ or the
> incoming M6 one?
> 
> The considered builds contain some rendering change and hence the issue can
> be fixed
> 
> thanks,
> Daniel

I assume this is a question for Paul as I cannot verify it with a later eclipse download (4.4 or incoming M6) because the product the customer is using is built on top of eclipse 4.2 and I would be able to verify when the product is built on top of a newer eclipse. Is there a bugzilla defect associated with the CTabFolder rendering?
Comment 12 Paul Webster CLA 2014-03-05 12:15:09 EST
(In reply to Farzi Pourmoetamed from comment #11)
> 
> I assume this is a question for Paul as I cannot verify it with a later
> eclipse download (4.4 or incoming M6) because the product the customer is
> using is built on top of eclipse 4.2 and I would be able to verify when the
> product is built on top of a newer eclipse.

This was targetted at you.  We are only actively working on 4.4 (Luna) now and we can only test reproducible scenarios that are reproducible on the Eclipse Classic SDK (as found at http://download.eclipse.org/eclipse/downloads ).  If you have some proprietary setup that reproduces the problem the bulk of the debugging would fall to you.

PW
Comment 13 Dani Megert CLA 2018-04-27 13:03:28 EDT
*** Bug 445717 has been marked as a duplicate of this bug. ***
Comment 14 Dani Megert CLA 2018-04-27 13:03:42 EDT
*** Bug 534110 has been marked as a duplicate of this bug. ***
Comment 15 Dani Megert CLA 2018-04-27 13:05:27 EDT
(In reply to Dani Megert from comment #14)
> *** Bug 534110 has been marked as a duplicate of this bug. ***

Can you reproduce with http://download.eclipse.org/eclipse/downloads/drops4/I20180426-2000/ and a new workspace (don't switch to Dark theme)?
Comment 16 chidveer chinthakuntla CLA 2018-04-30 15:35:10 EDT
Created attachment 273868 [details]
Photon - video of editor tabs being disappearing

I think they can't test-out in photon becz they must be using a custom built plugin an base-eclipse.
I used photon-M6 for this video.
Comment 17 Dani Megert CLA 2018-05-01 08:36:07 EDT
(In reply to chidveer chinthakuntla from comment #16)
> Created attachment 273868 [details]
> Photon - video of editor tabs being disappearing
> 
> I think they can't test-out in photon becz they must be using a custom built
> plugin an base-eclipse.
> I used photon-M6 for this video.

The video shows the Dark theme. Can you try with a complete new workspace and don't switch to the Dark theme?
Comment 18 chidveer chinthakuntla CLA 2018-05-01 13:25:42 EDT
Created attachment 273875 [details]
Photon - No theme - video of editor tabs being disappearing

used photon M6, new workspace, no theme changes.
Still very easy to reproduce.
Comment 19 Niraj Modi CLA 2018-05-02 05:53:35 EDT
Created attachment 273882 [details]
Windows Mouse: Pointer-speed settings

Tried this issue:
- It's not easily reproducible, we need to move the mouse very fast. May be something to do with mouse speed as well, I tried with maximum mouse: "Pointer speed" to reproduce this issue in Eclipse.(sharing screen shot for reference for Windows settings)
- Also the issue is not seen with plain CTabFolder example snippet like CustomControlExample.java in SWT, problem seems specific to Eclipse only.
Comment 20 chidveer chinthakuntla CLA 2018-05-02 15:10:24 EDT
(In reply to Niraj Modi from comment #19)
> Created attachment 273882 [details]
> Windows Mouse: Pointer-speed settings
> 
> Tried this issue:
> - It's not easily reproducible, we need to move the mouse very fast. May be
> something to do with mouse speed as well, I tried with maximum mouse:
> "Pointer speed" to reproduce this issue in Eclipse.(sharing screen shot for
> reference for Windows settings)
> - Also the issue is not seen with plain CTabFolder example snippet like
> CustomControlExample.java in SWT, problem seems specific to Eclipse only.

Woww
Did you watch the first video, in dark theme
"Photon - video of editor tabs being disappearing"  ???
See what happens between 10 to 12 seconds.

This happens even when you glide your mouse over the tabs.
Can't believe you can't reproduce it, can you attach a video ?

The guy who created this ticket was talking about what his client is seeing. Do you recommend them to change mouse settings ?
Comment 21 Niraj Modi CLA 2018-05-03 02:18:20 EDT
(In reply to chidveer chinthakuntla from comment #20)
> (In reply to Niraj Modi from comment #19)
> > Created attachment 273882 [details]
> > Windows Mouse: Pointer-speed settings
> > 
> > Tried this issue:
> > - It's not easily reproducible, we need to move the mouse very fast. May be
> > something to do with mouse speed as well, I tried with maximum mouse:
> > "Pointer speed" to reproduce this issue in Eclipse.(sharing screen shot for
> > reference for Windows settings)
> > - Also the issue is not seen with plain CTabFolder example snippet like
> > CustomControlExample.java in SWT, problem seems specific to Eclipse only.
> 
> Woww
> Did you watch the first video, in dark theme
> "Photon - video of editor tabs being disappearing"  ???
> See what happens between 10 to 12 seconds.
> 
> This happens even when you glide your mouse over the tabs.
> Can't believe you can't reproduce it, can you attach a video ?
> 
> The guy who created this ticket was talking about what his client is seeing.
> Do you recommend them to change mouse settings ?
Just to clarify what I said:
Issue is reproducible(not easily but when we move the mouse very fast) in Eclipse CTabFolders and not with plain SWT's CTabFolder based example.
So, very likely the problem lies with CSS engine component.
Comment 22 chidveer chinthakuntla CLA 2018-05-04 01:20:09 EDT
(In reply to Niraj Modi from comment #21)
> (In reply to chidveer chinthakuntla from comment #20)
> > (In reply to Niraj Modi from comment #19)
> > > Created attachment 273882 [details]
> > > Windows Mouse: Pointer-speed settings
> > > 
> > > Tried this issue:
> > > - It's not easily reproducible, we need to move the mouse very fast. May be
> > > something to do with mouse speed as well, I tried with maximum mouse:
> > > "Pointer speed" to reproduce this issue in Eclipse.(sharing screen shot for
> > > reference for Windows settings)
> > > - Also the issue is not seen with plain CTabFolder example snippet like
> > > CustomControlExample.java in SWT, problem seems specific to Eclipse only.
> > 
> > Woww
> > Did you watch the first video, in dark theme
> > "Photon - video of editor tabs being disappearing"  ???
> > See what happens between 10 to 12 seconds.
> > 
> > This happens even when you glide your mouse over the tabs.
> > Can't believe you can't reproduce it, can you attach a video ?
> > 
> > The guy who created this ticket was talking about what his client is seeing.
> > Do you recommend them to change mouse settings ?
> Just to clarify what I said:
> Issue is reproducible(not easily but when we move the mouse very fast) in
> Eclipse CTabFolders and not with plain SWT's CTabFolder based example.
> So, very likely the problem lies with CSS engine component.

Thanks for the clarification.
Out of Curiosity...
It seems like since "Luna release" onwords eclipse is a bit slow and using some new GUI system.
Is it even possible to add a configuration to switch to old UI engine ?
As, it been a while and it is still at bleeding-edge.
Comment 23 Andrey Loskutov CLA 2018-06-08 16:32:25 EDT
*** Bug 533569 has been marked as a duplicate of this bug. ***
Comment 24 chidveer chinthakuntla CLA 2018-06-09 09:02:57 EDT
i think if we comment the CTabFolder part in setFont, it might work.

org.eclipse.e4.ui.css.swt.properties.css2.CSSPropertyFontSWTHandler.setFont(Widget, Font)

              else if (widget instanceof CTabFolder) {
			CTabFolder folder = (CTabFolder) widget;
			CSSSWTFontHelper.setFont(folder, font);
			updateChildrenFonts(folder, font);
		}

can i get some direction on the docs for building and running the org.eclipse.e4.ui.css.swt project.
Comment 25 Dani Megert CLA 2018-06-22 05:14:14 EDT
*** Bug 536158 has been marked as a duplicate of this bug. ***
Comment 26 Petr Haji269 CLA 2018-06-22 10:45:15 EDT
(In reply to Dani Megert from comment #25)
> *** Bug 536158 has been marked as a duplicate of this bug. ***

Some people are in doubt, another say, that it is needed to move mouse quickly. It is not needed to move cursor so much quckly as visible from this video. This is real speed: https://youtu.be/uxylksr8Q34. But i can mimic this disappearing only one monitor (Asus ZenScreen) from three. The driver and OS - Windows is same. It looks like, that even if it is programming bug, it is HW dependent. It can come  from thread management?
Comment 27 Petr Haji269 CLA 2018-06-22 11:31:02 EDT
Created attachment 274588 [details]
Not only the tabs, but other GUI components are affected too

The indication bad behavior are short white crossing out lines over the standard components for minimizing/maximizing.
Comment 28 Petr Haji269 CLA 2018-06-22 12:17:15 EDT
Created attachment 274589 [details]
Using Classic Appearance causes, that tabs are kept properly.
Comment 29 Petr Haji269 CLA 2018-06-22 12:39:17 EDT
(In reply to Petr Haji269 from comment #28)
> Created attachment 274589 [details]
> Using Classic Appearance causes, that tabs are kept properly.

This is a workaround (tested on Windows 10, Eclipse Oxygen). Tabs are kept on his place, only shadows in some views are damaged. Rather than shadows, there are stripes.
Tested themes:
-- Classical, relativelly best - only shadows appearance problem
-- Windows Classical - worse, tabs disappears, visible unrecognized lines
-- Dark - worst, tabs are duplicated, lines, vertical strip noise etc..
Comment 30 Andrey Loskutov CLA 2018-06-22 13:38:20 EDT
(In reply to Petr Haji269 from comment #29)
> (In reply to Petr Haji269 from comment #28)
> > Created attachment 274589 [details]
> > Using Classic Appearance causes, that tabs are kept properly.
> 
> This is a workaround (tested on Windows 10, Eclipse Oxygen). Tabs are kept
> on his place, only shadows in some views are damaged. Rather than shadows,
> there are stripes.
> Tested themes:
> -- Classical, relativelly best - only shadows appearance problem
> -- Windows Classical - worse, tabs disappears, visible unrecognized lines
> -- Dark - worst, tabs are duplicated, lines, vertical strip noise etc..

Have you tried to *disable* themes?
Comment 31 Petr Haji269 CLA 2018-06-23 09:28:07 EDT
To be able mimic this appearance we need to install Eclipse Color Theme. Tested on ver. 1.0.0.
(In reply to Petr Haji269 from comment #27)
> Created attachment 274588 [details]
> Not only the tabs, but other GUI components are affected too
> 
> The indication bad behavior are short white crossing out lines over the
> standard components for minimizing/maximizing.
Comment 32 Petr Haji269 CLA 2018-06-23 09:40:34 EDT
(In reply to Andrey Loskutov from comment #30)
> (In reply to Petr Haji269 from comment #29)
> > (In reply to Petr Haji269 from comment #28)
> > > Created attachment 274589 [details]
> > > Using Classic Appearance causes, that tabs are kept properly.
> > 
> > This is a workaround (tested on Windows 10, Eclipse Oxygen). Tabs are kept
> > on his place, only shadows in some views are damaged. Rather than shadows,
> > there are stripes.
> > Tested themes:
> > -- Classical, relativelly best - only shadows appearance problem
> > -- Windows Classical - worse, tabs disappears, visible unrecognized lines
> > -- Dark - worst, tabs are duplicated, lines, vertical strip noise etc..
> 
> Have you tried to *disable* themes?

In comment #26 is used clean installation without any themes. I read the issues of the contributors before me and there is notice about Dark Theme. So and tried to install "Eclipse Color Theme" to check if it will be better or worse. As you can read above, the behavior very significantly depends on type of the theme. The workaroud is based on "Eclipse Color Theme" 1.0.0. - Classical.
Comment 33 chidveer chinthakuntla CLA 2018-06-23 22:00:07 EDT
(In reply to Andrey Loskutov from comment #30)
> (In reply to Petr Haji269 from comment #29)
> > (In reply to Petr Haji269 from comment #28)
> > > Created attachment 274589 [details]
> > > Using Classic Appearance causes, that tabs are kept properly.
> > 
> > This is a workaround (tested on Windows 10, Eclipse Oxygen). Tabs are kept
> > on his place, only shadows in some views are damaged. Rather than shadows,
> > there are stripes.
> > Tested themes:
> > -- Classical, relativelly best - only shadows appearance problem
> > -- Windows Classical - worse, tabs disappears, visible unrecognized lines
> > -- Dark - worst, tabs are duplicated, lines, vertical strip noise etc..
> 
> Have you tried to *disable* themes?

Is there a way to annotate some Service class as disabled (or) config in Osgi config file ?
Comment 34 Dani Megert CLA 2018-06-25 04:02:19 EDT
(In reply to Petr Haji269 from comment #31)
> To be able mimic this appearance we need to install Eclipse Color Theme.
> Tested on ver. 1.0.0.

So, without that plug-in it works?
Comment 35 Petr Haji269 CLA 2018-06-25 04:39:28 EDT
(In reply to Dani Megert from comment #34)
> (In reply to Petr Haji269 from comment #31)
> > To be able mimic this appearance we need to install Eclipse Color Theme.
> > Tested on ver. 1.0.0.
> 
> So, without that plug-in it works?

No. It is mentioned above. The tabs disappear even in the fresh installation.
Comment 36 Petr Haji269 CLA 2018-07-07 16:43:24 EDT
This bug is very closely binded with appearing/disappearing tooltips. On the Ubuntu linux, the same HW - NUC-7i7BNH and Asus display, there are Tabs visible, not disappear, but there are not visible Tooltips, punctually they are no readable - they are blink only for very short time.
When i click on any Tab, after changes in Appearance - from Dark to Classical, there is memory leak - Problem occured. It is proofed by the text, which is in Czech language - it was last one copy - paste in clipboard, completelly independend (copied text in Firefox). There is pic. in attachements.
Comment 37 Petr Haji269 CLA 2018-07-07 16:47:34 EDT
Created attachment 274875 [details]
Probably Memory Leak after change of Appearance from Dark to Classical.

After click on any Tab.
Comment 38 Mike Marchand CLA 2019-02-04 13:25:47 EST
Still seeing this issue on SimRel 2018-12
Comment 39 Rolf Theunissen CLA 2020-08-14 05:45:06 EDT
I just observed (on Eclipse 2020-09M2) that multiple tabs disappeared.

My mouse was hovering over the tabs, at the same time a notification popup of a totally unrelated application (Microsoft Teams) appeared in the bottom right of the screen. All tabs that I happened to hover over disappeared.

Generally, seeing the issue regularly and indeed seems related to the tooltip too.
Comment 40 Rolf Theunissen CLA 2020-08-15 09:20:02 EDT
As already mentioned in Bug 563345 Comment 1 and bug 563345 Comment, the issue is caused by a clipping what has sometimes a height and a width of 0. If this is the case, the foreground will not be painted in CTabFolder.

Somehow the clipping is wrong when the mouse goes over the close 'cross' of a tab next to it just before or just after the going over the tab.
This can be triggered by moving the mouse quickly diagonal over the tab, and just hitting the corner of the tab before it. With square tabs this is triggered even easier (see Bug 563345). But after the fix of Bug 563345 it can still be triggered on square tabs.

Fix/workaround is to reset the clipping before drawing the tabs.
Comment 41 Eclipse Genie CLA 2020-08-15 09:23:54 EDT
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/167732