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

JavaLeakTest fails since I20240608 #1444

Closed
jukzi opened this issue Jun 10, 2024 · 3 comments
Closed

JavaLeakTest fails since I20240608 #1444

jukzi opened this issue Jun 10, 2024 · 3 comments
Assignees
Labels
bug Something isn't working regression Regression defect

Comments

@jukzi
Copy link
Contributor

jukzi commented Jun 10, 2024

16 fails on all OS:
for example

Expected instance count: 0, actual: 1 Element 0 org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor org.eclipse.ui.texteditor.FindReplaceAction#fWorkbenchPart -> org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor@4ad0d464 org.eclipse.ui.texteditor.FindReplaceAction$1#this$0 -> org.eclipse.ui.texteditor.FindReplaceAction@5701c504 java.lang.Object[3] -> org.eclipse.ui.texteditor.FindReplaceAction$1@5cd4c384 org.eclipse.core.runtime.ListenerList#listeners -> [Ljava.lang.Object;@1157443d org.eclipse.core.internal.preferences.EclipsePreferences#preferenceChangeListeners -> [org.eclipse.ui.preferences.ScopedPreferenceStore$$Lambda$307/0x0000000800ed7848@66c3c813, org.ecli java.util.concurrent.ConcurrentHashMap$Node#val -> /instance/org.eclipse.ui.editors java.util.concurrent.ConcurrentHashMap$Node[35] -> org.eclipse.ui.editors=/instance/org.eclipse.ui.editors java.util.concurrent.ConcurrentHashMap#table -> [Ljava.util.concurrent.ConcurrentHashMap$Node;@3c8bdde7 org.eclipse.core.internal.preferences.EclipsePreferences#children -> {org.eclipse.ant.ui=/instance/org.eclipse.ant.ui, org.eclipse.core.expressions=/instance/org.eclips org.eclipse.core.internal.preferences.legacy.PreferenceForwarder#pluginRoot -> /instance org.eclipse.core.runtime.Plugin#preferences -> PreferenceForwarder(org.eclipse.core.resources) org.eclipse.osgi.internal.framework.BundleContextImpl#activator -> org.eclipse.core.resources java.lang.Object[3] -> org.eclipse.osgi.internal.framework.BundleContextImpl@6843d9a java.util.ArrayList#elementData -> [Ljava.lang.Object;@3de8e614 org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl#contextsUsing -> [org.eclipse.osgi.internal.framework.BundleContextImpl@5446f7f5, org.eclipse.osgi.internal.framewor org.eclipse.osgi.internal.location.BasicLocation#serviceRegistration -> {org.eclipse.osgi.service.datalocation.Location}={service.id=8, service.bundleid=0, service.scope=s org.eclipse.osgi.internal.location.EquinoxLocations#instanceLocation -> org.eclipse.osgi.internal.location.BasicLocation@34db5935 org.eclipse.osgi.internal.framework.EquinoxConfiguration#equinoxLocations -> org.eclipse.osgi.internal.location.EquinoxLocations@621a7d83 org.eclipse.osgi.internal.loader.EquinoxClassLoader#configuration -> org.eclipse.osgi.internal.framework.EquinoxConfiguration@674b2703 org.eclipse.osgi.internal.loader.EquinoxClassLoader -> org.eclipse.osgi.internal.loader.EquinoxClassLoader@409a7dc3[org.eclipse.jdt.ui.tests:3.15.500.v202 . Actual: 0

