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 236647 - Long delay of project open without any UI response
Summary: Long delay of project open without any UI response
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2013-10-02 11:51 UTC by Tomas Danek
Modified: 2016-07-07 08:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
snapshot (388.87 KB, application/octet-stream)
2013-10-02 11:51 UTC, Tomas Danek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Danek 2013-10-02 11:51:14 UTC
Created attachment 140721 [details]
snapshot

Product Version: NetBeans IDE 7.4 (Build 201310012201)
Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b56
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43
System: Mac OS X version 10.8.5 running on x86_64; UTF-8; en_US (nb)
User directory: /Users/tomas/Library/Application Support/NetBeans/7.4
Cache directory: /Users/tomas/Library/Caches/NetBeans/7.4
-----------------------
- installed ide, started with fresh userdir
- installed jenkins stapler plugins from UC (probably not necessary)
- opened dashboard-view-plugin .....nothing happens for ~5-10s (no visual feedback, no progress,..), and after that project appears in projects view

....to sum up - some indication that project opening is in progress would definitely help.

Attaching npss
Comment 1 Petr Cyhelsky 2013-10-02 12:02:03 UTC
the first 7s the org.netbeans.modules.project.ui.actions.OpenProject thread is waiting at org.netbeans.api.project.ProjectManager$2.run(ProjectManager.java:256)
the notify finally comes after the project is build and lots of other things is done from
org.netbeans.modules.project.ui.ProjectChooserAccessory$ModelUpdater thread
it seems that the maven implementation called from org.netbeans.api.project.ProjectManager.createProject() does much more work than ie j2se implementation
Comment 2 Milos Kleint 2013-10-02 13:43:57 UTC
(In reply to Petr Cyhelsky from comment #1)
> the first 7s the org.netbeans.modules.project.ui.actions.OpenProject thread
> is waiting at
> org.netbeans.api.project.ProjectManager$2.run(ProjectManager.java:256)
> the notify finally comes after the project is build and lots of other things
> is done from
> org.netbeans.modules.project.ui.ProjectChooserAccessory$ModelUpdater thread
> it seems that the maven implementation called from
> org.netbeans.api.project.ProjectManager.createProject() does much more work
> than ie j2se implementation


right but it's doing the "more stuff" like since day one. the first project to load not only spends time loading itself but also initializing the maven embedder (which is a complex object tree created by guice) 


parts of this issue are wontfix (the code creating maven project stays as is), parts are unfixable (Project manager accessing the same project directory from multiple threads just has to put the 2nd thread on hold until the project is loaded.

project loading in thread OpenProject happens before the call to OpenProjectList.getDefault().open() that most likely is the one showing the progress bar, IMHO not worth the trouble fixing this, too many apis/signatures to be changed for minor improvement invisible to most users.
Comment 3 Martin Balin 2016-07-07 08:38:46 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss