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 29839 - FolderList blocks AWT thread
Summary: FolderList blocks AWT thread
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: PERFORMANCE, THREAD
: 28636 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-01-07 17:05 UTC by pzajac
Modified: 2007-11-05 13:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump (14.69 KB, text/plain)
2003-01-07 17:05 UTC, pzajac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2003-01-07 17:05:02 UTC
please evalueate.
Comment 1 pzajac 2003-01-07 17:05:37 UTC
Created attachment 8463 [details]
thread dump
Comment 2 pzajac 2003-01-07 17:07:18 UTC
XML file was opened in editor. IDE was on background. After switch to
ide deadlock occured. 
Comment 3 pzajac 2003-01-07 17:13:10 UTC
Hm, It is not deadlock. Folder recognizer is runing This is performace
problem. AWT thread was blocket for long time. 
Comment 4 David Strupl 2003-01-14 13:45:05 UTC
*** Issue 28636 has been marked as a duplicate of this issue. ***
Comment 5 David Strupl 2003-01-14 14:08:24 UTC
Seems like a problem in FolderList - virtually endless refreshing of
the list.
Comment 6 David Strupl 2003-02-26 10:55:19 UTC
This is very hard to reproduce. With enabled logging
(by passing -Dorg.openide.loaders.FolderList=-1 command line param) it
shows that when a lot of folders are scanned the whole process blocks
AWT thread.

It is hard to get it to a state when this is a problem --> making it P3.
Comment 7 Marian Mirilovic 2003-03-13 13:43:03 UTC
Changed owner David S. -> David K.
Comment 8 David Konecny 2003-04-30 10:47:01 UTC
Changing TM to "FUTURE" which is more appropriate, because at the
moment I do not plan to fix this issue for next version. Let me know
if you disagree. I'm open to change the plan.
Comment 9 Jaroslav Tulach 2004-08-04 17:15:07 UTC
The AWT thread in the tread dump seems to be blocked by loading of
annotation types, when editor's menu is constructed. The only solution
is either to construct the menu without knowing the list of
annotations or to pre-compute the list. It is hard to make FolderList
faster, I would say impossible. 

Btw. maybe this is no longer problem for promo-D as I saw the editor
menu to be made significantly smaller.
Comment 10 Miloslav Metelka 2004-08-09 14:11:15 UTC
This is no longer an issue as the "Margin" submenu was removed from
the editor's context menu according to the UI spec
http://ui.netbeans.org/docs/hi/promoD/editorMenus.html
Comment 11 pzajac 2004-08-09 15:18:30 UTC
v