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 230627 - IDE locks up after template expansion
Summary: IDE locks up after template expansion
Status: RESOLVED DUPLICATE of bug 226130
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC All
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-02 19:16 UTC by _ tboudreau
Modified: 2013-06-02 22:04 UTC (History)
0 users

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 _ tboudreau 2013-06-02 19:16:50 UTC
I have "sout" bound to expand to console.log.  Occasionally when I type it the IDE locks up after the following exception is logged to the console:


INFO [org.netbeans.spi.lexer.MutableTextInput]: !!WARNING!! Missing READ-LOCK when accessing TokenHierarchy: input-source:org.netbeans.modules.csl.core.GsfDocument@bcd2d6e, mimeType='text/javascript', kitClass=null, length=9005, version=3, file=org.netbeans.modules.csl.core.GsfDataObject@77406530[/home/tim/work/personal/personal/NamesApp/src/main/resources/com/timboudreau/vygd/res/main.js@b8741e16:5f468c35]
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.javascript2.editor.api.lexer.LexUtilities.getTokenSequence(LexUtilities.java:125)
	at org.netbeans.modules.javascript2.editor.api.lexer.LexUtilities.getTokenSequence(LexUtilities.java:98)
	at org.netbeans.modules.javascript2.editor.JsTypedTextInterceptor.beforeInsert(JsTypedTextInterceptor.java:243)
	at org.netbeans.modules.editor.lib2.typinghooks.TypedTextInterceptorsManager$Transaction.beforeInsertion(TypedTextInterceptorsManager.java:90)
	at org.netbeans.editor.BaseKit$DefaultKeyTypedAction.actionPerformed(BaseKit.java:1118)
	at org.netbeans.editor.ext.ExtKit$ExtDefaultKeyTypedAction.actionPerformed(ExtKit.java:1022)
	at org.netbeans.modules.csl.core.CslEditorKit$GsfDefaultKeyTypedAction.actionPerformed(CslEditorKit.java:233)
	at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:339)
	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1665)
	at javax.swing.JComponent.processKeyBinding(JComponent.java:2880)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2927)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2843)
	at java.awt.Component.processEvent(Component.java:6299)
	at java.awt.Container.processEvent(Container.java:2229)
	at java.awt.Component.dispatchEventImpl(Component.java:4878)
	at java.awt.Container.dispatchEventImpl(Container.java:2287)
	at java.awt.Component.dispatchEvent(Component.java:4700)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1953)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:798)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1066)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:937)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:763)
	at java.awt.Component.dispatchEventImpl(Component.java:4749)
	at java.awt.Container.dispatchEventImpl(Container.java:2287)
	at java.awt.Window.dispatchEventImpl(Window.java:2721)
	at java.awt.Component.dispatchEvent(Component.java:4700)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:728)
	at java.awt.EventQueue.access$200(EventQueue.java:103)
	at java.awt.EventQueue$3.run(EventQueue.java:687)
	at java.awt.EventQueue$3.run(EventQueue.java:685)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.awt.EventQueue$4.run(EventQueue.java:701)
	at java.awt.EventQueue$4.run(EventQueue.java:699)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:698)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:220)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:135)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:123)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:119)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:111)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
INFO [org.netbeans.modules.mercurial.status]: MercurialInterceptor.refreshTask: Scanning in progress, trying again in 10,000ms
INFO [org.netbeans.spi.lexer.MutableTextInput]: !!WARNING!! Missing READ-LOCK when accessing TokenHierarchy: input-source:org.netbeans.modules.csl.core.GsfDocument@bcd2d6e, mimeType='text/javascript', kitClass=null, length=8969, version=30, file=org.netbeans.modules.csl.core.GsfDataObject@77406530[/home/tim/work/personal/personal/NamesApp/src/main/resources/com/timboudreau/vygd/res/main.js@b8741e16:5f468c35]
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.javascript2.editor.api.lexer.LexUtilities.getTokenSequence(LexUtilities.java:125)
	at org.netbeans.modules.javascript2.editor.api.lexer.LexUtilities.getPositionedSequence(LexUtilities.java:379)
	at org.netbeans.modules.javascript2.editor.api.lexer.LexUtilities.getPositionedSequence(LexUtilities.java:358)
	at org.netbeans.modules.javascript2.editor.api.lexer.LexUtilities.getToken(LexUtilities.java:237)
	at org.netbeans.modules.javascript2.editor.JsTypedTextInterceptor.afterInsert(JsTypedTextInterceptor.java:145)
	at org.netbeans.modules.editor.lib2.typinghooks.TypedTextInterceptorsManager$Transaction.afterInsertion(TypedTextInterceptorsManager.java:131)
	at org.netbeans.editor.BaseKit$DefaultKeyTypedAction.actionPerformed(BaseKit.java:1156)
	at org.netbeans.editor.ext.ExtKit$ExtDefaultKeyTypedAction.actionPerformed(ExtKit.java:1022)
	at org.netbeans.modules.csl.core.CslEditorKit$GsfDefaultKeyTypedAction.actionPerformed(CslEditorKit.java:233)
	at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:339)
Comment 1 Vladimir Riha 2013-06-02 19:46:23 UTC
It does not have any visible affect on IDE right? It's only printed to log?

If so, looks similar to issue 226130.

*** This bug has been marked as a duplicate of bug 226130 ***
Comment 2 _ tboudreau 2013-06-02 22:04:20 UTC
> It does not have any visible affect on IDE right?

Not unless you count blocking the event thread forever as a visible effect :-/