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 111036 - Hang editing jsp/css files
Summary: Hang editing jsp/css files
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: languages (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jan Jancura
URL:
Keywords: PERFORMANCE
: 111099 111130 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-07-26 02:12 UTC by _ krystyna
Modified: 2007-08-07 01:20 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
hangjspvw (18.67 KB, application/octet-stream)
2007-07-26 02:13 UTC, _ krystyna
Details
hangplain (56.20 KB, application/octet-stream)
2007-07-26 02:14 UTC, _ krystyna
Details
hangcss (20.84 KB, application/octet-stream)
2007-07-26 02:14 UTC, _ krystyna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ krystyna 2007-07-26 02:12:49 UTC
Deadlock.netbeans build 2043 (0725) build
XP
JDK1.6.0_01, 1.6.0_02
Glassfish V2 b56
#1
1. created a 1.4 vwp project.
2. switch to jsp view and attempt to edit
3. get hang (see attachments for thread dumps)
>have to quit IDE task via taskmanager to recover

#2
1. created an ee5 plain web project
2. attempt to edit opened jsp file
>IDE hangs similarly


#3
1. in a vwp ee5 project, created on webpages node in project view, a new cascading style sheet
2. open file and attempt to paste some copied data
>IDE hangs
Comment 1 _ krystyna 2007-07-26 02:13:41 UTC
Created attachment 45737 [details]
hangjspvw
Comment 2 _ krystyna 2007-07-26 02:14:23 UTC
Created attachment 45738 [details]
hangplain
Comment 3 _ krystyna 2007-07-26 02:14:49 UTC
Created attachment 45739 [details]
hangcss
Comment 4 Marek Fukala 2007-07-26 19:54:23 UTC
AWT event dispatch thread is busy repainting the content of the editor - the same code running in all of the threaddumps:

"AWT-EventQueue-1" prio=6 tid=0x3116f800 nid=0x1574 runnable [0x31d2d000..0x31d2fd14]

   java.lang.Thread.State: RUNNABLE

        at java.util.ArrayList.get(ArrayList.java:322)

        at java.util.AbstractList$Itr.next(AbstractList.java:345)

        at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1010)

        at org.netbeans.api.languages.ASTItem.findPath(ASTItem.java:148)

        at org.netbeans.api.languages.ASTItem.findPath(ASTItem.java:135)

        at
org.netbeans.modules.languages.features.SemanticHighlightsLayer$Highlights.moveNext(SemanticHighlightsLayer.java:88)

        at org.netbeans.spi.editor.highlighting.support.OffsetsBag.addAllHighlightsImpl(OffsetsBag.java:552)

        at org.netbeans.spi.editor.highlighting.support.OffsetsBag.addAllHighlights(OffsetsBag.java:160)

        - locked <0x05ea1bd0> (a org.netbeans.modules.editor.lib2.highlighting.OffsetGapList)

        at org.netbeans.modules.editor.lib2.highlighting.CompoundHighlightsContainer.updateCach
...

looks like an apparent regression of the Hanz recent migration from old DrawLayer-s api to the new highlight layers.
Reassigning to Hanz for evaluation.
Comment 5 Marek Fukala 2007-07-26 20:03:32 UTC
*** Issue 111099 has been marked as a duplicate of this issue. ***
Comment 6 Marek Fukala 2007-07-27 10:27:07 UTC
*** Issue 111130 has been marked as a duplicate of this issue. ***
Comment 7 Jan Jancura 2007-07-27 10:50:03 UTC
Has already been fixed:
User: jjancura
Date: 2007/07/26 02:08:56

Modified:
   languages/engine/src/org/netbeans/modules/languages/features/SemanticHighlightsLayer.java

Log:
 fixing cycle

File Changes:

Directory: /languages/engine/src/org/netbeans/modules/languages/features/
=========================================================================

File [changed]: SemanticHighlightsLayer.java
Url:
http://languages.netbeans.org/source/browse/languages/engine/src/org/netbeans/modules/languages/features/SemanticHighlightsLayer.java?r1=1.2&r2=1.3
Delta lines:  +2 -0
-------------------
--- SemanticHighlightsLayer.java	25 Jul 2007 12:12:29 -0000	1.2
+++ SemanticHighlightsLayer.java	26 Jul 2007 09:08:53 -0000	1.3
@@ -117,6 +117,8 @@
                 if (endOffset1 > startOffset1)
                     return true;
                 endOffset1 = path.getLeaf ().getEndOffset ();
+                if (endOffset1 == startOffset1)
+                    endOffset1++;
             } while (endOffset1 < endOffset);
             return false;
         }




---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@languages.netbeans.org
For additional commands, e-mail: cvs-help@languages.netbeans.org

Comment 8 _ krystyna 2007-08-07 01:20:29 UTC
Verified fixed.