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 95995

Summary: javascript in a html file throttles IDE
Product: web Reporter: _ hair <hair>
Component: HTML EditorAssignee: Marek Fukala <mfukala>
Status: VERIFIED FIXED    
Severity: blocker CC: lgrela, mschovanek
Priority: P1 Keywords: PERFORMANCE
Version: 6.x   
Hardware: All   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description _ hair 2007-02-20 09:09:48 UTC
NetBeans trunk build from yesterday. jdk1.6. linux 2.6.18. gnome.

My velocity templates are registered as html files and are edited accordingly in
netbeans.

A few of my templates contain javascript. When I try to open these files the IDE
throttles and i must force kill it.

At the command line netbeans logs during the throttle:

INFO [org.netbeans.modules.html.editor.coloring.EmbeddingUpdater]: Embedding for
text/javascript created [5918 - 6192].
INFO [org.netbeans.modules.html.editor.coloring.EmbeddingUpdater]: Embedding for
text/javascript created [5918 - 6192].
INFO [org.netbeans.modules.html.editor.coloring.EmbeddingUpdater]: Embedding for
text/javascript created [5918 - 6192].
INFO [org.netbeans.modules.html.editor.coloring.EmbeddingUpdater]: Embedding for
text/javascript created [5918 - 6192].
INFO [org.netbeans.modules.html.editor.coloring.EmbeddingUpdater]: Embedding for
text/javascript created [5918 - 6192].
INFO [org.netbeans.modules.html.editor.coloring.EmbeddingUpdater]: Embedding for
text/javascript created [5918 - 6192].
INFO [org.netbeans.modules.html.editor.coloring.EmbeddingUpdater]: Embedding for
text/javascript created [15757 - 16042].
INFO [org.netbeans.modules.html.editor.coloring.EmbeddingUpdater]: Embedding for
text/javascript created [15757 - 16042].
INFO [org.netbeans.modules.html.editor.coloring.EmbeddingUpdater]: Embedding for
text/javascript created [15757 - 16042].
INFO [org.netbeans.modules.html.editor.coloring.EmbeddingUpdater]: Embedding for
text/javascript created [15757 - 16042].
INFO [org.netbeans.modules.html.editor.coloring.EmbeddingUpdater]: Embedding for
text/javascript created [15757 - 16042].
INFO [org.netbeans.modules.html.editor.coloring.EmbeddingUpdater]: Embedding for
text/javascript created [15757 - 16042].

and on and on...



One examples of the javascript is:

                        <script type="text/javascript"><!--
                            var focusControl = document.forms["sf"].elements["q"];
                            if (focusControl.type != "hidden" &&
!focusControl.disabled) {
                        focusControl.focus();
                            } // -->
                        </script>
Comment 1 Marek Fukala 2007-02-20 09:17:25 UTC
Can you please attach at least of the files causing the problem? If I understand
it right the CPU is on 100% after the html file is opened right? Could you do
some threaddumps during the load? Thanks in advance.
Comment 2 Martin Schovanek 2007-02-27 15:18:21 UTC
Cannot reproduce, please can you attach a steps to reproduce or a sample .html
file? For now marking as incomplete.
Comment 3 Marek Fukala 2007-04-25 14:30:28 UTC
The user hasn't provided the requested steps to reproduce so far, moreover there
have been done some performance fixes in JSP editor recently, so I belive the
problem is already fixed. Closing as fixed, please reopen and add the steps to
reproduce if you can still reproduce on a latest build.
Comment 4 Jindrich Sedek 2007-07-04 09:19:58 UTC
verified
I cannot reproduce neither
NetBeans IDE Dev (Build 200707031200)