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.
[ BUILD # : 200511151900 ] [ JDK VERSION : 1.5.0_05 ] When editing a jsp page I used a <jsp:userBean> tag and was able to cause netbeans to completely freak out. The CPU runs at 100% and netbeans starts using more and more memory. How it happened was I typed: <jsp:userBean id=" and forgot the name I was using for a specific id so I went to open a different file. I noticed after only a few seconds that netbeans was becoming extremely sluggish. I then looked and netbeans heap (memory gui) was cycling constantly and my cpu was running at 100%. I then removed the tag and all was fine. It looks like it can be any tag but it must be right before a jsp scriplet <c:set var=" <% int i = 0; %> It also looks like if I close the file with the error still there I can never get netbeans to quit running wild. I noticed that this: ins3 = java.awt.Insets[top=0,left=0,bottom=0,right=0] shows up a bunch of times on the console during this error. Also if I close the file then try to quit netbeans, it takes a very long time for the ide to shutdown. I will attache a file to reproduce.
Created attachment 27110 [details] jsp with incomplete tag - warning will probably cause your netbeans to freak out!
sorry typo: should read <jsp:useBean>
Reassigning to web module for evaluation.
This must be a stupid regression.
Created attachment 27157 [details] The stack dump
Marek, I was able to reproduce and I attached the stack dump. According the stack it's connected with folding.
Likely introduced by the JSP folding code redesign (the code has been completely rewritten).
This is neither deadlock nor dataloss - its about performance degradation. User can save his data and restart netbeans. It is also possible to edit the "nasty" JSP file.
Minimal version to reproduce: <jsp:x a=" <%%>"/> The problem is caused by a problem in JSP's SyntaxElement-s where the next SE after Tag's SE returns the previous SE as next element => cycle.
fixed Checking in JspSyntaxSupport.java; /cvs/web/jspsyntax/src/org/netbeans/modules/web/core/syntax/JspSyntaxSupport.java,v <-- JspSyntaxSupport.java new revision: 1.77; previous revision: 1.76 done
Seems to be running as expected now. Thanks