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.
Summary: | EQ frozen loading form | ||
---|---|---|---|
Product: | guibuilder | Reporter: | Jesse Glick <jglick> |
Component: | Code | Assignee: | issues@guibuilder <issues> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | adam_myatt, armandojaga, exceptions_reporter, hedefalk, hmichel, jis, komealy, mklaehn, mschneider, necipakif, ravilan, ringerc, roger_rf, Wilson_Filho, xpilot |
Priority: | P2 | Keywords: | PERFORMANCE, THREAD |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Thread dump
nps snapshot nps snapshot |
Description
Jesse Glick
2009-03-16 16:28:32 UTC
Created attachment 78242 [details]
Thread dump
*** Issue 161837 has been marked as a duplicate of this issue. *** *** Issue 172175 has been marked as a duplicate of this issue. *** *** Issue 171132 has been marked as a duplicate of this issue. *** *** Issue 171920 has been marked as a duplicate of this issue. *** *** Issue 172064 has been marked as a duplicate of this issue. *** *** Issue 170195 has been marked as a duplicate of this issue. *** *** Issue 169210 has been marked as a duplicate of this issue. *** *** Issue 171461 has been marked as a duplicate of this issue. *** *** Issue 174022 has been marked as a duplicate of this issue. *** *** Issue 174139 has been marked as a duplicate of this issue. *** *** Issue 174142 has been marked as a duplicate of this issue. *** *** Issue 174234 has been marked as a duplicate of this issue. *** *** Issue 174232 has been marked as a duplicate of this issue. *** *** Issue 172055 has been marked as a duplicate of this issue. *** *** Issue 175412 has been marked as a duplicate of this issue. *** http://statistics.netbeans.org/analytics/detail.do?id=159752 contains 42 duplicates, maximum slowness 86718 ms - really just a P3? Created attachment 90760 [details]
nps snapshot
This issue already has 201 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=154265 I don't think this is a stopper for release. The behavior is known, we have it in NetBeans for several releases, and haven't seen huge complaints about it. The GUI Builder has a special reason why it needs to open the GUI forms in AWT thread. Also it shows the loading message in the designer area, in status bar, there is wait mouse cursor - so it is not locked by surprise. For times less then 10s I think it is not a big problem. Of course the slowness detector reacts on blocked AWT thread. Because this is quite frequently used feature, we've got many reports of slowness. But I think just a minority of real form openings happen in the situation when waiting for scanning that is just under way - then the UI can be blocked for a longer time. (In fact it often works even during scanning.) Overall we can't make this faster, can't do anything if java infrastructure need time for parsing. What should be done is to have the java source access run at the beginning of the open operation, out of AWT thread, allowing to cancel the operation (before it really starts loading the GUI which needs to run in AWT). Such a fix is unfortunately not straightforward and rather risky at this time of release cycle. *** Bug 177195 has been marked as a duplicate of this bug. *** *** Bug 177813 has been marked as a duplicate of this bug. *** *** Bug 178068 has been marked as a duplicate of this bug. *** *** Bug 179321 has been marked as a duplicate of this bug. *** Created attachment 93186 [details]
nps snapshot
Implemented the described fix. Now the superclass of opening form is checked at the beginning, out of AWT thread - if that needs to wait on unfinished java scanning, the IDE is not blocked, it's even possible to close the form (in state when it displays "Loading") if don't want to wait. The second part of form loading is still done in AWT thread, I see no way to do it otherwise due to manipulation with L&F settings. This may still block UI for some time for large forms. http://hg.netbeans.org/cdev/rev/c2a96cfc3295 Thanks Tomas. Integrated into 'main-golden', will be available in build *201001240200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/c2a96cfc3295 User: Tomas Pavek <tpavek@netbeans.org> Log: #160377: don't wait on scanning during form opening in AWT thread *** Bug 181732 has been marked as a duplicate of this bug. *** *** Bug 182026 has been marked as a duplicate of this bug. *** *** Bug 183229 has been marked as a duplicate of this bug. *** *** Bug 183465 has been marked as a duplicate of this bug. *** *** Bug 177860 has been marked as a duplicate of this bug. *** *** Bug 185621 has been marked as a duplicate of this bug. *** *** Bug 186133 has been marked as a duplicate of this bug. *** |