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 190543

Summary: Generating doc block will Netbeans cause to hang
Product: php Reporter: mdekrijger
Component: ProjectAssignee: issues@php <issues>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description mdekrijger 2010-09-23 07:28:41 UTC
Product Version = NetBeans IDE 6.9.1 (Build 201007282301)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_20
Runtime = Java HotSpot(TM) Client VM 16.3-b01

Sometimes, generateing a docblock (typing /**<enter> above a method) will cause Netbeans to hang. Everything in the IDE is unusable. CPU load isn't high, mouse cursor changes into the select cursor. Only thing I can do is kill netbeans in the task manager, and restart it. I cant figure out why this behaviour seems to happen now and then. I do know it always crashes on the same class and same method, but I can't predict on wich class/method this will happen. It must have something to do with this class and method specific.

As soon as I figure out when this behaviour occurs again, I will surely update this issue.
Comment 1 mdekrijger 2010-09-23 07:43:57 UTC
First of all I forgot to mention that this problem occurs within PHP development workspaces. 

Ok, tried to reproduce it;

Restarted Netbeans and went to the specific class. I don't think it matters wich class I take.

During the "scanning projects" task, it is no problem, because the docblock will be empty, because it doesn't know its context yet (because of "scanning projects")

After "scanning projects" task completes, it also seems to work. It tries to find the parameters and return types. And generates a default docblock.

So it doesn't seem to be class / method dependant.

I think I found the problem. When I type "/**" and wait for a few seconds, and then press <enter> it's ok.

But if I immediately press <enter> it will cause to hang.

Hope this is enough information to reproduce the problem, if additional information is needed, please let me know on mdekrijger [at] e-sites [dot] nl
Comment 2 Petr Pisl 2010-10-06 12:58:29 UTC

*** This bug has been marked as a duplicate of bug 190622 ***