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.
Thread dump attached. IDE is freezing when (probably) trying to invoke html code completion. I found this issue in this particular case so far but will report when I find another case, immediately. Product Version: NetBeans IDE Dev (Build 2009-05-08_15-03-54 ) Java: 1.6.0_14-ea; Java HotSpot(TM) 64-Bit Server VM 14.0-b12 steps to reproduce: consider this code: <?php /* * define("DB_HOST", "localhost"); $conn = mysql_connect (DB_HOST, DB_USER, DB_PASS) OR DIE ("Can't connect to database"); mysql_select_db(DB_DATA, $conn); mysql_set_charset("utf8", $conn); */ include("../configs/DB.inc.php"); include("../php/DBClass.php"); include("../php/CompanyClass.php"); $db = new DB(); $db->_construct(); if (isset($_POST['ic_input'])) { //THIS IS A PLACE WE WILL ADD A NEW CODE $company = new Company(); $testIc = $company->testIc($ic); echo $testIc['msg']; return $testIc['result']; } ?> try to write on place I marked in code this: ?> <script language="javascript"> <? when you are done with javascript"> it should offer you code completion to close this tag. IDE freezes instead. I'll try to reproduce on lower jdk because this is ea version ... but anyway, the only workaround is to kill IDE and loose your changes.
Created attachment 81828 [details] thread dump using visualvm
reproduced on Product Version = NetBeans IDE Dev (Build 2009-05-08_15-03-54 ) Operating System = Linux version 2.6.28-11-generic running on amd64 Java; VM; Vendor = 1.6.0_13; Java HotSpot(TM) 64-Bit Server VM 11.3-b02; Sun Microsystems Inc. that probably tells us is not a jdk related bug
I think I can reproduce it, although with different steps. It's not a deadlock, but rather something around embeddings...
This seems to be caused by Marek's http://hg.netbeans.org/main-silver/rev/7bab9553c2c1. I'm going to attach a patch that IMO fixes the problem.
Created attachment 81974 [details] Patch for JsEmbeddingProvider
Marku, please review the patch and apply. Thanks
fixed in web-main#87ef93887732, thanks Vito, but just reassigning is enought.
Integrated into 'main-golden', will be available in build *200905130201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/87ef93887732 User: Marek Fukala <mfukala@netbeans.org> Log: #164797 - IDE is freezing when invoking code completion
v.