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.
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.
Please take a thread dump, when NetBeans is stuck at those 10% complete and attach it to this issue. Thanks.
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.
It looks like your project has a lot of files. Since it is PHP project reassigning to PHP for further evaluation.
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 ***
Created attachment 148070 [details] NetBeans Dev 201407090001 Thread Dump of failure to load project.
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.
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).
(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?
(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.
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.
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!