Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 392494 - Workspace unusable after "Open Call Hierarchy" with (Git/CVS) History tab open
Summary: Workspace unusable after "Open Call Hierarchy" with (Git/CVS) History tab open
Status: CLOSED DUPLICATE of bug 404873
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 4.3   Edit
Hardware: PC Windows XP
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Platform Team Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 412811 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-10-19 18:27 EDT by andy goryachev CLA
Modified: 2013-09-29 18:41 EDT (History)
3 users (show)

See Also:


Attachments
history tab after the exception (124.58 KB, image/png)
2012-10-19 18:27 EDT, andy goryachev CLA
no flags Details
first error dialog (5.66 KB, image/png)
2012-10-19 18:28 EDT, andy goryachev CLA
no flags Details
second error dialog (5.98 KB, image/png)
2012-10-19 18:28 EDT, andy goryachev CLA
no flags Details
initial layout, normal history tab (131.14 KB, image/png)
2012-10-19 18:29 EDT, andy goryachev CLA
no flags Details
configuration (17.39 KB, image/png)
2012-10-19 18:30 EDT, andy goryachev CLA
no flags Details
error log (12.37 KB, application/octet-stream)
2012-10-19 18:30 EDT, andy goryachev CLA
no flags Details
component hierarchy problem (25.43 KB, image/png)
2012-10-21 01:30 EDT, andy goryachev CLA
no flags Details
4.2.2 screenshot, after the problem appears (108.12 KB, image/png)
2013-03-14 13:02 EDT, andy goryachev CLA
no flags Details
4.2.2 project explorer is messed up (103.84 KB, image/png)
2013-03-14 13:02 EDT, andy goryachev CLA
no flags Details
4.2.2 no more handles (5.86 KB, image/png)
2013-03-14 13:03 EDT, andy goryachev CLA
no flags Details
4.2.2. error log (141.94 KB, image/png)
2013-03-14 13:04 EDT, andy goryachev CLA
no flags Details
4.2.2 stack trace (29.96 KB, image/png)
2013-03-14 13:04 EDT, andy goryachev CLA
no flags Details
4.3 layout with the problems visible (155.43 KB, image/png)
2013-07-11 18:36 EDT, andy goryachev CLA
no flags Details
4.3 stack trace: argument not valid (39.30 KB, image/png)
2013-07-11 18:36 EDT, andy goryachev CLA
no flags Details
4.3 stack trace: no more handles (39.30 KB, image/png)
2013-07-11 18:37 EDT, andy goryachev CLA
no flags Details
one more exception (38.72 KB, image/png)
2013-07-14 16:12 EDT, andy goryachev CLA
no flags Details
one more failure mode - with CVS (112.27 KB, image/png)
2013-07-14 16:18 EDT, andy goryachev CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description andy goryachev CLA 2012-10-19 18:27:43 EDT
Created attachment 222598 [details]
history tab after the exception

The GIT history tab functionality breaks completely (reverting to something like Local History mode but with invalid data) after one right-clicks on a method and selects "Open Call Hierarchy".

To reproduce:

1. The UI layout may be relevant, please refer to a screenshot.  Make sure GIT history tab is visible.
2. Right click on a method and select "Open Call Hierarchy" from the popup menu.
3. An exception gets thrown (see attached), the History tab functionality is broken and can not be fixed.  For example, if one right-clicks on a project root and selects "Team -> Show in History" it won't work: the history tab remains in a weird "local" mode and another exception gets thrown.  Eclipse complains about "No more handlers" and asks to be rebooted.

Environment:

64 bit Windows XP with all the recent patches.  Eclipse configuration as attached.  Please let me know if you need more information.

