Error when opening the SonarQube properties page of a project

Please provide

  • Operating system: macOS 26
  • IDE name and version: Eclipse IDE Nightly Build - but unrelated
  • SonarQube for Eclipse plugin version: Latest Dogfooding Build - but unrelated
  • Programming language you’re coding in: Java - but unrelated
  • Is connected mode used:
    • SonarQube Cloud, SonarQube Server, or SonarQube Community Build? (if one of the latter two, which version?): Of course, SQ-C - but unrelated

And a thorough description of the problem / question:

When opening the SonarQube properties page of any project opened in the workspace (Right Click on the Project → Properties → SonarQube) an error is thrown and only shown in the Error Log view of the IDE. Here is the stack trace:

java.lang.Error: SWT Resource was not properly disposed
at org.eclipse.swt.graphics.Resource.initNonDisposeTracking(Resource.java:191)
at org.eclipse.swt.graphics.Resource.(Resource.java:124)
at org.eclipse.swt.graphics.Font.(Font.java:100)
at org.sonarlint.eclipse.ui.internal.properties.SonarLintProjectPropertyPage.createContents(SonarLintProjectPropertyPage.java:119)
at org.eclipse.jface.preference.PreferencePage.createControl(PreferencePage.java:244)
at org.eclipse.jface.preference.PreferenceDialog.createPageControl(PreferenceDialog.java:1429)
at org.eclipse.jface.preference.PreferenceDialog$8.run(PreferenceDialog.java:1192)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:47)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:169)
at org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1184)
at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(FilteredPreferenceDialog.java:616)
at org.eclipse.jface.preference.PreferenceDialog$5.lambda$0(PreferenceDialog.java:660)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.jface.preference.PreferenceDialog$5.selectionChanged(PreferenceDialog.java:657)
at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:822)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:47)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:169)
at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:819)
at org.eclipse.jface.viewers.ColumnViewer.firePostSelectionChanged(ColumnViewer.java:1054)
at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1188)
at org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:83)
at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:283)
at org.eclipse.jface.util.OpenStrategy$1.lambda$1(OpenStrategy.java:437)
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:4382)
at org.eclipse.swt.widgets.Display.observerProc(Display.java:3918)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Display.applicationNextEventMatchingMask(Display.java:5578)
at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5979)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:239)
at org.eclipse.swt.widgets.Widget.mouseDownSuper(Widget.java:1216)
at org.eclipse.swt.widgets.Tree.mouseDownSuper(Tree.java:2190)
at org.eclipse.swt.widgets.Widget.mouseDown(Widget.java:1208)
at org.eclipse.swt.widgets.Control.mouseDown(Control.java:2598)
at org.eclipse.swt.widgets.Tree.mouseDown(Tree.java:2157)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:6286)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:239)
at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2407)
at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2502)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:6402)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:5705)
at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5845)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:117)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4000)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:824)
at org.eclipse.jface.window.Window.open(Window.java:804)
at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:154)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:474)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:581)
at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:415)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:91)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4660)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1657)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1680)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1665)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1394)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4427)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4003)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1147)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1038)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:677)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:583)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:173)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:185)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:219)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:149)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:115)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:467)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:298)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:627)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1431)

It appears that this happens now every time since moving to macOS 26, and not only once or only a couple of times before. It seems to be due to the case that the font configuration is done incorrectly - and I guess it was not found earlier since it throws a silent error only shown in the Error Log view.

It looks like it will be an easy fix to only load the font from the JFace Font Registry and not to create a new one here.

Cheers :clinking_beer_mugs:

Hello @EclipseWizard,

Thanks for taking the time to report this issue. I have created the appropriate ticket for further investigation and to provide the fix as soon as possible.

Kind regards,
Vasileios Naskos

1 Like

We have included a fix for this issue in the latest released version of SonarQube for Eclipse. Could you please update to version 11.21 and see if you reproduce the problem?

Thank you!

I’ve checked and the issue is gone :smiley: Merci Beaucoup :man_bowing: :smiling_face_with_three_hearts:

Cheers :beer_mug:

2 Likes

Thank you for confirming, truly the best wizard out there :smiling_face_with_sunglasses:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.