Bug 413212 - AssertionFailedException when right-click in Debug view
Summary: AssertionFailedException when right-click in Debug view
Status: REOPENED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.3   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 442866 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-07-17 20:36 EDT by Marc-André Laperle CLA
Modified: 2022-02-10 12:28 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc-André Laperle CLA 2013-07-17 20:36:04 EDT
Using 4.3.0 I20130605-2000 or 4.4.0 I20130709-0800.
Easier to reproduce on Linux (Ubuntu 13.04) but also reproducable on Windows 7.

1. Start debugging and stop at a breakpoint so that you can see variables
2. In the Debug view, right-click on a column header. Exception occurs:

org.eclipse.core.runtime.AssertionFailedException: null argument:Action must not be null
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
	at org.eclipse.jface.action.ContributionManager.add(ContributionManager.java:75)
	at org.eclipse.debug.internal.ui.views.variables.VariablesView.fillContextMenu(VariablesView.java:1094)
	at org.eclipse.debug.ui.AbstractDebugView$2.menuAboutToShow(AbstractDebugView.java:537)
	at org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuManager.java:343)
	at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:475)
	at org.eclipse.jface.action.MenuManager.access$1(MenuManager.java:470)
	at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:500)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:255)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1392)
Comment 1 Michael Rennie CLA 2013-07-22 11:13:21 EDT
Looks like the Find action is being removed from the global action map after a certain set of actions.

Some steps I used to reproduce:
1. debug a simple app, with vars you can edit while debugging
2. when suspended, go to the var view
3. click a var entry to start editing it
4. without ending the edit, right-click on the column header of another column
Comment 2 Dani Megert CLA 2014-08-29 08:15:22 EDT
*** Bug 442866 has been marked as a duplicate of this bug. ***
Comment 4 Sarika Sinha CLA 2015-09-09 05:13:53 EDT
Mike,
I agree that we should investigate on why "Find" is removed on Mac. But till that is found , should we not add a null check before adding Find action ?
Comment 5 Michael Rennie CLA 2015-09-09 10:45:43 EDT
(In reply to Sarika Sinha from comment #4)
> Mike,
> I agree that we should investigate on why "Find" is removed on Mac. But till
> that is found , should we not add a null check before adding Find action ?

That makes sense.
Comment 6 Eclipse Genie CLA 2020-02-15 09:12:31 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.
Comment 7 Andrey Loskutov CLA 2022-02-10 11:45:08 EST
Just got this error few times while debugging.
No idea why.

eclipse.buildId=4.23.0.I20220209-1800
java.version=11.0.10
java.vendor=Red Hat, Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments:  -data /data/4x_platform_workspace -os linux -ws gtk -arch x86_64

org.eclipse.ui
Error
Thu Feb 10 17:15:05 CET 2022
Unhandled event loop exception

org.eclipse.core.runtime.AssertionFailedException: null argument:Action must not be null
	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:88)
	at org.eclipse.jface.action.ContributionManager.add(ContributionManager.java:76)
	at org.eclipse.debug.internal.ui.views.variables.VariablesView.fillContextMenu(VariablesView.java:1089)
	at org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuManager.java:338)
	at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:468)
	at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:495)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:259)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5895)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1516)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1542)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1521)
	at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:290)
	at org.eclipse.swt.widgets.Display.runPopups(Display.java:5168)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4572)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1440)
Comment 8 Andrey Loskutov CLA 2022-02-10 11:47:46 EST
And, btw, there *was* the "Find..." action in the context menu.
It seem randomly appear while I'm right clicking on variables, but I see no pattern what causes the error...
Comment 9 Eclipse Genie CLA 2022-02-10 12:05:56 EST
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.debug/+/190687
Comment 10 Andrey Loskutov CLA 2022-02-10 12:07:37 EST
(In reply to Eclipse Genie from comment #9)
> New Gerrit change created:
> https://git.eclipse.org/r/c/platform/eclipse.platform.debug/+/190687

Not a fix, just want see if the global actions map was entirely empty (would mean somehow focusLost() clears that via org.eclipse.debug.internal.ui.views.variables.VariablesView.clearGlobalActions()), or something else is going wrong.