Thank you!
-andy
Comment 1 andy goryachev CLA 2012-10-19 18:28:23 EDT
Created attachment 222599 [details]
first error dialog
Comment 2 andy goryachev CLA 2012-10-19 18:28:39 EDT
Created attachment 222600 [details]
second error dialog
Comment 3 andy goryachev CLA 2012-10-19 18:29:48 EDT
Created attachment 222601 [details]
initial layout, normal history tab
Comment 4 andy goryachev CLA 2012-10-19 18:30:12 EDT
Created attachment 222602 [details]
configuration
Comment 5 andy goryachev CLA 2012-10-19 18:30:25 EDT
Created attachment 222603 [details]
error log
Comment 6 andy goryachev CLA 2012-10-21 01:30:15 EDT
Created attachment 222613 [details]
component hierarchy problem

It looks like the GIT history panel is there, but is overlapped by a "local" history component (see attachment).
Comment 7 andy goryachev CLA 2013-03-13 19:20:34 EDT
The issue also appears in Eclipse Juno 4.2.2 with EGit 2.3.1.201302201838-r
Comment 8 Robin Stocker CLA 2013-03-14 11:19:43 EDT
Are you still getting the "no more handles" error? I'm not on Windows, but it looks like something is not properly disposing resources, here are some pointers:

http://stackoverflow.com/questions/2018553/swt-no-more-handles
Comment 9 andy goryachev CLA 2013-03-14 13:01:09 EDT
Yes, I do see 'no more handlers' message.  Here is how to reproduce:

1. make sure to have the History tab visible.

2. navigate to a class, right click on a method and invoke 'Open Call Hierarchy' menu.  This is the step that breaks eclipse.  Notice how the history tab switched from Git history to 'no differing versions' which makes little sense.  Also notice the Package Explorer tab mess up.

3. The next step is less clear, but if you continue to use eclipse (or switch to another app then back to eclipse), you'd get 'Unhandled event loop exception' and prompt to restart the workbench.  There is a stack trace - see attached screenshots.
Comment 10 andy goryachev CLA 2013-03-14 13:02:27 EDT
Created attachment 228430 [details]
4.2.2 screenshot, after the problem appears
Comment 11 andy goryachev CLA 2013-03-14 13:02:59 EDT
Created attachment 228431 [details]
4.2.2 project explorer is messed up
Comment 12 andy goryachev CLA 2013-03-14 13:03:28 EDT
Created attachment 228432 [details]
4.2.2 no more handles
Comment 13 andy goryachev CLA 2013-03-14 13:04:04 EDT
Created attachment 228433 [details]
4.2.2. error log
Comment 14 andy goryachev CLA 2013-03-14 13:04:23 EDT
Created attachment 228434 [details]
4.2.2 stack trace
Comment 15 Robin Stocker CLA 2013-04-15 19:27:16 EDT
I tried on a Windows 7 machine now and could not reproduce the problem.

The reason for the history view to show the local history is because when you have it linked to the selection, it tries to show the local history (what you edited) of the method in the call hierarchy. So that part is not a bug in itself.

What could help is if you tried the following:

1. Install the SWT Tools into your Eclipse from this update site:

http://www.eclipse.org/swt/updates/4.3

2. Create a file named ".options" in your Eclipse installation directory (where eclipse.ini is) with the following content:

org.eclipse.ui/debug=true
org.eclipse.ui/trace/graphics=true

3. Add a line with "-debug" before the "-vmargs" line in eclipse.ini
4. Start Eclipse
5. Open the "Sleak" view (Ctrl+3, sleak)
6. Set up the problematic situation
7. Press "Snap" in the Sleak view
8. Open the call hierarchy
9. Press "Diff"
10. Select "Stack", select one of the resources and copy the stack trace from the view

You may have to repeat the last few steps a few times, I don't know. For me, the resource usage stayed about the same, for example: 165 colors, 9 cursors, 24 fonts, 250 images, 1 region and 34 textlayouts.
Comment 16 andy goryachev CLA 2013-04-16 23:08:51 EDT
Dear Robin,

Thanks for looking into this problem.

I can't reproduce it on a 64 bit Window 7 either.

It does happen on a 64 bit XP though, tested with 3.7 and 4.2.2.

-a
Comment 17 andy goryachev CLA 2013-04-20 01:40:51 EDT
Tried again on XP with 4.2.2.
Switching to Sleak (I am not sure what I am looking at there) - but the stack trace is