java.lang.AssertionError: Expected instance count: 0, actual: 1
Element 0
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor
org.eclipse.ui.texteditor.FindReplaceAction#fWorkbenchPart -> org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor@4ad0d464
org.eclipse.ui.texteditor.FindReplaceAction$1#this$0 -> org.eclipse.ui.texteditor.FindReplaceAction@5701c504
java.lang.Object[3] -> org.eclipse.ui.texteditor.FindReplaceAction$1@5cd4c384
org.eclipse.core.runtime.ListenerList#listeners -> [Ljava.lang.Object;@1157443d
org.eclipse.core.internal.preferences.EclipsePreferences#preferenceChangeListeners -> [org.eclipse.ui.preferences.ScopedPreferenceStore$$Lambda$307/0x0000000800ed7848@66c3c813, org.ecli
java.util.concurrent.ConcurrentHashMap$Node#val -> /instance/org.eclipse.ui.editors
java.util.concurrent.ConcurrentHashMap$Node[35] -> org.eclipse.ui.editors=/instance/org.eclipse.ui.editors
java.util.concurrent.ConcurrentHashMap#table -> [Ljava.util.concurrent.ConcurrentHashMap$Node;@3c8bdde7
org.eclipse.core.internal.preferences.EclipsePreferences#children -> {org.eclipse.ant.ui=/instance/org.eclipse.ant.ui, org.eclipse.core.expressions=/instance/org.eclips
org.eclipse.core.internal.preferences.legacy.PreferenceForwarder#pluginRoot -> /instance
org.eclipse.core.runtime.Plugin#preferences -> PreferenceForwarder(org.eclipse.core.resources)
org.eclipse.osgi.internal.framework.BundleContextImpl#activator -> org.eclipse.core.resources
java.lang.Object[3] -> org.eclipse.osgi.internal.framework.BundleContextImpl@6843d9a
java.util.ArrayList#elementData -> [Ljava.lang.Object;@3de8e614
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl#contextsUsing -> [org.eclipse.osgi.internal.framework.BundleContextImpl@5446f7f5, org.eclipse.osgi.internal.framewor
org.eclipse.osgi.internal.location.BasicLocation#serviceRegistration -> {org.eclipse.osgi.service.datalocation.Location}={service.id=8, service.bundleid=0, service.scope=s
org.eclipse.osgi.internal.location.EquinoxLocations#instanceLocation -> org.eclipse.osgi.internal.location.BasicLocation@34db5935
org.eclipse.osgi.internal.framework.EquinoxConfiguration#equinoxLocations -> org.eclipse.osgi.internal.location.EquinoxLocations@621a7d83
org.eclipse.osgi.internal.loader.EquinoxClassLoader#configuration -> org.eclipse.osgi.internal.framework.EquinoxConfiguration@674b2703
org.eclipse.osgi.internal.loader.EquinoxClassLoader -> org.eclipse.osgi.internal.loader.EquinoxClassLoader@409a7dc3[org.eclipse.jdt.ui.tests:3.15.500.v202

. Actual: 0
at org.junit.Assert.fail(Assert.java:89)
at org.junit.Assert.failEquals(Assert.java:187)
at org.junit.Assert.assertNotEquals(Assert.java:201)
at org.eclipse.jdt.ui.leaktest.LeakTestCase.assertInstanceCount(LeakTestCase.java:129)
at org.eclipse.jdt.ui.tests.leaks.JavaLeakTest.internalTestEditorOpen(JavaLeakTest.java:378)
at org.eclipse.jdt.ui.tests.leaks.JavaLeakTest.internalTestEditorClose(JavaLeakTest.java:312)
at org.eclipse.jdt.ui.tests.leaks.JavaLeakTest.testJavaEditorBreadcrumbClose(JavaLeakTest.java:209)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)

https://download.eclipse.org/eclipse/downloads/drops4/I20240608-0320/testresults/html/org.eclipse.jdt.ui.tests_ep433I-unit-macM1-java17_macosx.cocoa.aarch64_17.html

@jukzi jukzi added bug Something isn't working regression Regression defect test junit test related things labels Jun 10, 2024
@Wittmaxi
Copy link

Thank you for the report! This is caused by my PR for the Find/Replace overlay. I believe I know how to address this.

@jukzi
Copy link
Contributor Author

jukzi commented Jun 10, 2024

thanks for informing

@iloveeclipse iloveeclipse removed the test junit test related things label Jun 11, 2024
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

3 participants