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 226816 - IDE hangs upon opening/scanning HTML
Summary: IDE hangs upon opening/scanning HTML
Status: RESOLVED INCOMPLETE
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.3
Hardware: PC Windows Vista
: P3 normal with 1 vote (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-28 08:17 UTC by koniszcze
Modified: 2013-07-10 12:44 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description koniszcze 2013-02-28 08:17:08 UTC
NetBeans IDE freezes while trying to open/parse HTML file. The file is standard HTML, but it contains PHPTAL template engine tags.
The other HTML+PHPTAL files I'm editing seem to open normally.
I'm unable to generate memory snapshot as IDE hangs completely, taking 100% CPU.

The end of messages.log is filled with following lines:
[...]
INFO [org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer]: Disabled an invalid highlighting layer: hlStartOffset=13997 < previous hlEndOffset=14002 for layer=org.netbeans.modules.html.editor.coloring.EmbeddingHighlightsContainer@1dbff66
INFO [org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer]: Disabled an invalid highlighting layer: hlStartOffset=18678 < previous hlEndOffset=18682 for layer=org.netbeans.modules.html.editor.coloring.EmbeddingHighlightsContainer@1dbff66
INFO [org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer]: Disabled an invalid highlighting layer: hlStartOffset=16840 < previous hlEndOffset=16842 for layer=org.netbeans.modules.html.editor.coloring.EmbeddingHighlightsContainer@1dbff66
[...]




  Product Version         = NetBeans IDE 7.3 (Build 201302132200) (#93e87decaddf)
  Operating System        = Windows Vista version 6.0 running on x86
  Java; VM; Vendor        = 1.7.0_15; Java HotSpot(TM) Client VM 23.7-b01; Oracle Corporation
  Runtime                 = Java(TM) SE Runtime Environment 1.7.0_15-b03
  Java Home               = C:\Program Files\Java\jre7
Comment 1 sawerset 2013-05-29 12:30:58 UTC
The same situation under Arch Linux.

Allso there is stacktrace in log file


INFO [org.netbeans.spi.lexer.MutableTextInput]: !!WARNING!! Missing READ-LOCK when accessing TokenHierarchy: input-source:org.netbeans.modules.editor.NbEditorDocument@1f22a21f, mimeType='text/html', kitClass=null, length=311, version=1, file=org.netbeans.modules.html.HtmlDataObject@33883f44[/home/user/NetBeansProjects/test/src/java/com/stranger/Hello.html@ea2bb08c:dd5b353]
java.lang.Exception
	at org.netbeans.lib.lexer.TokenHierarchyOperation.ensureReadLocked(TokenHierarchyOperation.java:397)
	at org.netbeans.lib.lexer.TokenHierarchyOperation.tokenSequence(TokenHierarchyOperation.java:422)
	at org.netbeans.api.lexer.TokenHierarchy.tokenSequence(TokenHierarchy.java:201)
	at org.netbeans.modules.web.wicket.tree.HtmlTreeBuilder.analyze(HtmlTreeBuilder.java:67)
	at org.netbeans.modules.web.wicket.tree.HtmlTreeBuilder.getTree(HtmlTreeBuilder.java:57)
	at org.netbeans.modules.web.wicket.verification.WicketProblemAnnotationProvider.annotate(WicketProblemAnnotationProvider.java:188)
	at org.netbeans.modules.web.wicket.verification.WicketProblemAnnotationProvider.annotate(WicketProblemAnnotationProvider.java:175)
	at org.netbeans.modules.web.wicket.verification.WicketProblemAnnotationProvider.annotate(WicketProblemAnnotationProvider.java:118)
	at org.netbeans.modules.web.wicket.verification.WicketProblemAnnotationProvider.annotate(WicketProblemAnnotationProvider.java:88)
	at org.openide.text.CloneableEditorSupport.ensureAnnotationsLoaded(CloneableEditorSupport.java:420)
	at org.openide.text.CloneableEditor$DoInitialize$3.run(CloneableEditor.java:870)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2044)
FINE [org.netbeans.modules.web.wicket.verification]: Missing markup container tree for java file null

NetBeans 7.3
jdk 1.7.0_21-b11
Comment 2 Marek Fukala 2013-07-10 12:44:14 UTC
Please attach the file. I can do nothing w/o it. Thank you. The messages are likely unrelated. BTW you may take several threaddumps in the console, that would be almost as good as the snapshot.