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

Bug 365821

Summary: View menu "triangle" missing from view toolbar.
Product: [Eclipse Project] Platform Reporter: Pawel Piech <pawel.1.piech>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: daniel_megert, pwebster, remy.suen
Version: 4.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Screenshot of problem.
none
Log file. none

Description Pawel Piech CLA 2011-12-06 19:09:04 EST
Created attachment 208034 [details]
Screenshot of problem.

Version: 4.2.0
Build id: I20111206-1015

I got into a state where I can't open the view menu in my Registers, Variables, and some other debug views.  The little view menu triangle control is completely gone.  When I switch between views in the same view stack I see the control flashes very briefly then disappears.  All views in the same stack have this problem, other views in the perspective don't.

I installed latest CDT in this installation and I suspect that it triggers this problem.  CDT contributes sub-menus to the view menu using the prg.eclipse.ui.menus extension point.  

Attaching screenshot and my log with errors.
Comment 1 Pawel Piech CLA 2011-12-06 19:10:06 EST
Created attachment 208035 [details]
Log file.
Comment 2 Remy Suen CLA 2011-12-06 20:55:27 EST
This may have been caused by something like bug 349423.

(In reply to comment #1)
> Created attachment 208035 [details]
> Log file.

Don't have the code open but I don't think the stack here is relevant.
Comment 3 Remy Suen CLA 2011-12-07 08:46:09 EST
Do you remember how long it took for you to get into this state, Pawel? Just installing CDT doesn't seem to cause the problem.
Comment 4 Pawel Piech CLA 2011-12-07 13:22:03 EST
Starting a debug session will do the trick.  

1) Create a hello world project.
2) Debug it with GDB.

I can help debug this, but I first need to take care of a critical issue for m4 in debug.
Comment 5 Remy Suen CLA 2011-12-07 13:26:47 EST
(In reply to comment #4)
> Starting a debug session will do the trick.  
> 
> 1) Create a hello world project.
> 2) Debug it with GDB.

I have reverted the changes for bug 319621, the most likely cause of this bug, so I think this problem should be gone now.

> I can help debug this, but I first need to take care of a critical issue for m4
> in debug.

No problem, Pawel.
Comment 6 Remy Suen CLA 2012-01-03 15:08:49 EST
The 'Layout' submenu should probably always be visible. Perhaps the visibility calculations are somehow leaking to the primary view menu, akin to what's going on with bug 349423.
Comment 7 Remy Suen CLA 2012-01-05 11:05:00 EST
I tried debugging a simple C++ application a couple of times but could not induce this problem. Do you have any ideas what I could be doing wrong, Pawel?
Comment 8 Remy Suen CLA 2012-01-05 16:43:41 EST
Started seeing this now, need to poke around.
Comment 9 Remy Suen CLA 2012-01-06 08:32:02 EST
Actually, it seems like the view's menu is there but just not on the screen. Resizing the view will cause it to be rendered. There must be a layout problem here.
Comment 10 Remy Suen CLA 2012-01-10 08:45:13 EST
(In reply to comment #9)
> Actually, it seems like the view's menu is there but just not on the screen.
> Resizing the view will cause it to be rendered. There must be a layout problem
> here.

Correcting the layout code of the StackRenderer seems to resolve this issue.

*** This bug has been marked as a duplicate of bug 319621 ***