Bug 570653 - Resource leak in FontRegistry.defaultFontRecord()
Summary: Resource leak in FontRegistry.defaultFontRecord()
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.11   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.19 M3   Edit
Assignee: Andrey Loskutov CLA
QA Contact:
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2021-01-26 03:15 EST by Andrey Loskutov CLA
Modified: 2021-01-27 16:31 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Loskutov CLA 2021-01-26 03:15:40 EST
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.Font.<init>(Font.java:109)
	at org.eclipse.jface.resource.FontRegistry.createFont(FontRegistry.java:506)
	at org.eclipse.jface.resource.FontRegistry.defaultFontRecord(FontRegistry.java:564)
	at org.eclipse.jface.resource.FontRegistry.defaultFont(FontRegistry.java:533)
	at org.eclipse.egit.ui.internal.decorators.GitLightweightDecorator$ChangeTrackingColorsAndFonts.lambda$1(GitLightweightDecorator.java:349)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:236)
	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:133)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:5939)
	at org.eclipse.egit.ui.internal.decorators.GitLightweightDecorator$ChangeTrackingColorsAndFonts.reload(GitLightweightDecorator.java:336)
	at org.eclipse.egit.ui.internal.decorators.GitLightweightDecorator$ChangeTrackingColorsAndFonts.<init>(GitLightweightDecorator.java:331)
	at org.eclipse.egit.ui.internal.staging.StagingViewLabelProvider.<init>(StagingViewLabelProvider.java:66)
	at org.eclipse.egit.ui.internal.staging.StagingView.createLabelProvider(StagingView.java:2143)
	at org.eclipse.egit.ui.internal.staging.StagingView.createViewer(StagingView.java:2183)
	at org.eclipse.egit.ui.internal.staging.StagingView.createPartControl(StagingView.java:887)
	at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:158)
	at org.eclipse.ui.internal.e4.compatibility.CompatibilityView.createPartControl(CompatibilityView.java:155)
	at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:365)
	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)
Comment 1 Andrey Loskutov CLA 2021-01-26 03:17:18 EST
Looks like this is a regression from bug 544026.
Comment 2 Eclipse Genie CLA 2021-01-26 03:31:40 EST
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/175354