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 232939 - 51s - CES.closeDocument is blocked
Summary: 51s - CES.closeDocument is blocked
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 7.2
Hardware: All All
: P2 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2013-07-18 05:12 UTC by Exceptions Reporter
Modified: 2013-08-08 17:23 UTC (History)
29 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 202254


Attachments
nps snapshot (82.72 KB, application/nps)
2013-07-18 05:12 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2013-07-18 05:12:55 UTC
This bug was originally marked as duplicate of bug 172260, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.2.1 (Build 201210100934)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Windows 7
Maximum slowness yet reported was 51813 ms, average is 51813
Comment 1 Exceptions Reporter 2013-07-18 05:12:57 UTC
Created attachment 137343 [details]
nps snapshot
Comment 2 Jaroslav Tulach 2013-07-22 09:58:52 UTC
EDT is blocked for 41s (plus ten before profiling started) in org.openide.text.CloneableEditorSupport.closeDocument()
Comment 3 Jaroslav Tulach 2013-07-22 10:01:18 UTC
Very likely the closeDocument waits on 

org.openide.text.CloneableEditorSupport.prepareDocument()	99.92449	41 709 ms (99,9%)	0,000 ms

which is blocked 

org.netbeans.modules.cnd.source.CppEditorSupport.createStyledDocument()	99.92449	41 709 ms (99,9%)	0,000 ms

The original intention of the API was expecting createStyledDocument method to be fast. If it takes 51s then it is sort of violating the API contract. Passing to CND team.
Comment 4 Andrew Krasny 2013-07-22 15:02:29 UTC
Jarda, you are right and the described flow is correct but only for a single report 681682 (out of 29).
Other reports have nothing to do with cnd. Only this (681682) log file shows up loaded cnd modules.

So I'm going to file another separate issue against cnd and re-assign this one to platform.
Comment 6 Andrew Krasny 2013-07-22 15:08:58 UTC
I'm not sure if 'platform' is the correct category. Please adjust appropriately. 
Thanks!
Comment 7 Jiri Rechtacek 2013-07-30 15:53:33 UTC
Wulpo@netbeans.org, don't change metadata of issue, we do need to know in which version it was reported initially
Comment 8 Andre_Lopes_2012 2013-07-30 15:55:44 UTC
I reported it in Netbeans 7.4 :P 
I always use last ( beta ) versions. 

It lags when i try to refactor!!