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 229721

Summary: Project file read in EDT 2 (for mime type)
Product: platform Reporter: Egor Ushakov <gorrus>
Component: TextAssignee: Miloslav Metelka <mmetelka>
Status: NEW ---    
Severity: normal CC: issues
Priority: P3 Keywords: PERFORMANCE
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 218138    
Attachments: stacktrace

Description Egor Ushakov 2013-05-14 12:40:55 UTC
Created attachment 134418 [details]
stacktrace

see attached stacktrace, sometimes we read project files from EDT which may lead to huge UI freeze
Comment 1 Miloslav Metelka 2013-06-05 14:56:42 UTC
The file contents are read due to request of file's mime type in order to properly determine an editor kit to be used for file's editing.
IMHO we could attempt to find the kit itself during CloneableEditor.initNonVisual().
pane.setEditorKit(kit) call must then certainly be done from AWT as well as pane.setDocument().