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 246578 - RepositoryUpdater deadlocked by JavaScript2 code completion
Summary: RepositoryUpdater deadlocked by JavaScript2 code completion
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-20 12:41 UTC by Martin Fousek
Modified: 2014-09-17 12:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump (33.80 KB, text/plain)
2014-08-20 12:41 UTC, Martin Fousek
Details
screenshot of locked file (205.64 KB, image/png)
2014-08-20 12:41 UTC, Martin Fousek
Details
messages log (66.79 KB, application/octet-stream)
2014-08-20 12:44 UTC, Martin Fousek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Fousek 2014-08-20 12:41:21 UTC
Created attachment 148788 [details]
thread dump

Product Version: NetBeans IDE Dev (Build 20140815-55ddfbb2f97a)
Java: 1.7.0_65; Java HotSpot(TM) 64-Bit Server VM 24.65-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_65-b17
System: Linux version 3.13.0-34-generic running on amd64; UTF-8; en_US (nb)

When I use javascript code completion feature it quite often deadlocks my file and the Parsing infrastructure so I'm not able to continue in my work without restarting the IDE. I'm attaching screenshot after the deadlock when I'm not also able to edit the file any more and the thred_dump with the lock.

I reproduced the issue three times during 2 hours which is pretty much since I don't use the CC almost at all. So if you could take a look soon on that it would be great. Thanks a lot.
Comment 1 Martin Fousek 2014-08-20 12:41:56 UTC
Created attachment 148789 [details]
screenshot of locked file
Comment 2 Martin Fousek 2014-08-20 12:44:17 UTC
Created attachment 148791 [details]
messages log

The messages.log reminded me that I was also using Go To navigation actions. So it could break combination of the navigation and code completion actions.
Comment 3 Petr Pisl 2014-08-20 13:01:42 UTC
Only suspicious in the message log is org.netbeans.lib.lexer.TokenHierarchyOperation.ensureReadLocked(TokenHierarchyOperation.java:406) coming from Angular module (go to declaration). I will try to fix it. But could you try to disable angular module, whether this is really the reason?
Comment 4 Martin Fousek 2014-08-20 13:05:20 UTC
(In reply to Petr Pisl from comment #3)
> Only suspicious in the message log is
> org.netbeans.lib.lexer.TokenHierarchyOperation.
> ensureReadLocked(TokenHierarchyOperation.java:406) coming from Angular
> module (go to declaration). I will try to fix it. But could you try to
> disable angular module, whether this is really the reason?

Sure, I'll try that.
Comment 5 Petr Pisl 2014-08-20 13:38:48 UTC
I have fixed the case in Angular module. Hope it will help. Please reopen, if it will not be ok.
Comment 6 Quality Engineering 2014-08-22 02:33:20 UTC
Integrated into 'main-silver', will be available in build *201408220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8fab6346ae03
User: Petr Pisl <ppisl@netbeans.org>
Log: #246578 - RepositoryUpdater deadlocked by JavaScript2 code completion
Comment 7 Vladimir Riha 2014-09-16 11:30:56 UTC
I don't know how to reproduce it (if possible) but I haven't seen any issue with using Angular in latest dev builds.
Comment 8 Petr Pisl 2014-09-16 13:25:25 UTC
Transplanted to releases/release801 branch.
Comment 9 Quality Engineering 2014-09-17 12:13:34 UTC
Integrated into 'releases/release801', will be available in build *201409171118* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/de42e854d9ce
User: Petr Pisl <ppisl@netbeans.org>
Log: #246578 - RepositoryUpdater deadlocked by JavaScript2 code completion