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

Summary: 51s - CES.closeDocument is blocked
Product: platform Reporter: Exceptions Reporter <exceptions_reporter>
Component: TextAssignee: Miloslav Metelka <mmetelka>
Status: RESOLVED FIXED    
Severity: normal CC: alied, Andre_Lopes_2012, arksoft, darrenoh, diegoliebel, drecute, flotho, fmagrosoto, gbalejandro, gorrus, hasenmaus, jack.rsantana, jeffsui, joshis, jrechtacek, jtulach, jyeary, KhArtNJava, lewiscarol, mmetelka, Myaccount, nickdick74, obrejla, ribeirex, senthil_123, stark9000, webfox, Wulpo, zdenek.rod
Priority: P2 Keywords: PERFORMANCE
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 202254
Attachments: nps snapshot

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!!