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 143331 - IDE becomes unuseable after formatting XML document
Summary: IDE becomes unuseable after formatting XML document
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2008-08-08 19:29 UTC by tonybeckham
Modified: 2009-02-19 23:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
One thread dump (14.73 KB, text/plain)
2008-08-08 19:29 UTC, tonybeckham
Details
Another dump (18.35 KB, text/plain)
2008-08-08 19:30 UTC, tonybeckham
Details
log file (62.49 KB, text/plain)
2008-08-08 19:32 UTC, tonybeckham
Details
Another log file (77.43 KB, text/plain)
2008-08-08 19:32 UTC, tonybeckham
Details
XML file to use (636.28 KB, text/plain)
2008-08-08 19:53 UTC, tonybeckham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tonybeckham 2008-08-08 19:29:19 UTC
After selecting Format on an XML document, IDE uses %100 of processor and you cannot use any part of the ide

System:
Product Version: NetBeans IDE Dev (Build 200808081401)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.4 running on i386; MacRoman; en_US (nb)

Steps:
1. Open the attached XML document
2. Select Format from the context menu
Comment 1 tonybeckham 2008-08-08 19:29:47 UTC
Created attachment 66920 [details]
One thread dump
Comment 2 tonybeckham 2008-08-08 19:30:13 UTC
Created attachment 66921 [details]
Another dump
Comment 3 tonybeckham 2008-08-08 19:32:10 UTC
Created attachment 66922 [details]
log file
Comment 4 tonybeckham 2008-08-08 19:32:26 UTC
Created attachment 66923 [details]
Another log file
Comment 5 tonybeckham 2008-08-08 19:53:57 UTC
Created attachment 66924 [details]
XML file to use
Comment 6 Sonali Kochar 2008-08-12 18:38:10 UTC
partial fix for the issue:
changeset 349e7685156b in main
details: http://hg.netbeans.org/main?cmd=changeset;node=349e7685156b

You should see some improvement in the formatting performance. Working on further improving the performance.
Comment 7 Sonali Kochar 2008-08-13 18:36:04 UTC

*** This issue has been marked as a duplicate of 143715 ***
Comment 8 tonybeckham 2008-10-10 22:20:33 UTC
I don't think of it as a duplicate of issue 143715. But there is some performance enhancement.  Downgrading for now but
not closing so we can keep an eye on this performance.

Product Version: NetBeans IDE Dev (Build 200810080201)
Java: 1.6.0_07; Java HotSpot(TM) 64-Bit Server VM 1.6.0_07-b06-57
System: Mac OS X version 10.5.5 running on x86_64; MacRoman; en_US (nb)
Comment 9 Samaresh Panda 2008-11-17 22:06:22 UTC
Didn't see any issue in RC2. Please verify.
Comment 10 tonybeckham 2008-12-02 18:58:08 UTC
Still reproducible.  Opening 1998ststs.XML and invoking format or adding it to an existing project and opening it then
selecting format sends processor to 100% for one of 2 cores.

Product Version: NetBeans IDE 6.5 (Build 200811100001)
Java: 1.6.0_07; Java HotSpot(TM) 64-Bit Server VM 1.6.0_07-b06-57
System: Mac OS X version 10.5.5 running on x86_64; MacRoman; en_US (nb)
Comment 11 tonybeckham 2008-12-02 19:06:50 UTC
Also With 
Product Version: NetBeans IDE 6.5 (Build 200811100001)
Java: 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-133
System: Mac OS X version 10.5.5 running on i386; MacRoman; en_US (nb)