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 154199 - Deadlock when navigating to code from found usages
Summary: Deadlock when navigating to code from found usages
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P2 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
: 154928 154965 155159 155185 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-12-01 08:33 UTC by Petr Cyhelsky
Modified: 2009-02-19 21:09 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Threaddump (31.49 KB, text/plain)
2008-12-01 08:34 UTC, Petr Cyhelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Cyhelsky 2008-12-01 08:33:17 UTC
Product Version: NetBeans IDE Dev (Build 200812010201)
Java: 1.6.0_10; Java HotSpot(TM) 64-Bit Server VM 11.0-b15
System: Windows Vista version 6.0 running on amd64; Cp1250; cs_CZ (nb)

Netbeans deadlocked when i double-clicked on one of found usages (to navigate to its location)

Found one Java-level deadlock:
=============================
"OpenIDE-request-processor-9":
  waiting to lock monitor 0x0000000038503e10 (object 0x000000001c4cec10, a org.netbeans.modules.parsing.api.Source),
  which is held by "Java Source Worker Thread"
"Java Source Worker Thread":
  waiting to lock monitor 0x0000000037e9e200 (object 0x000000001c4cecc0, a org.netbeans.modules.parsing.impl.SourceCache),
  which is held by "OpenIDE-request-processor-8"
"OpenIDE-request-processor-8":
  waiting to lock monitor 0x0000000038503e10 (object 0x000000001c4cec10, a org.netbeans.modules.parsing.api.Source),
  which is held by "Java Source Worker Thread"

Java stack information for the threads listed above:
===================================================
"OpenIDE-request-processor-9":
	at org.netbeans.modules.parsing.api.Source$MySourceAccessor.getCache(Source.java:549)
	- waiting to lock <0x000000001c4cec10> (a org.netbeans.modules.parsing.api.Source)
	at org.netbeans.modules.parsing.spi.Scheduler$1.run(Scheduler.java:147)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)
"Java Source Worker Thread":
	at org.netbeans.modules.parsing.impl.SourceCache.getSnapshot(SourceCache.java:107)
	- waiting to lock <0x000000001c4cecc0> (a org.netbeans.modules.parsing.impl.SourceCache)
	at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:730)
	- locked <0x000000001c4cec10> (a org.netbeans.modules.parsing.api.Source)
	- locked <0x0000000013cd92b0> (a org.netbeans.modules.parsing.impl.TaskProcessor$InternalLock)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)
"OpenIDE-request-processor-8":
	at org.netbeans.modules.parsing.api.Source._getDocument(Source.java:351)
	- waiting to lock <0x000000001c4cec10> (a org.netbeans.modules.parsing.api.Source)
	at org.netbeans.modules.parsing.api.Source.getDocument(Source.java:217)
	at org.netbeans.modules.languages.ParserListenerFactoryImpl.create(ParserListenerFactoryImpl.java:75)
	at org.netbeans.modules.parsing.impl.SourceCache.createTasks(SourceCache.java:311)
	at org.netbeans.modules.parsing.impl.SourceCache.scheduleTasks(SourceCache.java:329)
	- locked <0x000000001c4cecc0> (a org.netbeans.modules.parsing.impl.SourceCache)
	at org.netbeans.modules.parsing.spi.Scheduler$1.run(Scheduler.java:152)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)

Found 1 deadlock.
Comment 1 Petr Cyhelsky 2008-12-01 08:34:28 UTC
Created attachment 74333 [details]
Threaddump
Comment 2 Tomas Zezula 2008-12-08 14:37:37 UTC
*** Issue 154928 has been marked as a duplicate of this issue. ***
Comment 3 Tomas Zezula 2008-12-09 09:22:15 UTC
http://hg.netbeans.org/main/rev/f0b07d040ec2
Comment 4 Jan Lahoda 2008-12-09 12:57:35 UTC
*** Issue 154965 has been marked as a duplicate of this issue. ***
Comment 5 Quality Engineering 2008-12-09 18:32:43 UTC
Integrated into 'main-golden', will be available in build *200812091520* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/f0b07d040ec2
User: Tomas Zezula <tzezula@netbeans.org>
Log: #154199:Deadlock when navigating to code from found usages
Comment 6 Jan Lahoda 2008-12-10 22:13:26 UTC
*** Issue 155159 has been marked as a duplicate of this issue. ***
Comment 7 Jan Lahoda 2008-12-10 22:13:48 UTC
*** Issue 155185 has been marked as a duplicate of this issue. ***