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.
From the Project tabs, right click on a folder and 'add new file' (a PHP file) Enter the file name in the dialog. Click 'Finish', then nothing happens. The Finish button stays pushed in and the app crashes. The CPU is at 100% 'handles' is going up and down at about 40 a second. There is NMIndexStoreSvr.exe is also at 100% CPU
Please, provide your: - IDE version (Help > About) - IDE logs (in <nb-userdir [1]>/var/log/messages) - attach, do not copy & paste Just reopen this issue. Thanks. [1] can be found in Help > About dialog
(In reply to comment #1) > - IDE version (Help > About) I meant "IDE and Java version" (both can be found in Help > About dialog).
Created attachment 114683 [details] messages.log Product Version: NetBeans IDE 7.1 (Build 201112071828) Java: 1.6.0_29; Java HotSpot(TM) Client VM 20.4-b02 System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb) User directory: C:\Documents and Settings\David Folan\.netbeans\7.1 Cache directory: C:\Documents and Settings\David Folan\.netbeans\7.1\var\cache Scanning projects is always stuck at 80% and uses 100% CPU
opening bug
Created attachment 114684 [details] profile of the IDE I read the FAQ and did a profile dump like it asks for
I removed the cornishfoodmarket project from the Projects tab and the 'scanning' now completes
Thanks for the profiler snapshot, looking at it...
Seems to be a problem in PHP editor - please evaluate, thanks. org.netbeans.modules.php.editor.model.impl.ScopeImpl.filter() 65 invocations 6602 ms java.util.ArrayList.size() 3774 ms 185 invocations @reporter: Could you, please, provide more information about your "cornishfoodmarket" project? How big is it? Thanks.
Can you extract that parts, which doesn't cause that problem and leave there just the smallest one which cases that problem and can you provide that "smaller" project to us? Thanks.
And please, can you make a bigger snapshot? This is quite small...
Maybe you have in a project some really really big file with just one or two (three? ;) big blocks and with a bunch of assignments in there? Please, try to figure out what exactly causes that problem. Thanks!
I have recreated the project and added it to my 'projects' and now NetBeans is stuck on 71% (cornishfoodmarket) so I will attempt to figure out where the error is on Monday 6th Jan, 2012 The project is a small Zend Framework + Propel, I have a lot of other bigger projects with ZF but this is the only one using Propel.
how do you force 'scanning projects...' to start? Adding and removing files from a project doesn't seem to do it. Just before the 'scanning projects...' stops working it says something like 'initializing HTML parser' (this only flashed up for a second)
Sorry, I have that wrong, it says 'initializing HTML validator'
(In reply to comment #13) > how do you force 'scanning projects...' to start? Source > Scan for External Changes will do that.
For anyone who is following this, I emailed part of a project that was the cause of this error to obrejla@netbeans.org. It turns out that Expression Engine (a PHP CMS we use) has a 1meg PHP file (iptonation.php) which causes NetBeans to choke.
Created attachment 114735 [details] PHP File for performance test Use this file for test of the scanning performance (normally it takes about 25 minutes...after fix it should take about 2.5secs).
Fixed in web main: http://hg.netbeans.org/web-main/rev/3f8f870815a3 7.1 patch 1 candidate. Vlado, please, can you verify that? Thanks.
Seems fine, Scanning finishes very quickly and IDE is responsive as it should be. Product Version: NetBeans IDE Dev (Build web-main-6680-on-20120109) Java: 1.7.0; Java HotSpot(TM) 64-Bit Server VM 21.0-b17 System: Linux version 2.6.38-13-generic running on amd64; UTF-8; en_US (nb)
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/3f8f870815a3 User: Ondrej Brejla <obrejla@netbeans.org> Log: #206981 - "New PHP file" CRASHES NetBeans 7.1
verified 7.1.1 Product Version: NetBeans IDE 7.1.1 (Build 201202122200)