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 221703 - Document lock warning
Summary: Document lock warning
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
: 223479 226130 227765 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-11-08 09:50 UTC by Vladimir Riha
Modified: 2013-07-18 12:42 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
split logs (32.89 KB, application/zip)
2012-11-08 09:50 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2012-11-08 09:50:21 UTC
Created attachment 127373 [details]
split logs

After about 1 hour of work with JS file linked in running HTML, it seems that following exception broke all communication with browser and also page in browser went to "He's dead, Jim" ("Aw, snap!") state (standard purple dead page in Chrome).

IDE log shows following exception:

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.lexer.LexUtilities.getTokenSequence(LexUtilities.java:117)
	at org.netbeans.modules.javascript2.editor.lexer.LexUtilities.getJsTokenSequence(LexUtilities.java:83)
	at org.netbeans.modules.javascript2.editor.JsTypedTextInterceptor.beforeInsert(JsTypedTextInterceptor.java:323)
...


Product Version         = NetBeans IDE Dev (Build web-main-9149-on-20121108) (#dc35893b6bb3)
  Operating System        = Linux version 3.2.0-32-generic-pae running on i386
  Java; VM; Vendor        = 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b04; Oracle Corporation
  Runtime                 = Java(TM) SE Runtime Environment 1.7.0_10-ea-b11
Comment 1 Petr Hejl 2012-11-28 13:51:59 UTC
Fixed in web-main 93a5605f157e.
Comment 2 Petr Hejl 2012-11-28 15:05:29 UTC
I reverted the previous patch 22fb6b71ddd1.

BTW the stacktrace reported in log is not an exception being thrown - it is a warning so it can't break communication.
Comment 3 Vladimir Riha 2012-11-28 15:10:31 UTC
Sorry, I overlooked it. This was the only "suspicious" thing I saw in the log.
Comment 4 Quality Engineering 2012-11-30 02:48:09 UTC
Integrated into 'main-golden', will be available in build *201211300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/93a5605f157e
User: Petr Hejl <phejl@netbeans.org>
Log: #221703 - Exception possibly broke communication with browser
Comment 5 Martin Fousek 2012-12-07 13:37:29 UTC
*** Bug 223479 has been marked as a duplicate of this bug. ***
Comment 6 Petr Hejl 2013-07-08 12:25:23 UTC
*** Bug 227765 has been marked as a duplicate of this bug. ***
Comment 7 Petr Hejl 2013-07-16 08:39:53 UTC
Limited scope of warning - web-main 1fdeaf27969f.
Comment 8 Petr Hejl 2013-07-16 09:42:47 UTC
Fixed in web-main aa0c923e332b.
Comment 9 Quality Engineering 2013-07-17 02:41:45 UTC
Integrated into 'main-silver', will be available in build *201307162300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1fdeaf27969f
User: Petr Hejl <phejl@netbeans.org>
Log: #221703 - Document lock warning
Comment 10 Petr Hejl 2013-07-18 12:42:20 UTC
*** Bug 226130 has been marked as a duplicate of this bug. ***