Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 188155 - Complete never ends, CPU at 100%
Complete never ends, CPU at 100%
Product: php
Classification: Unclassified
Component: Editor
PC Linux
: P1 (vote)
: 7.0
Assigned To: rmatous
: 187989 188103 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2010-06-28 13:41 UTC by rogojine
Modified: 2010-07-22 17:46 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT

message log, bug happened at the start of the session (58.36 KB, application/octet-stream)
2010-06-28 13:41 UTC, rogojine
thread dump, CPU at 100% (19.10 KB, text/plain)
2010-06-28 13:42 UTC, rogojine
compressed log, bug happened after some time (72.21 KB, application/bzip2)
2010-06-28 13:43 UTC, rogojine

Note You need to log in before you can comment on or make changes to this bug.
Description rogojine 2010-06-28 13:41:23 UTC
Created attachment 100455 [details]
message log, bug happened at the start of the session

When dealing with PHP code, the completion sometimes starts but never ends. A tool tip prints "Please wait" (not the exact message that is in French), then the CPU goes to 100%, and the completion list never shows up. I can still move the cursor and continue to edit, but the CPU stays at its max until I restart Netbeans.

I could not find an easy way to reproduce this bug, but it happens quite frequently here. I word on a small to medium sized project in PHP, using the Yii framework.

As recommended in the wiki FaqScanningAndIndexingIssues, I'll attach detailed message logs. A bzipped one for when it happened in the middle a session. A second one for the same problem happening at start (I had to close and reopen the project).
I'll also attach a thread dump.

Unless I missed something, I can't add more than one file to the original report.
Comment 1 rogojine 2010-06-28 13:42:17 UTC
Created attachment 100456 [details]
thread dump, CPU at 100%
Comment 2 rogojine 2010-06-28 13:43:07 UTC
Created attachment 100457 [details]
compressed log, bug happened after some time
Comment 3 rogojine 2010-07-14 19:48:35 UTC
Here is a way to reproduce this bug. I did this with `netbeans --userdir ~/netbeans-config-tmp` to have a default configuration and no custom plugins.

1. Download and extract Yii 1.1.3.
2. Create a new project "PHP with sources" from "yii-1.1.3/demos/blog".
3. Add "yii-1.1.3/framework" to the project include path.
4. Open the file "Source Files/protected/models/Lookup.php".
5. Go to the last code line and complete (ctrl-space) just after "self::".
   CPU goes to 100%.

After this, any attempt to complete anything gives the tooltip "Please wait...".
Comment 4 rogojine 2010-07-14 19:52:14 UTC
(In reply to comment #3)
The URL to download the Yii framework archive was mysteriously converted into a Netbeans bug report. Please ignore this URL and go to (without "hxxp" prefix, I hope it won't be mangled).
Comment 5 rmatous 2010-07-16 11:35:38 UTC
*** Bug 187989 has been marked as a duplicate of this bug. ***
Comment 6 rmatous 2010-07-16 13:42:03 UTC

This issue might be also fixed into release 6.9.1, but I need verification that the fix really helps. Thanks to rogojine I was able to reproduce the never ending loop, so at least in this usecase this fix works.

Problem description: never ending loop for type inference when e.g. method "a" calls method "b"  and method "b" calls method "a" (on different types but with the same name). 

Justification for fixing it into relase 6.9.1:
-many duplicates
-complains about it on forums, blogs (

For verification use please #2079 build (or newer):
Comment 7 rmatous 2010-07-16 13:59:44 UTC
*** Bug 188103 has been marked as a duplicate of this bug. ***
Comment 8 Erno Mononen 2010-07-16 14:57:20 UTC
I had a look at the diff on radek's request; the change looks safe and the logic behind it seems sound.
Comment 9 rmatous 2010-07-16 15:53:34 UTC
Thanks François for verification:
Comment 10 rmatous 2010-07-16 16:20:44 UTC
Transplanted to release691:
Comment 11 Quality Engineering 2010-07-17 03:47:01 UTC
Integrated into 'main-golden', will be available in build *201007170001* on (upload may still be in progress)
User: Radek Matous <>
Log: #188155 - Complete never ends, CPU at 100%

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo