facebook

DevStyle startup: Exception "SWT Resource was not properly disposed" occurs

  1. DevStyle > Suggestions
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #672531 Reply

    peekey
    Participant

    !SESSION 2021-04-02 14:31:23.313 ———————————————–
    eclipse.buildId=4.19.0.I20210303-1800
    java.version=15.0.2
    java.vendor=N/A
    BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=sk_SK
    Framework arguments: -product org.eclipse.epp.package.java.product
    Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.java.product

    DevStyle (includes Darkest Dark Theme) 1.11.0.202103191838 com.genuitec.eclipse.theming.core.feature.feature.group Genuitec, LLC

    During Eclipse workspace startup following non-breaking exception occurs multiple times (found in workspace .log file):

    !ENTRY org.eclipse.ui.ide 4 4 2021-04-02 14:31:32.128
    !MESSAGE Not properly disposed SWT resource
    !STACK 0
    java.lang.Error: SWT Resource was not properly disposed
    at org.eclipse.swt.graphics.Resource.initNonDisposeTracking(Resource.java:172)
    at org.eclipse.swt.graphics.Resource.<init>(Resource.java:120)
    at org.eclipse.swt.graphics.Image.<init>(Image.java:702)
    at com.genuitec.eclipse.webicons.IconImageDescriptor.createImage(IconImageDescriptor.java:46)
    at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:287)
    at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:265)
    at com.genuitec.eclipse.startup.dialogs.custom.UIHelper.createIcon(UIHelper.java:340)
    at com.genuitec.eclipse.startup.dialogs.tabs.WorkspaceNameControl.createBrowseOnHover(WorkspaceNameControl.java:279)
    at com.genuitec.eclipse.startup.dialogs.tabs.WorkspaceNameLink.createNameLabel(WorkspaceNameLink.java:103)
    at com.genuitec.eclipse.startup.dialogs.tabs.WorkspaceNameControl.<init>(WorkspaceNameControl.java:183)
    at com.genuitec.eclipse.startup.dialogs.tabs.WorkspaceNameLink.<init>(WorkspaceNameLink.java:78)
    at com.genuitec.eclipse.startup.dialogs.tabs.WorkspaceControl.createWorkspaceNameControl(WorkspaceControl.java:118)
    at com.genuitec.eclipse.startup.dialogs.tabs.WorkspaceControl.createControl(WorkspaceControl.java:44)
    at com.genuitec.eclipse.startup.dialogs.tabs.WorkspacesTabFactory.createTabArea(WorkspacesTabFactory.java:85)
    at com.genuitec.eclipse.startup.dialogs.tabs.CodeFullyTabFactory.createContents(CodeFullyTabFactory.java:139)
    at com.genuitec.eclipse.startup.dialogs.custom.SideTabFolder.createTabContent(SideTabFolder.java:455)
    at com.genuitec.eclipse.startup.dialogs.custom.SideTabFolder.doCreateTabs(SideTabFolder.java:224)
    at com.genuitec.eclipse.startup.dialogs.custom.SideTabFolder.createTabs(SideTabFolder.java:155)
    at com.genuitec.eclipse.startup.dialogs.custom.AbstactSideTabDialog.createTabs(AbstactSideTabDialog.java:142)
    at com.genuitec.eclipse.startup.dialogs.custom.CustomStartupDialog.createTabs(CustomStartupDialog.java:465)
    at com.genuitec.eclipse.startup.dialogs.custom.CustomStartupDialog.createTabs(CustomStartupDialog.java:461)
    at com.genuitec.eclipse.startup.dialogs.custom.AbstactSideTabDialog.createContents(AbstactSideTabDialog.java:122)
    at org.eclipse.jface.window.Window.create(Window.java:431)
    at org.eclipse.jface.window.Window.open(Window.java:788)
    at com.genuitec.eclipse.startup.dialogs.custom.AbstactSideTabDialog.open(AbstactSideTabDialog.java:61)
    at com.genuitec.eclipse.startup.dialogs.custom.CustomStartupDialog.prompt(CustomStartupDialog.java:336)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    at org.eclipse.ui.internal.ide.application.IDEApplication.showCustomDialog(IDEApplication.java:627)
    at org.eclipse.ui.internal.ide.application.IDEApplication.promptForWorkspace(IDEApplication.java:383)
    at org.eclipse.ui.internal.ide.application.IDEApplication.checkInstanceLocation(IDEApplication.java:285)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:142)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    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:64)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1461)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1434)

    Non-breaking exception=Eclipse can start and works

    #672541 Reply

    support-swapna
    Moderator

    peekey,

    Thank you for reporting it. I see the exceptions at my end too.
    I have filed a report with the dev team to look into it.

    –Swapna
    Genuitec Support

    #672743 Reply

    Rubens Gomes
    Participant

    Any updates? I am also seeing this issue.

    My environment:

    eclipse.buildId=4.19.0.I20210303-1800
    java.version=15.0.2
    java.vendor=Oracle Corporation
    BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
    Framework arguments: -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product -ckeab
    Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product -data file:/C:/Users/816461/eclipse-workspace/ -product org.eclipse.epp.package.java.product -ckeab

    Error:

    Not properly disposed SWT resource
    java.lang.Error: SWT Resource was not properly disposed

    
    	at org.eclipse.swt.graphics.Resource.initNonDisposeTracking(Resource.java:172)
    	at org.eclipse.swt.graphics.Resource.<init>(Resource.java:120)
    	at org.eclipse.swt.graphics.Image.<init>(Image.java:728)
    	at com.genuitec.eclipse.code.webicons.IconImageDescriptor.createImage(IconImageDescriptor.java:34)
    	at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:287)
    	at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:265)
    	at com.genuitec.eclipse.code.webicons.WebIcon.createImage(WebIcon.java:72)
    	at com.genuitec.eclipse.code.controls.AbstractAuthenticateControlProvider.createBody(Unknown Source)
    	at com.genuitec.eclipse.code.controls.AbstractControlProvider.createControl(Unknown Source)
    	at com.genuitec.eclipse.code.controls.AbstractAuthenticateControlProvider.createControl(Unknown Source)
    	at com.genuitec.eclipse.code.controls.ControlContainer.showContent(Unknown Source)
    	at com.genuitec.eclipse.code.dialogs.ShellLicensingControlContainer.showContent(Unknown Source)
    	at com.genuitec.eclipse.code.dialogs.LicenseExpirationDialog.createContents(Unknown Source)
    	at org.eclipse.jface.window.Window.create(Window.java:431)
    	at org.eclipse.jface.window.Window.open(Window.java:788)
    	at com.genuitec.eclipse.code.dialogs.LicenseExpirationDialog.openDialog(Unknown Source)
    	at com.genuitec.eclipse.code.vU.AC_m2n52kh24hj2414(Unknown Source)
    	at com.genuitec.eclipse.code.ui.LicenseErrorContent$1.widgetSelected(LicenseErrorContent.java:67)
    	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
    	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
    	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4209)
    	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1043)
    	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1067)
    	at org.eclipse.swt.widgets.Widget.sendSelectionEvent(Widget.java:1084)
    	at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:713)
    	at org.eclipse.swt.widgets.Control.wmNotify(Control.java:5814)
    	at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1954)
    	at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:5382)
    	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4816)
    	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4938)
    	at org.eclipse.swt.internal.win32.OS.CallWindowProc(Native Method)
    	at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:161)
    	at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1970)
    	at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:5195)
    	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4797)
    	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4930)
    	at org.eclipse.swt.internal.win32.OS.DispatchMessage(Native Method)
    	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3624)
    	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1157)
    	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
    	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
    	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:134)
    	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:64)
    	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
    	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
    	at org.eclipse.equinox.launcher.Main.run(Main.java:1461)
    
    #673120 Reply

    support-swapna
    Moderator

    Rubens,

    Sorry that you are seeing this issue. I am afraid we dont have a timeline for the fix right now. We will keep you posted once we have targeted it.
    Apologies for inconvenience caused.

    –Swapna
    Genuitec Support

    #673121 Reply

    timwebb
    Keymaster

    To provide a bit of context, a couple exceptions like this won’t actually cause any issue. In the latest Eclipse release, they’ve added tracking of non-explicitly disposed images(resources) in an effort to make Eclipse more efficient. The image is still cleaned up during a regular GC cycle however this is not as optimal as it could be. During our next DS update, we’ll take a pass through any additional reports like this that can be fixed from DevStyle and address them.

    #676183 Reply

    evanross
    Participant

    I’m running into the same problem with Eclipse 2021-09 and Codemix can’t open any windows at all.
    I can’t open any tx or tsx files using CodeMix as the editor.

    #676184 Reply

    support-swapna
    Moderator

    Evanross,

    Sorry that you are seeing issues. You can ignore the SWT exceptions for now.

    Please note that CodeMix has reached its End of Life and MyEclipse 2021 is the alternative: https://www.genuitec.com/products/codemix/end-of-life-notice/

    We have a 30 day free trial for MyEclipse. You can download it from here.

    If you still want to try CodeMix, then there is a known compatibility issue with CodeMix in Eclipse 2020-09 and newer versions. Please see this FAQ for the patch details : https://www.genuitec.com/forums/topic/codemix-and-angular-ide-compatibility-issues-in-eclipse-2020-09/
    Once the patch is installed, you can apply the license and open the files with CodeMix editor.

    If you are still seeing issues, then please share the .log file located at workspace dir/.metadata/.log for further investigation. Rename the extension to .txt and attach it here.

    Apologies for inconvenience caused. Please let us know how you get on with it.

    –Swapna
    Genuitec Support

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: DevStyle startup: Exception "SWT Resource was not properly disposed" occurs

You must be logged in to post in the forum log in