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 188718 - Starting PHPDoc comment in code causes freeze
Summary: Starting PHPDoc comment in code causes freeze
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Petr Pisl
Keywords: THREAD
: 189351 190622 (view as bug list)
Depends on:
Reported: 2010-07-15 23:37 UTC by microugly
Modified: 2010-10-26 09:42 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

Thread dump after freeze occurs (22.78 KB, text/plain)
2010-07-16 05:13 UTC, microugly
Message Log (26.79 KB, application/octet-stream)
2010-07-16 08:58 UTC, microugly

Note You need to log in before you can comment on or make changes to this bug.
Description microugly 2010-07-15 23:37:15 UTC
When starting a PHPDoc comment with '/**' and pressing <Enter> Netbeans will often freeze.

It doesn't happen everytime, but I can replicate the error within a few tens of attempts.

Netbeans freezes, but doesn't crash.  I have to kill the process in task manager.  I've left Netbeans overnight, just in case it was thinking for a long time, but it was still frozen in the morning.

When replicating, I'm adding the comment to a class method.
Comment 1 Tomas Mysik 2010-07-16 04:43:58 UTC
Please, reopen this issue and attach profiler snapshot [1] or several thread dumps [2] taken during the freeze.

Comment 2 microugly 2010-07-16 05:13:55 UTC
Created attachment 100873 [details]
Thread dump after freeze occurs

Thread-dump was grabbed with the adaptj stacktrace tool.
Comment 3 Tomas Mysik 2010-07-16 06:44:54 UTC
Parsing & EditorBracesMatching threads - please evaluate, thanks.

BTW PHPBracketCompleter.beforeBreak() is run in AWT - is it OK, Petře?

Let's increase to P2, feel free to change after evaluation. Thanks.
Comment 4 Petr Pisl 2010-07-16 08:11:57 UTC
This is known, but unfortunately I'm not able to reproduce it. The problem is that something doesn't release a lock and all editor features are waiting for the lock. 

Microugly, do you have installed any other plugin, that is not in the standard distro? Could you please attach the message.log file? Thanks
Comment 5 Petr Pisl 2010-07-16 08:44:19 UTC
I have play with it more and now I'm able to reproduce. I'm going to fix it.
Comment 6 microugly 2010-07-16 08:58:55 UTC
Created attachment 100875 [details]
Message Log

I have two other log files, if you need them.

I don't believe I have any additional plugins installed.
Comment 7 Petr Pisl 2010-07-16 10:08:14 UTC
I have fixed this. At least I'm not able to reproduce it any more. The fix will be available in the next build at hutson Should be available at build number #2077. 

Could you check it? Just download the zip file, unzip and run from command line with --userdir switch. Thanks
Comment 8 Tomas Mysik 2010-07-16 14:47:38 UTC
Comment 9 Quality Engineering 2010-07-17 03:46:16 UTC
Integrated into 'main-golden', will be available in build *201007170001* on (upload may still be in progress)
User: Petr Pisl <>
Log: #188718 -  Starting PHPDoc comment in code causes freeze
Comment 10 microugly 2010-07-18 22:05:12 UTC
I can confirm that the problem appears to be fixed in 201007170001.

Thank you for the prompt response.
Comment 11 Petr Pisl 2010-10-12 14:14:53 UTC
*** Bug 189351 has been marked as a duplicate of this bug. ***
Comment 12 Petr Pisl 2010-10-13 13:27:15 UTC
*** Bug 190622 has been marked as a duplicate of this bug. ***
Comment 13 Petr Suchomel 2010-10-18 09:27:39 UTC
Backported into release692
Comment 14 Filip Zamboj 2010-10-22 11:51:48 UTC
verified in 6.9 patch 2