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 105372 - IDE hangs Opening a form
Summary: IDE hangs Opening a form
Status: RESOLVED DUPLICATE of bug 105234
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC All
: P1 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2007-06-01 09:53 UTC by John Baker
Modified: 2007-06-06 10:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
dump1 (24.09 KB, text/plain)
2007-06-01 09:54 UTC, John Baker
Details
dump2 (23.99 KB, text/plain)
2007-06-01 09:55 UTC, John Baker
Details
dump3 (17.98 KB, text/plain)
2007-06-01 09:55 UTC, John Baker
Details
dump4 (19.28 KB, text/plain)
2007-06-01 09:56 UTC, John Baker
Details
dump5 (18.54 KB, text/plain)
2007-06-01 09:56 UTC, John Baker
Details
dump6 (17.64 KB, text/plain)
2007-06-01 09:57 UTC, John Baker
Details
dump7 (18.38 KB, text/plain)
2007-06-01 09:57 UTC, John Baker
Details
dump8 (18.05 KB, text/plain)
2007-06-01 09:58 UTC, John Baker
Details
dump9 (19.65 KB, text/plain)
2007-06-01 09:59 UTC, John Baker
Details
dump10 (19.31 KB, text/plain)
2007-06-01 09:59 UTC, John Baker
Details
source (5.00 KB, text/plain)
2007-06-01 10:15 UTC, John Baker
Details
form file (5.85 KB, text/plain)
2007-06-01 10:15 UTC, John Baker
Details
bundle.properties (2.43 KB, text/plain)
2007-06-01 10:18 UTC, John Baker
Details
module with forms to help reproduce (1.99 MB, application/octet-stream)
2007-06-05 23:00 UTC, John Baker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Baker 2007-06-01 09:53:38 UTC
See also 105358 for form and java source

IDE is hanging when double-click on .java file (matisse form) in Project

I'm attaching some thread dumps.
Comment 1 John Baker 2007-06-01 09:54:35 UTC
Created attachment 43089 [details]
dump1
Comment 2 John Baker 2007-06-01 09:55:07 UTC
Created attachment 43090 [details]
dump2
Comment 3 John Baker 2007-06-01 09:55:41 UTC
Created attachment 43091 [details]
dump3
Comment 4 John Baker 2007-06-01 09:56:09 UTC
Created attachment 43092 [details]
dump4
Comment 5 John Baker 2007-06-01 09:56:28 UTC
Created attachment 43093 [details]
dump5
Comment 6 John Baker 2007-06-01 09:57:16 UTC
Created attachment 43094 [details]
dump6
Comment 7 John Baker 2007-06-01 09:57:42 UTC
Created attachment 43095 [details]
dump7
Comment 8 John Baker 2007-06-01 09:58:31 UTC
Created attachment 43096 [details]
dump8
Comment 9 John Baker 2007-06-01 09:59:03 UTC
Created attachment 43097 [details]
dump9
Comment 10 John Baker 2007-06-01 09:59:50 UTC
Created attachment 43098 [details]
dump10
Comment 11 John Baker 2007-06-01 10:14:19 UTC
I believe that what is wrong is I edited a bundle.properties file changed some
keys but the form file referred to the keys I changed.

Attached is the file I tried to open and bundle.properties
Comment 12 John Baker 2007-06-01 10:15:04 UTC
Created attachment 43099 [details]
source
Comment 13 John Baker 2007-06-01 10:15:37 UTC
Created attachment 43100 [details]
form file
Comment 14 John Baker 2007-06-01 10:18:09 UTC
Created attachment 43101 [details]
bundle.properties
Comment 15 Tomas Pavek 2007-06-05 15:58:26 UTC
According to the thread dumps it seems the problem is in constructing the
classpath for looking for the properties file, more precisely in finding sources
for the execution classpath entries. This happens when the properties file is
not found in the projects own sources. Have you moved the GUI form between projects?

It seems it is just terribly slow - at least according to the thread dumps there
is no deadlock, and it looks like you've taken them during 12 minutes... I have
no idea why it is so slow - obviously it must open some projects to determine
the sources, but 12 minutes is really too much. I've tried to simulate this
situation in another module - i.e. put an invalid name of properties file into a
form, but it loaded quickly without problems (just marked the invalid i18n value).

So I think I need to reproduce it in the same module (source tree) as you did to
really do the same thing. Could you point me to what sources I need to checkout
from where, etc?
Comment 16 Tomas Pavek 2007-06-05 22:35:11 UTC
So I copied the BrokenDatabaseAlertPanel form (which refers to non-existing
properties file) into the current sources of Data Sources project (according to
the package name) and opened it in M9. It showed missing strings, but that's
fine. I restarted the IDE with the form opened - it came up without problems. No
crash, no out of memory error.

So it seems something else must be the culprit - maybe too many opened projects
causing lack of memory right after the startup?
Comment 17 John Baker 2007-06-05 22:51:49 UTC
open the following modules from NB 6 trunk:

Database Explorer  (db module)
J2EE Project Support Utilities (j2ee/utilities)
JSF Project Core (visualweb/project/jsf)
Web Projects (web/project)

unzip the attached zip file and open (visualweb/dataconnectivity)

then try opening the files (Design View):
dataconnectivity/src/org/netbeans/modules/visualweb/dataconnectivity/ui/BrokenDatabaseAlertPanel.java
dataconnectivity/src/org/netbeans/modules/visualweb/dataconnectivity/ui/NoSelectedDatabaseConnectionWarning.java
Comment 18 John Baker 2007-06-05 23:00:52 UTC
Created attachment 43276 [details]
module with forms to help reproduce
Comment 19 Tomas Pavek 2007-06-06 10:33:53 UTC
Tried, but still works fine for me... 

I'd say the GUI builder is not involved in this, the cause is likely something
else. Actually it seems it is the same problem as described in issue 105776
(105234), the symptoms are very similar.

*** This issue has been marked as a duplicate of 105234 ***