This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Jarda, could you please help to define correct product/component Caused by: junit.framework.AssertionFailedError: Checking if all projects are really garbage collected Project: private static org.netbeans.core.windows.WindowManagerImpl org.netbeans.core.windows.WindowManagerImpl.defaultInstance-> org.netbeans.core.windows.WindowManagerImpl@517317-registry-> org.netbeans.core.windows.RegistryImpl@132e6dd-currentNodes-> [Lorg.openide.nodes.Node;@c33f0f-[0]-> org.openide.nodes.FilterNode@1f2fec6-parent-> org.openide.nodes.FilterNode$Children@df691d-original-> org.netbeans.spi.java.project.support.ui.PackageViewChildren$PackageNode@c5f07a-this$0-> org.netbeans.spi.java.project.support.ui.PackageViewChildren@1def450-group-> org.netbeans.spi.project.support.ant.SourcesHelper$SourceRoot$Group@1a5f00a-this$1-> org.netbeans.spi.project.support.ant.SourcesHelper$TypedSourceRoot@dda8ac-this$0-> org.netbeans.spi.project.support.ant.SourcesHelper@193e4bb-project-> org.netbeans.modules.java.j2seproject.J2SEProject@6f4654
If the project as closed the whole PackageViewChildren should be freed. Seems as bug in the org.netbeans.core.windows.RegistryImpl@132e6dd-currentNodes which still holds it.
are there any steps to reproduce? currentNodes in RegistryImpl seems to refresh correctly when topcomponents are being switched. who should clear the activated nodes when a project is being closed?
to reproduce: cd java.kit ant test -Dtest.config=uicommit scenario in general: - create new project - add new file - edit java file - build and run - debug
Does the test correct closing of the project?
I think so. And it worked fine before. check also results of failed testGCDocuments it can be related http://qa-findbugs.netbeans.org/job/CV-multi-UI-st/jdk=jdk1.6,label=Lin-Ubuntu-1-stable/lastBuild/testReport/org.netbeans.test.ide/MemoryValidationTest/testGCDocuments/?
The testGCDocument seems to be clear problem of debugger.jpda.ui.models.VariablesTreeModelFilter. Unless the bug is not reported yet, move this one to debugger and let see what happens. Could we modify the test to run with -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$workdir/heapdump.hprof That could allow us to investigate more in the case of PackageNodeChildren.
I'll reopen issue #183895 for the problem in VariablesTreeModelFilter. The fix actually did not improve anything because of a small overlook.
Please note that you may run the test locally to verify your fix.
heapdump http://qa-findbugs.netbeans.org/job/CV-multi-UI-st/514/jdk=jdk1.6,label=Lin-Ubuntu-1-stable/artifact/heapdump.hprof.zip
The snapshot shows that J2SEProject is referenced as OpenProjectList.INSTANCE.mainProject. If the test really closed the project, this would signal problem in the project ui infrastructure.
this snapshot taken for testGCDocuments before closing project
reassigning to debugger team for evaluation
? What is the current problem? Looking at http://qa-findbugs.netbeans.org/job/CV-multi-UI-st/533/ when I click on any failed test, I get Status Code: 404 I've found some failures at http://qa-findbugs.netbeans.org/job/CV-multi-UI-st/533/jdk=jdk1.6,label=Sol10-x86-4-stable//testReport/org.netbeans.test.ide/MemoryValidationTest/testGCProjects/? and http://qa-findbugs.netbeans.org/job/CV-multi-UI-st/533/jdk=jdk1.6,label=MacOSX-1-stable//testReport/org.netbeans.test.ide/MemoryValidationTest/testGCProjects/? There are still reported problems in window system, not debugger! Please evaluate yourself.
i've cleared some additional static fields in keyboard focus manager (core-main e01966172ac2) and navigator topcomponent is now properly garbage collected. the project instance is still held in other classes though. please check that the test properly closes the project and/or open a new issue, thanks
Integrated into 'main-golden', will be available in build *201010150000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/e01966172ac2 User: S. Aubrecht <saubrecht@netbeans.org> Log: #189900 - clear some extra static fields in KeyboardFocusManager