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 209795 - Code completion in a php file with a LOT of class definitions freezes NetBeans
Summary: Code completion in a php file with a LOT of class definitions freezes NetBeans
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: PC Linux
: P4 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-20 14:37 UTC by Vladimir Riha
Modified: 2016-09-22 02:20 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump (183.76 KB, text/x-log)
2012-03-20 14:37 UTC, Vladimir Riha
Details
sample project (8.03 KB, application/x-gzip)
2012-03-20 14:37 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2012-03-20 14:37:17 UTC
Created attachment 116930 [details]
thread dump

When checking some failed automated test I came across issue #141992

Steps to reproduce:
- open attached project and newEmptyPHP.php file
- at the end of the file (after the last class definition) type:

$variable = 1;
$va|

Invoke CC in place of "|" => NetBeans freezes (or it takes more then 3-4 minutes to finish). I did wait a while untill scanning finished and classes appeared in Navigator window and code folding marks were shown in editor before invoking CC. Because of the #141992 it probably did worked sometime.



Product Version: NetBeans IDE Dev (Build 201203180400)
Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02
System: Linux version 3.0.0-16-generic running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2012-03-20 14:37:51 UTC
Created attachment 116931 [details]
sample project
Comment 2 Ondrej Brejla 2012-03-20 15:03:18 UTC
Omg, sorry, but it's not a real use case...and it's really crazy scenario (there is many many-times recursion call) :) I would like to close it as won't fix, but I'll let it as a P4 reminder. Thanks.
Comment 3 Vladimir Riha 2012-03-20 15:27:53 UTC
Agree, it's not exactly real-world example :)
Comment 4 amobilia 2016-09-22 02:20:15 UTC
Reproductible in 8.2rc / Dev 201609210002 

Take netbeans to crash on my computer.
Maybe adding a limit to the number of recursion should be great, with a pop-up alert saying to many class extending ?