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 186707 - Low performance and memory leak in Macro expansion view
Summary: Low performance and memory leak in Macro expansion view
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 6.x
Hardware: All All
: P1 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords: PERFORMANCE
Depends on: 186730
Blocks:
  Show dependency tree
 
Reported: 2010-05-26 06:55 UTC by Alexander Simon
Modified: 2010-05-28 11:48 UTC (History)
1 user (show)

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 Alexander Simon 2010-05-26 06:55:54 UTC
Step to reproduce:
- create HelloQtWorld
- build
- open HelloForm.h
- goto ui_HelloForm.h
- goto QtCore/QVariant
- goto qvariant.h
- invoke Macro expansion view for qvariant.h
- select "Expand local content only"
- select "Synchronize caret, content and context"
- move cursor on 8 column and scroll header by down arrow.
- close HelloQtWorld project
IDE (editor, menu, ...) is fully freezed.
Work around:
- restart IDE

Investigation show that on each update of Macro expansion view new editor is created and never destroyed. As result IDE does a huge work for nonexistent editors (lexing, semantic/error highlighting, annotating, ...)

IMHO it is show stopper for Macro expansion view. Bug should be fixed or view disabled.
Comment 1 Leonid Lenyashin 2010-05-26 07:04:17 UTC
Must be fixed for 6.9
Comment 2 Alexander Pepin 2010-05-26 10:27:09 UTC
Please fix the issue as safe as possible.
Comment 3 Vladimir Voskresensky 2010-05-26 13:54:58 UTC
fixed:
http://hg.netbeans.org/cnd-main/rev/fbe5fce8a29b
Comment 4 Alexander Simon 2010-05-26 14:32:08 UTC
Change set was reviewed.
Minor note:
Please remove bad import in class MacroExpansionTopComponent
- import javax.tools.FileObject;
Change set works and fixes problem.
Looks as safe and right.
Comment 5 Quality Engineering 2010-05-27 07:46:38 UTC
Integrated into 'main-golden', will be available in build *201005270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/fbe5fce8a29b
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #186707 -  Low performance and memory leak in Macro expansion view
Comment 6 soldatov 2010-05-27 13:50:45 UTC
verified in RC1 with provided *.jar files from developers
Comment 7 Alexander Simon 2010-05-27 14:14:32 UTC
fixed in release69 branch:
http://hg.netbeans.org/release69/rev/72af9858305b
Comment 8 Quality Engineering 2010-05-28 08:06:40 UTC
Integrated into 'main-golden', will be available in build *201005280001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/92c001420601
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed #186707 Low performance and memory leak in Macro expansion view
- remove unused import
Comment 9 soldatov 2010-05-28 11:48:35 UTC
verified in rc2