org.eclipse.swt.SWTError: No more handles
	at org.eclipse.swt.SWT.error(SWT.java:4387)
	at org.eclipse.swt.SWT.error(SWT.java:4276)
	at org.eclipse.swt.SWT.error(SWT.java:4247)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:468)
	at org.eclipse.swt.widgets.Tree.createParent(Tree.java:2247)
	at org.eclipse.swt.widgets.Tree.wmNotifyChild(Tree.java:7407)
	at org.eclipse.swt.widgets.Control.wmNotify(Control.java:5534)
	at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1896)
	at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:5086)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4584)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
	at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2440)
	at org.eclipse.swt.widgets.Tree.callWindowProc(Tree.java:1534)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5977)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
	at org.eclipse.swt.internal.win32.OS.SetWindowLongW(Native Method)
	at org.eclipse.swt.internal.win32.OS.SetWindowLong(OS.java:3444)
	at org.eclipse.swt.widgets.Tree.createItemToolTips(Tree.java:2188)
	at org.eclipse.swt.widgets.Tree._addListener(Tree.java:198)
	at org.eclipse.swt.widgets.Widget.addListener(Widget.java:187)
	at org.eclipse.jface.viewers.OwnerDrawLabelProvider.getOrCreateOwnerDrawListener(OwnerDrawLabelProvider.java:99)
	at org.eclipse.jface.viewers.OwnerDrawLabelProvider.setOwnerDrawEnabled(OwnerDrawLabelProvider.java:250)
	at org.eclipse.jface.viewers.OwnerDrawLabelProvider.initialize(OwnerDrawLabelProvider.java:156)
	at org.eclipse.jface.viewers.StyledCellLabelProvider.initialize(StyledCellLabelProvider.java:165)
	at org.eclipse.jdt.internal.ui.viewsupport.ColoringLabelProvider.initialize(ColoringLabelProvider.java:46)
	at org.eclipse.jface.viewers.ColumnViewer.setLabelProvider(ColumnViewer.java:367)
	at org.eclipse.jdt.internal.ui.javaeditor.JavaOutlinePage.createControl(JavaOutlinePage.java:942)
	at org.eclipse.ui.views.contentoutline.ContentOutline.doCreatePage(ContentOutline.java:137)
	at org.eclipse.ui.part.PageBookView.createPage(PageBookView.java:411)
	at org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java:763)
	at org.eclipse.ui.part.PageBookView$4.partActivated(PageBookView.java:1048)
	at org.eclipse.ui.internal.WorkbenchPage$12.run(WorkbenchPage.java:4462)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.ui.internal.WorkbenchPage.firePartActivated(WorkbenchPage.java:4460)
	at org.eclipse.ui.internal.WorkbenchPage.access$16(WorkbenchPage.java:4440)
	at org.eclipse.ui.internal.WorkbenchPage$E4PartListener.partActivated(WorkbenchPage.java:173)
	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$2.run(PartServiceImpl.java:193)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.firePartActivated(PartServiceImpl.java:191)
	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:596)
	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:549)
	at org.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer.activate(AbstractPartRenderer.java:105)
	at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer$1.handleEvent(ContributedPartRenderer.java:61)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)
	at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:1447)
	at org.eclipse.swt.widgets.Shell.WM_MOUSEACTIVATE(Shell.java:2328)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4572)
	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
	at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1627)
	at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2069)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2541)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4989)
	at org.eclipse.swt.internal.win32.OS.PeekMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.PeekMessage(OS.java:3129)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3753)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Comment 18 Robin Stocker CLA 2013-04-20 15:40:44 EDT
Will try to get access to a machine with XP on it. By the way, have you tried reproducing this with another team provider, e.g. CVS?
Comment 19 andy goryachev CLA 2013-04-20 20:11:59 EDT
Goog point.  The same problem appears with CVS.

