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

Unhandled event loop exception opening Bug Filter Configuration dialog #2327

Closed
iloveeclipse opened this issue Jan 23, 2023 · 0 comments · Fixed by #2328
Closed

Unhandled event loop exception opening Bug Filter Configuration dialog #2327

iloveeclipse opened this issue Jan 23, 2023 · 0 comments · Fixed by #2328
Assignees

Comments

@iloveeclipse
Copy link
Member

iloveeclipse commented Jan 23, 2023

Click here to open Bug Filter Configuration dialog:
image

An error is reported on recent Eclipse version (4.25+, since this commit)

!ENTRY org.eclipse.ui 4 0 2023-01-23 13:41:31.207
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.IllegalArgumentException: Argument not valid
	at org.eclipse.swt.SWT.error(SWT.java:4899)
	at org.eclipse.swt.SWT.error(SWT.java:4833)
	at org.eclipse.swt.SWT.error(SWT.java:4804)
	at org.eclipse.swt.graphics.TextLayout.setWidth(TextLayout.java:2235)
	at org.eclipse.jface.internal.text.html.HTMLTextPresenter.updatePresentation(HTMLTextPresenter.java:95)
	at de.tobject.findbugs.view.explorer.FilterBugsDialog.updateDescription(FilterBugsDialog.java:635)
	at de.tobject.findbugs.view.explorer.FilterBugsDialog.access$0(FilterBugsDialog.java:623)
	at de.tobject.findbugs.view.explorer.FilterBugsDialog$6.controlResized(FilterBugsDialog.java:513)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:239)
	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:1534)
	at org.eclipse.swt.widgets.Control.setBounds(Control.java:1212)
	at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:1648)
	at org.eclipse.swt.widgets.Tree.setBounds(Tree.java:3646)
	at org.eclipse.swt.widgets.Control.setBounds(Control.java:1020)
	at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:697)
	at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:201)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1867)
	at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:1651)
	at org.eclipse.swt.widgets.Control.setBounds(Control.java:1020)
	at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:697)
	at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:201)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1867)
	at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:1651)
	at org.eclipse.swt.widgets.Control.setBounds(Control.java:1020)
	at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:697)
	at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:201)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1867)
	at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:1651)
	at org.eclipse.swt.widgets.Group.setBounds(Group.java:424)
	at org.eclipse.swt.widgets.Control.setBounds(Control.java:1020)
	at org.eclipse.swt.custom.SashFormLayout.layout(SashFormLayout.java:162)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1867)
	at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:1651)
	at org.eclipse.swt.widgets.Control.setBounds(Control.java:1020)
	at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:697)
	at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:201)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1867)
	at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:1651)
	at org.eclipse.swt.widgets.Control.setBounds(Control.java:1020)
	at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:697)
	at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:201)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1867)
	at org.eclipse.swt.widgets.Shell.resizeBounds(Shell.java:2280)
	at org.eclipse.swt.widgets.Shell.setBounds(Shell.java:2373)
	at org.eclipse.swt.widgets.Control.setBounds(Control.java:980)
	at org.eclipse.jface.window.Window.initializeBounds(Window.java:764)
	at org.eclipse.jface.dialogs.Dialog.initializeBounds(Dialog.java:721)
	at org.eclipse.jface.window.Window.create(Window.java:435)
	at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1094)
	at org.eclipse.jface.window.Window.open(Window.java:788)
	at de.tobject.findbugs.actions.FilterBugsDialogAction.run(FilterBugsDialogAction.java:58)
	at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:239)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:580)

I will push a patch

@iloveeclipse iloveeclipse self-assigned this Jan 23, 2023
iloveeclipse added a commit to iloveeclipse/spotbugs that referenced this issue Jan 23, 2023
Configuration dialog in Eclipse

Simply don't pass zero values to the
IInformationPresenterExtension.updatePresentation(), they are not
allowed anymore.

Fixes spotbugs#2327
iloveeclipse added a commit to iloveeclipse/spotbugs that referenced this issue Jan 23, 2023
Configuration dialog in Eclipse

Simply don't pass zero values to the
IInformationPresenterExtension.updatePresentation(), they are not
allowed anymore.

Fixes spotbugs#2327
iloveeclipse added a commit that referenced this issue Jan 23, 2023
Configuration dialog in Eclipse

Simply don't pass zero values to the
IInformationPresenterExtension.updatePresentation(), they are not
allowed anymore.

Fixes #2327
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant