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 245378 - Existing Projects Fail to Open or initialize
Summary: Existing Projects Fail to Open or initialize
Status: RESOLVED DUPLICATE of bug 242143
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-03 14:32 UTC by oukjweather
Modified: 2014-07-18 05:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log of the errors. (99.10 KB, text/plain)
2014-07-03 14:32 UTC, oukjweather
Details
Thread Dump (19.58 KB, text/plain)
2014-07-08 13:40 UTC, oukjweather
Details
NetBeans Dev 201407090001 Thread Dump of failure to load project. (50.74 KB, text/plain)
2014-07-15 17:24 UTC, oukjweather
Details

Note You need to log in before you can comment on or make changes to this bug.
Description oukjweather 2014-07-03 14:32:55 UTC
Created attachment 147864 [details]
messages.log of the errors.

So I loaded an existing code source that was contained within a git repository. Since I did not want the netbeans project files within the repo, I imported the source and told Netbeans to store the project files in a separate folder. In the process of doing this, once its loaded I went about my work. After closing Netbeans with the project still open, I try to rerun Netbeans and it gets hanged trying to open the project. When you click on the project it stuck saying "Initializing". Nothing is responsive, the only way to kill it is force quit it. I tried deleting the projectui.properties file, and then reopening the project and that got hanged at what it says is 10% complete.
Comment 1 Tomas Hurka 2014-07-04 07:57:10 UTC
Please take a thread dump, when NetBeans is stuck at those 10% complete and attach it to this issue. Thanks.
Comment 2 oukjweather 2014-07-08 13:40:33 UTC
Created attachment 147937 [details]
Thread Dump

So it failed to initialize again and here is the thread dump from that failed initialization. The setup is slightly different from last time, now the project files are co-located with the git repository and the source files. The issue of loading still remains so it would appear the project files being located separately was not the problem here.
Comment 3 Tomas Hurka 2014-07-08 13:52:30 UTC
It looks like your project has a lot of files. Since it is PHP project reassigning to PHP for further evaluation.
Comment 4 Tomas Mysik 2014-07-15 14:37:42 UTC
Attaching of the source files listener [1] takes sometimes a long time, marking as a duplicate of an existing issue.

BTW could you please try NetBeans 8.0 whether the result is the same?

Thanks for reporting.
[1] org.netbeans.modules.php.project.PhpProject.addSourceDirListener

*** This bug has been marked as a duplicate of bug 242143 ***
Comment 5 oukjweather 2014-07-15 17:24:10 UTC
Created attachment 148070 [details]
NetBeans Dev 201407090001 Thread Dump of failure to load project.
Comment 6 oukjweather 2014-07-15 17:26:37 UTC
The particular project has failed to load in 7.4, 8.0 and the latest dev version. It gets to 10% and stops. I sat on it a while (20 minutes) to see if it would go any further and it did not make any further progress.
Comment 7 Tomas Mysik 2014-07-16 06:05:51 UTC
Well, it does not stop actually, it is adding listener on your source files (which apparently takes time for your project). How many source files do you have? Do you have really just _source_ files (PHP, JS, CSS, HTML, ...) underneath your Source Files node in the IDE? It sometimes happens that people have also other files (PSD, generated documentation etc.) there which is "incorrect" - in such case, ignoring folder(s) with these files - via Project Properties -could help (these folders are then ignored in the Projects view but still accessible in the Files view).
Comment 8 oukjweather 2014-07-16 13:58:53 UTC
(In reply to Tomas Mysik from comment #7)
> Well, it does not stop actually, it is adding listener on your source files
> (which apparently takes time for your project). How many source files do you
> have? Do you have really just _source_ files (PHP, JS, CSS, HTML, ...)
> underneath your Source Files node in the IDE? It sometimes happens that
> people have also other files (PSD, generated documentation etc.) there which
> is "incorrect" - in such case, ignoring folder(s) with these files - via
> Project Properties -could help (these folders are then ignored in the
> Projects view but still accessible in the Files view).

So my project has 3296 files associated with it, roughly 2000 of which are images. A handful of the files are pdfs and xml files. The other 1000 + files are true source files. Since I am unable to access the project (it won't load), do I need to create a new one and at project creation have it ignore those folders?
Comment 9 Tomas Mysik 2014-07-17 06:00:12 UTC
(In reply to oukjweather from comment #8)
> So my project has 3296 files associated with it,

It is not too many. For testing, we usually use mediawiki (6150 files, size 94M) and there are no problems with opening of such project in NetBeans (on my PC, it takes between 1 and 2 seconds).

Do you have your project on a local filesystem? Some users sometimes use remote filesystems (ssh) and these are slow, of course.

> Since I am unable to access the project (it
> won't load), do I need to create a new one and at project creation have it
> ignore those folders?

Unfortunately not, it can be done only in the Project Properties dialog.
Comment 10 oukjweather 2014-07-17 14:25:38 UTC
Yeah I think its something more than just slow loading. Its a total of 3262 files taking up a total of 167.6 MB. I'm wondering if maybe its having issues with the symbolic links that are present, because in some cases they point to network resources that are not present or available in the development environment. 

If you delete the project files and attempt to start with a clean slate, and then create a new project on some of our machines it crashes at 40% loaded. If you open  up the same project as an existing project it crashes at 10%. One of our machines managed to create the project successfully, didn't get far though as it crashed not long later. I say crashes loosely when opening an existing project, as it is still semi responsive unlike the create case. In the create case it crashes hard and the only way out is to force quit it. If you don't open a project but instead open the relevant files it doesn't have any issues. I have tried creating other projects that had a completely different set of source files and they also crashed hard at 40% processed.
Comment 11 Tomas Mysik 2014-07-18 05:52:50 UTC
Please, add results of your investigation to the issue #242143 (and use that one for any future comments since this issue is only its duplicate).

Thanks!