org.eclipse.swt.SWTError: No more handles
	at org.eclipse.swt.SWT.error(SWT.java:4308)
	at org.eclipse.swt.SWT.error(SWT.java:4197)
	at org.eclipse.swt.SWT.error(SWT.java:4168)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:468)
	at org.eclipse.swt.widgets.Control.createHandle(Control.java:704)
	at org.eclipse.swt.widgets.Sash.createHandle(Sash.java:119)
	at org.eclipse.swt.widgets.Control.createWidget(Control.java:744)
	at org.eclipse.swt.widgets.Control.<init>(Control.java:112)
	at org.eclipse.swt.widgets.Sash.<init>(Sash.java:77)
	at org.eclipse.swt.custom.SashForm.createSash(SashForm.java:99)
	at org.eclipse.swt.custom.SashFormLayout.layout(SashFormLayout.java:115)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1263)
	at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:1673)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4603)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4972)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2526)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.WM_WINDOWPOSCHANGED(Control.java:5408)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4616)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4972)
	at org.eclipse.swt.internal.win32.OS.SetWindowPos(Native Method)
	at org.eclipse.swt.widgets.Widget.SetWindowPos(Widget.java:1457)
	at org.eclipse.swt.widgets.Control.setBounds(Control.java:3124)
	at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:1019)
	at org.eclipse.swt.widgets.Control.setBounds(Control.java:3085)
	at org.eclipse.swt.widgets.Control.setBounds(Control.java:3081)
	at org.eclipse.swt.layout.FillLayout.layout(FillLayout.java:201)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1263)
	at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:1673)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4603)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4972)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2526)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.WM_WINDOWPOSCHANGED(Control.java:5408)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4616)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4985)
	at org.eclipse.swt.internal.win32.OS.EndDeferWindowPos(Native Method)
	at org.eclipse.swt.widgets.Composite.resizeChildren(Composite.java:949)
	at org.eclipse.swt.widgets.Composite.resizeChildren(Composite.java:915)
	at org.eclipse.swt.widgets.Composite.setResizeChildren(Composite.java:1126)
	at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:1677)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4603)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4972)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2526)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.WM_WINDOWPOSCHANGED(Control.java:5408)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4616)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4972)
	at org.eclipse.swt.internal.win32.OS.EndDeferWindowPos(Native Method)
	at org.eclipse.swt.widgets.Composite.resizeChildren(Composite.java:949)
	at org.eclipse.swt.widgets.Composite.resizeChildren(Composite.java:915)
	at org.eclipse.swt.widgets.Composite.setResizeChildren(Composite.java:1126)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1264)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1249)
	at org.eclipse.swt.widgets.Composite.layout(Composite.java:664)
	at org.eclipse.swt.widgets.Composite.layout(Composite.java:622)
	at org.eclipse.ui.part.PageBook.showPage(PageBook.java:103)
	at org.eclipse.team.internal.ui.history.GenericHistoryView.showPageRec(GenericHistoryView.java:649)
	at org.eclipse.team.internal.ui.history.GenericHistoryView.showHistoryPageFor(GenericHistoryView.java:741)
	at org.eclipse.team.internal.ui.history.GenericHistoryView.showHistory(GenericHistoryView.java:969)
	at org.eclipse.team.internal.ui.history.GenericHistoryView.editorActivated(GenericHistoryView.java:892)
	at org.eclipse.team.internal.ui.history.GenericHistoryView$1.partActivated(GenericHistoryView.java:362)
	at org.eclipse.ui.internal.PartListenerList$1.run(PartListenerList.java:72)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.runtime.Platform.run(Platform.java:888)
	at org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:57)
	at org.eclipse.ui.internal.PartListenerList.firePartActivated(PartListenerList.java:70)
	at org.eclipse.ui.internal.PartService.firePartActivated(PartService.java:187)
	at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:306)
	at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:57)
	at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:136)
	at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3636)
	at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:3159)
	at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:279)
	at org.eclipse.ui.internal.EditorPane.requestActivation(EditorPane.java:98)
	at org.eclipse.ui.internal.PartPane.handleEvent(PartPane.java:237)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)
	at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:1447)
	at org.eclipse.swt.widgets.Shell.WM_MOUSEACTIVATE(Shell.java:2320)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4572)
	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
	at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1610)
	at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2061)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4985)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2526)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4985)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2526)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4985)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2526)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4985)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2526)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4985)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2526)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4985)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2526)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4985)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2526)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4985)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2526)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4985)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2526)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4985)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2526)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4985)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2526)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4623)
	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4985)
	at org.eclipse.swt.internal.win32.OS.PeekMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.PeekMessage(OS.java:3114)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3749)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Comment 20 andy goryachev CLA 2013-04-20 20:12:38 EDT
