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.

Bug 183896 - Memory leak of a Document via versioning's annotation provider
Summary: Memory leak of a Document via versioning's annotation provider
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: Other Linux
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords: PERFORMANCE, TEST
Depends on:
Blocks:
 
Reported: 2010-04-12 11:41 UTC by Jaroslav Tulach
Modified: 2010-04-13 17:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2010-04-12 11:41:54 UTC
Apply patch: https://netbeans.org/bugzilla/attachment.cgi?id=97076
and when running the test you shall get (on rev. 470ae490543c):

Caused by: junit.framework.AssertionFailedError: Are all documents GCed?
TextDocument:
static org.netbeans.modules.versioning.VersioningAnnotationProvider
org.netbeans.modules.versioning.VersioningAnnotationProvider.instance->
org.netbeans.modules.versioning.VersioningAnnotationProvider@1d00cff-iconCache->
org.netbeans.modules.versioning.VersioningAnnotationProvider$Cache@e511a1-cachedValues->
org.netbeans.modules.versioning.VersioningAnnotationProvider$Cache$1@fe99c9-table->
[Ljava.util.HashMap$Entry;@15baedb-[218]->
java.util.LinkedHashMap$Entry@ed0665-key->
org.netbeans.modules.versioning.VersioningAnnotationProvider$Cache$ItemKey@1c54727-files->
org.openide.loaders.FilesSet@168aae6-mymdo->
org.openide.nodes.CookieSet@1b75c9d-ic->
org.openide.nodes.CookieSetLkp@71524c-tree->
org.openide.util.lookup.ArrayStorage@1bb2ee4-content->
[Ljava.lang.Object;@b5a867-[1]->
org.openide.nodes.CookieSetLkp$SimpleItem@1a1006b-obj->
org.openide.text.EditorSupportLineSet@def6ef-listener->
org.openide.text.LineListener@a01440-root->
org.netbeans.editor.LineRootElement@1d9a501-doc->
org.netbeans.modules.editor.NbEditorDocument@126da28
Comment 1 Jaroslav Tulach 2010-04-12 11:43:59 UTC
Found when working on bug 143586.
Comment 2 Ondrej Vrabec 2010-04-13 08:23:52 UTC
fix: http://hg.netbeans.org/cdev/rev/2f8b529717a0
Comment 3 Quality Engineering 2010-04-13 17:30:21 UTC
Integrated into 'main-golden', will be available in build *201004131450* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/2f8b529717a0
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: Issue #183896 - Memory leak of a Document via versioning's annotation provider