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 137931 - Matisse halts for several minutes
Summary: Matisse halts for several minutes
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-23 08:42 UTC by xylifyx
Modified: 2009-02-20 11:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump when netbeans is unresponsive (42.97 KB, text/plain)
2008-06-23 08:43 UTC, xylifyx
Details
Screendump showing properties table partially rendered (181.97 KB, image/png)
2008-06-23 08:44 UTC, xylifyx
Details

Note You need to log in before you can comment on or make changes to this bug.
Description xylifyx 2008-06-23 08:42:43 UTC
I have project with some JPanel forms. When I load some of these, netbeans is sometimes blocked for several minutes.
Sometimes it is when I load the form, sometimes when I select a subcomponent in the form. I have attached a thread dump
where you will see the event queue is busy scanning files. Visually it seems that the bug is somewhere in the Properties
table where most of the fields are blank, except the name field of the property action. It is a permanent bug that makes
netbeans impossible to work with.

 "AWT-EventQueue-1" prio=6 tid=0x0104c3d0 nid=0x8d0a00 runnable [0xb363a000..0xb363cd90]
Jun 23 09:28:33 erikmartino [0x0-0x22022].NetBeans 6.1[286]: 	at java.io.UnixFileSystem.canonicalize0(Native Method)
Jun 23 09:28:33 erikmartino [0x0-0x22022].NetBeans 6.1[286]: 	at
java.io.UnixFileSystem.canonicalize(UnixFileSystem.java:157)
Jun 23 09:28:33 erikmartino [0x0-0x22022].NetBeans 6.1[286]: 	at java.io.File.getCanonicalPath(File.java:531)
Jun 23 09:28:33 erikmartino [0x0-0x22022].NetBeans 6.1[286]: 	at java.io.File.getCanonicalFile(File.java:555)
Jun 23 09:28:33 erikmartino [0x0-0x22022].NetBeans 6.1[286]: 	at
org.openide.filesystems.FileUtil.normalizeFileOnMac(FileUtil.java:1365)
Comment 1 xylifyx 2008-06-23 08:43:55 UTC
Created attachment 63232 [details]
Thread dump when netbeans is unresponsive
Comment 2 xylifyx 2008-06-23 08:44:56 UTC
Created attachment 63233 [details]
Screendump showing properties table partially rendered
Comment 3 Peter Pis 2008-06-23 09:20:49 UTC
Reassigning to "form" for evaluation.
Comment 4 Tomas Pavek 2008-07-01 16:47:00 UTC
Looks like the app framework support repeatedly searching for the Application class in the project. Does your project
use Swing Application Framework? Do you have a valid Application subclass in there? Can you check if the class name is
present in the project.xml file?

This is the part of stacktrace doing the scan:
...
org.netbeans.modules.swingapp.AppFrameworkSupport.scanFolderForApplication(AppFrameworkSupport.java:333)
org.netbeans.modules.swingapp.AppFrameworkSupport.findApplicationClass(AppFrameworkSupport.java:310)
org.netbeans.modules.swingapp.AppFrameworkSupport.getApplicationClassName(AppFrameworkSupport.java:193)
org.netbeans.modules.swingapp.AppFrameworkSupport.getApplicationClassName(AppFrameworkSupport.java:152)
org.netbeans.modules.swingapp.ResourceUtils.createDesignResourceMap(ResourceUtils.java:95)
org.netbeans.modules.swingapp.ResourceUtils.getDesignResourceMap(ResourceUtils.java:126)
org.netbeans.modules.swingapp.ActionManager.getActionsFromFile(ActionManager.java:1273)
org.netbeans.modules.swingapp.ActionManager.getActions(ActionManager.java:357)
org.netbeans.modules.swingapp.ActionEditor.getApplicationActions(ActionEditor.java:362)
org.netbeans.modules.swingapp.ActionEditor.scanForActions(ActionEditor.java:341)
org.netbeans.modules.swingapp.ActionEditor.getTags(ActionEditor.java:317)
...
Comment 5 xylifyx 2008-07-02 08:07:45 UTC
No my project.xml didn't contain any application-class definitions. I created a new project where the line was present
and edited my old project.xml to look similar. The GUI builder is now faster than I have ever seen it before :) problem
solved. But this is not very user friendly, I would never have guessed that solution. But thanks a lot.
Comment 6 Tomas Pavek 2008-07-02 15:01:09 UTC
Good to see you were able to fix the problem.
I've integrated a fix to store the found application class in the project auxiliary configuration if not stored there yet.

http://hg.netbeans.org/main/rev/9fd9393cc576
Comment 7 Quality Engineering 2008-07-03 04:32:08 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #296 build
Changeset: http://hg.netbeans.org/main/rev/9fd9393cc576
User: Tomas Pavek <tpavek@netbeans.org>
Log: #137931: try to store found application class in project even if it was not stored there yet
Comment 8 pribyl 2009-02-20 11:40:38 UTC
Product Version: NetBeans IDE Dev (Build 200902161401)
Java: 1.6.0_12-ea; Java HotSpot(TM) Server VM 11.0-b17
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)

Verified