Bug 438427 - [Perspectives] "Package Explorer" view duplicated (two tabs instead of one)
Summary: [Perspectives] "Package Explorer" view duplicated (two tabs instead of one)
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.3.1   Edit
Hardware: PC Windows 7
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: needinfo
: 438820 481375 488568 543432 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-06-27 13:58 EDT by Brandon Toms CLA
Modified: 2021-01-27 11:44 EST (History)
9 users (show)

See Also:


Attachments
Screenshot (22.96 KB, image/jpeg)
2014-06-27 14:02 EDT, Brandon Toms CLA
no flags Details
.log file (as requested) (777.32 KB, text/plain)
2014-06-27 14:09 EDT, Brandon Toms CLA
no flags Details
Duplicate Console and Progress Views (14.10 KB, image/png)
2019-01-16 16:16 EST, Nanda Malve CLA
no flags Details
.log entries showing Widget is disposed problems (14.77 KB, text/plain)
2019-02-05 05:38 EST, Mattias Bertilsson CLA
no flags Details
Screenshot showing duplicate views (94.07 KB, image/png)
2019-02-05 07:00 EST, Mattias Bertilsson CLA
no flags Details
Problematic CDT contributions (1.58 KB, text/plain)
2019-02-05 09:23 EST, Mattias Bertilsson CLA
no flags Details
Other org.eclipse*.ui entries in .log (1.02 KB, text/plain)
2019-02-05 09:37 EST, Mattias Bertilsson CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brandon Toms CLA 2014-06-27 13:58:22 EDT

    
Comment 1 Brandon Toms CLA 2014-06-27 14:02:36 EDT
Created attachment 244616 [details]
Screenshot
Comment 2 Paul Webster CLA 2014-06-27 14:03:14 EDT
Please provide steps to reproduce.

PW
Comment 3 Paul Webster CLA 2014-06-27 14:04:04 EDT
Also, can you attach your .log file?  http://wiki.eclipse.org/FAQ_Where_can_I_find_that_elusive_.log_file%3F
Comment 4 Brandon Toms CLA 2014-06-27 14:06:52 EDT
Steps to reproduce:

This didn't use to happen, but now if I close my workspace while Package Explorer is open and then reopen Eclipse, when it loads my workspace back up the Package Explorer tab is duplicated.  Also, clicking the X to close the tab behaves strangely:  Clicking one of the X's does nothing, clicking the other one closes both tabs.  When I go into the Views menu and open Package Explorer again, only one tab comes up.  But again, if I close Eclipse and reopen it then I have two tabs again.

I hope this helps, it's a very strange bug.
Comment 5 Brandon Toms CLA 2014-06-27 14:09:29 EDT
Created attachment 244617 [details]
.log file (as requested)
Comment 6 Paul Webster CLA 2014-06-27 14:15:23 EDT
Thanks Brandon.

PW
Comment 7 Paul Webster CLA 2014-07-03 09:30:41 EDT
*** Bug 438820 has been marked as a duplicate of this bug. ***
Comment 8 Dani Megert CLA 2019-01-15 05:03:24 EST
*** Bug 543432 has been marked as a duplicate of this bug. ***
Comment 9 Dani Megert CLA 2019-01-15 05:03:29 EST
*** Bug 481375 has been marked as a duplicate of this bug. ***
Comment 10 Dani Megert CLA 2019-01-15 05:03:33 EST
*** Bug 488568 has been marked as a duplicate of this bug. ***
Comment 11 Nanda Malve CLA 2019-01-16 16:16:07 EST
Created attachment 277178 [details]
Duplicate Console and Progress Views

