Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Widget is disposed" error in tests triggering "Debug As..." menu #1202

Closed
iloveeclipse opened this issue Feb 13, 2024 · 1 comment
Closed
Assignees
Labels
bug Something isn't working regression Regression defect
Milestone

Comments

@iloveeclipse
Copy link
Member

iloveeclipse commented Feb 13, 2024

I've finally managed to adopt our tests to 4.31 and immediately run into regression in "Debug As" menu.

The stack points to eclipse-platform/eclipse.platform.ui@771d0b4 but the real issue is most likely coming from #1005.

Most likely yet another indication of a problem with "async menus", related to eclipse-jdt/eclipse.jdt.ui#1068

The test simply opens Package Explorer on an application specific file and tries to expand / select "Debug As.." menu

!ENTRY org.eclipse.ui 4 0 2024-02-13 16:08:19.387
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Widget is disposed
	at org.eclipse.swt.SWT.error(SWT.java:4922)
	at org.eclipse.swt.SWT.error(SWT.java:4837)
	at org.eclipse.swt.SWT.error(SWT.java:4808)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:565)
	at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:480)
	at org.eclipse.swt.widgets.Menu.getItems(Menu.java:672)
	at org.eclipse.jface.action.ActionContributionItem.lambda$8(ActionContributionItem.java:1184)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5855)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1529)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1555)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1538)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1316)
	at org.eclipse.debug.ui.actions.ContextualLaunchAction.lambda$2(ContextualLaunchAction.java:306)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:132)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:5040)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4520)
@iloveeclipse
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression Regression defect
Projects
None yet
Development

No branches or pull requests

1 participant