Can you please redirect this issue to the proper authorities?
Thanks!
-a
Comment 21 Robin Stocker CLA 2013-04-21 11:12:57 EDT
Thanks!

Reassigning to Platform/SWT as it might be a duplicate of bug 287508.
Comment 22 Dani Megert CLA 2013-06-18 10:27:07 EDT
I tried hard to reproduce this using our Kepler release candidate:
http://download.eclipse.org/eclipse/downloads/drops4/S-4.3RC4-201306052000/
but no "luck".

Please reopen, if you can provide more detailed steps using 4.3 RC4 or newer. 

As you probably know, the source for the "no more handled" can also be caused by some completely different area, and at some point you just run out of handles, e.g. in the History view.
Comment 23 andy goryachev CLA 2013-07-11 18:34:12 EDT
reopened as it appears in 4.3
the steps to reproduce are nearly the same: 

1. open Debug perspective with the same layout (may be important), which includes Call hierarchy, GIT history, Git Staging and other tabs (see the screenshot).

2. pick a method and invoke "Open Call Hierarchy" from the context menu.

3. click on some other tab.

Observe:
1. the artifacts in the toolbar (toolbar flashes black as the icons get disabled/enabled, some icons retain the black background).

2. exceptions in the error log:
java.lang.IllegalArgumentException: Argument not valid
org.eclipse.e4.core.di.InjectionException: org.eclipse.swt.SWTError: No more handles

3. The Package Explorer tree gets corrupt: missing entries, wrong icons.
Comment 24 andy goryachev CLA 2013-07-11 18:36:16 EDT
Created attachment 233389 [details]
4.3 layout with the problems visible

I think the layout (perspective + tabs open) is important to reproduce the issue.  Feels that Git History might be relevant.
Comment 25 andy goryachev CLA 2013-07-11 18:36:50 EDT
Created attachment 233390 [details]
4.3 stack trace: argument not valid
Comment 26 andy goryachev CLA 2013-07-11 18:37:11 EDT
Created attachment 233391 [details]
4.3 stack trace: no more handles
Comment 27 andy goryachev CLA 2013-07-14 16:12:32 EDT
Created attachment 233461 [details]
one more exception
Comment 28 andy goryachev CLA 2013-07-14 16:18:08 EDT
Created attachment 233462 [details]
one more failure mode - with CVS

With CVS, an exception is thrown from the start!  I mean, I've added a CVS project to the workspace, restarted Eclipse, and got an exception when it started back again!

Also notice the Outline tab is messed up - function names are truncated. 

I can't use 4.3 at all, I am stuck with 3.7.2 with the history tab always closed.  This is very, very disappointing.

Please help!

thanks
-a
Comment 29 Dani Megert CLA 2013-07-15 04:00:18 EDT
(In reply to comment #28)
> Created attachment 233462 [details]
> one more failure mode - with CVS
> 
> With CVS, an exception is thrown from the start!  I mean, I've added a CVS
> project to the workspace, restarted Eclipse, and got an exception when it
> started back again!
> 
> Also notice the Outline tab is messed up - function names are truncated. 
> 
> I can't use 4.3 at all, I am stuck with 3.7.2 with the history tab always
> closed.  This is very, very disappointing.
> 
> Please help!
> 
> thanks
> -a

We got reproducible steps and could isolate and fix the problems, see bug .

*** This bug has been marked as a duplicate of bug 404873 ***
Comment 30 Matthias Sohn CLA 2013-09-29 18:41:51 EDT
*** Bug 412811 has been marked as a duplicate of this bug. ***