Duplicate Console and Progress Views
Comment 12 Andrey Loskutov CLA 2019-01-20 12:15:47 EST
(In reply to Nanda Malve from comment #11)
> Created attachment 277178 [details]
> Duplicate Console and Progress Views

Which Eclipse version is used, do you see any errors in the log, and do you have steps to reproduce?
Comment 13 Ricardo Bochnia CLA 2019-01-20 12:23:37 EST
This issue occurs in eclipse 2018-12 and earlier versions. The error log view does not show any errors. Which eclipse log files should I check for errors? I could check them tomorrow.
Comment 14 Andrey Loskutov CLA 2019-01-20 12:25:00 EST
Error log view is enough. Better would be to have steps to reproduce.
Comment 15 Andrey Loskutov CLA 2019-01-20 12:27:53 EST
This reminds me about bug 410164, but there we had errors in the log.
Comment 16 Ricardo Bochnia CLA 2019-01-20 12:37:38 EST
I don't know how this bug is triggered. But if I recall correctly if the workspace is opened with a brand-new eclipse (java version) the issue does not occur.
Comment 17 Mattias Bertilsson CLA 2019-02-05 05:27:07 EST
I'm seeing this frequently with 2018-12 (platform 4.10.0).

It happens for instance when I open a view using the Quick Access, and I am not happy with the area initially selected for the view and move the tab and drop it in another area. Usually, two instances of the view are then created in that area, but sometimes the view remains in the previous location *and* appears in the new area.

It seems to be a rendering problem (not actually two separate views), since when I close one the other disappears as well.

No errors are logged when this happens, but I do have a couple of earlier "Widget is disposed" that seem to be caused by org.eclipse.e4.ui.* code. I will attach those.

The platform I am testing on is Fedora 28 (x86_64), Oracle OpenJDK 11.0.2, GTK 3.22.30.

There are a lot of "Gtk-CRITICAL" printouts on the console (occurrences of https://bugs.eclipse.org/bugs/show_bug.cgi?id=538000 and https://bugs.eclipse.org/bugs/show_bug.cgi?id=491855). I was under the impression that these are relatively harmless, so I doubt that they are related to this problem.  

I also wonder if the recently reported bugs on this problem are really duplicates of this bug against 4.3.1. I have been using 4.3-4.5 extensively with none of these problems. With 4.10 it seems to happen "all the time".
Comment 18 Mattias Bertilsson CLA 2019-02-05 05:38:13 EST
Created attachment 277440 [details]
.log entries showing Widget is disposed problems
Comment 19 Mattias Bertilsson CLA 2019-02-05 06:59:44 EST
Unfortunately, this also seems to happen when restarting Eclipse.

Before restart I had a nicely laid out Java perspective (saved using Save Perspective As...), after File->Restart I got what is shown in the attached screenshot. Notice the duplicate Problems, Error Log, Type Hierarchy and Search (in two different areas) views.

Nothing new in the Error log.
Comment 20 Mattias Bertilsson CLA 2019-02-05 07:00:53 EST
Created attachment 277443 [details]
Screenshot showing duplicate views
Comment 21 Mattias Bertilsson CLA 2019-02-05 07:07:24 EST
(In reply to Mattias Bertilsson from comment #17)

> It seems to be a rendering problem (not actually two separate views), since
> when I close one the other disappears as well.
 
Actually, this is not consistent. Closing one of the duplicates, right clicking on the tab and selecting Close, I am sometimes able to close just one of the duplicates. And then have it reappear when I click the other.
Comment 22 Andrey Loskutov CLA 2019-02-05 07:09:00 EST
(In reply to Mattias Bertilsson from comment #18)
> Created attachment 277440 [details]
> .log entries showing Widget is disposed problems

Unfortunately this looks like a follow-up issue.
Are you on X11 or Wayland? Which GTK+ theme are you using?
Matthias, do you use "pure" SDK or du you have extra plugins installed?

If you can reproduce, can you please provide exact steps, ideally starting with a new workspace?
Comment 23 Mattias Bertilsson CLA 2019-02-05 09:18:06 EST
(In reply to Andrey Loskutov from comment #22)

> Are you on X11 or Wayland? Which GTK+ theme are you using?

System properties say:

org.eclipse.swt.internal.gdk.backend=x11
org.eclipse.swt.internal.gtk.theme=Mint-X-Aqua

This matches what "loginctl show-session c2 -p Type" says. The command "gsettings get org.gnome.desktop.interface gtk-theme" says Adwaita, but I think the system property is correct. I use the Cinnamon desktop and the System Settings/Themes tool says "Window Borders: Mint-X, Icons: Mint-X-Aqua, Controls: Mint-X-Aqua, Mouse Pointer: Adwaita, Desktop: Linux Mint"

> Matthias, do you use "pure" SDK or du you have extra plugins installed?

No, there are extra plugins. The additional top level features are:

C/C++ Development Tools SDK 9.6.0.201812111211
EMF - Eclipse Modeling Framework SDK 2.16.0.v21801206-1055
GEF (MVC) SDK 3.11.0.201606061308
Git integration for Eclipse 5.2.0.201812061821-r
TCF C/C++ Debugger SDK 1.5.0.201712121722

I see from the log that C/C++ Development tools have some broken contributions, I'll attach those separately. I suspect some incorrect menu contribution paths have nothing to do with duplicated views, though.
 
> If you can reproduce, can you please provide exact steps, ideally starting
> with a new workspace?

I will try with a fresh workspace and see what happens.
Comment 24 Mattias Bertilsson CLA 2019-02-05 09:23:26 EST
Created attachment 277450 [details]
Problematic CDT contributions
Comment 25 Mattias Bertilsson CLA 2019-02-05 09:37:17 EST
Created attachment 277453 [details]
Other org.eclipse*.ui entries in .log

There are a few other entries in the log. The first three are a few days old, and I think I was still installing / removing / reinstalling features then, so they are probably not relevant. The last one is current, though.
Comment 26 Mattias Bertilsson CLA 2019-02-05 11:36:01 EST
(In reply to Mattias Bertilsson from comment #23)
(In reply to Andrey Loskutov from comment #22)
 
No luck reproducing in a new workspace.

So, I guess the "all the time" is "all the time, once the metadata has been corrupted".

Any files from the old workspace I can attach that would help you pinpoint the problem?
Comment 27 Andrey Loskutov CLA 2019-02-05 12:56:59 EST
(In reply to Mattias Bertilsson from comment #26)
> (In reply to Mattias Bertilsson from comment #23)
> (In reply to Andrey Loskutov from comment #22)
>  
> No luck reproducing in a new workspace.
> 
> So, I guess the "all the time" is "all the time, once the metadata has been
> corrupted".
> 
> Any files from the old workspace I can attach that would help you pinpoint
> the problem?

If so, it looks really like bug 410164. Was the workspace created with older Eclipse version? The bug was fixed with 4.9, so bogus metadata from earlier versions could explain why you saw some strange effects.
Comment 28 Mattias Bertilsson CLA 2019-02-06 05:01:07 EST
The problems did first occur when I dragged and dropped views, but this is a fresh new workspace created with a fresh new 4.10 installation.
Comment 29 Andrey Loskutov CLA 2019-02-06 05:25:02 EST
(In reply to Mattias Bertilsson from comment #28)
> The problems did first occur when I dragged and dropped views, but this is a
> fresh new workspace created with a fresh new 4.10 installation.

OK, in this case we need steps to reproduce. Once we have them, it will be easy to understand where the problem is.
Comment 30 Eclipse Genie CLA 2021-01-27 11:44:28 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.