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 30309 - Deadlock in CES.openDocument()
Summary: Deadlock in CES.openDocument()
Status: CLOSED DUPLICATE of bug 33062
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 3.x
Hardware: PC All
: P3 blocker (vote)
Assignee: David Konecny
URL:
Keywords: RANDOM, THREAD
: 30630 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-01-23 12:08 UTC by David Simonek
Modified: 2008-12-22 16:42 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 David Simonek 2003-01-23 12:08:57 UTC
Full thread dump Java HotSpot(TM) Client VM
(1.4.1-b21 mixed mode):

"Default RequestProcessor" daemon prio=2
tid=0x11D7D608 nid=0x670 waiting for monitor entry
[1f92f000..1f92fd88]
        at
org.openide.text.DocumentLine$Set.getLinesFromRange(DocumentLine.java:702)
        - waiting to lock <069891B8> (a
java.util.WeakHashMap)
        at
org.openide.text.DocumentLine$Set.linesChanged(DocumentLine.java:665)
        at
org.openide.text.LineListener.insertUpdate(LineListener.java:117)
        at
org.openide.util.WeakListener$Document.insertUpdate(WeakListener.java:497)
        at
javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:184)
        at
org.netbeans.editor.BaseDocument.fireInsertUpdate(BaseDocument.java:902)
        at
org.netbeans.editor.BaseDocument.insertString(BaseDocument.java:571)
        at
org.netbeans.editor.Analyzer.read(Analyzer.java:636)
        at
org.netbeans.editor.BaseDocument.read(BaseDocument.java:812)
        at
org.netbeans.editor.BaseKit.read(BaseKit.java:405)
        at
org.netbeans.modules.java.JavaEditor.loadFromStreamToKit(JavaEditor.java:329)
        at
org.openide.text.EditorSupport$Del.loadFromStreamToKit(EditorSupport.java:698)
        at
org.openide.text.CloneableEditorSupport.loadDocument(CloneableEditorSupport.java:1107)
        at
org.openide.text.CloneableEditorSupport.access$1400(CloneableEditorSupport.java:102)
        at
org.openide.text.CloneableEditorSupport$Listener.run(CloneableEditorSupport.java:1558)
        - locked <03AB7770> (a
org.openide.windows.CloneableOpenSupport$Listener)
        at org.openide.util.Task.run(Task.java:136)
        at
org.openide.text.CloneableEditorSupport$1.run(CloneableEditorSupport.java:327)
        - locked <03AB7770> (a
org.openide.windows.CloneableOpenSupport$Listener)
        at org.openide.util.Task.run(Task.java:136)
        at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:603)

"Inactive RequestProcessor thread" daemon prio=2
tid=0x11BDE5D0 nid=0x650 in Object.wait()
[1f82f000..1f82fd88]
        at java.lang.Object.wait(Native Method)
        at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:578)
        - locked <064D3BB0> (a java.lang.Object)

"Java source parsing" daemon prio=2 tid=0x1216BB88
nid=0x814 in Object.wait() [1f72f000..1f72fd88]
        at java.lang.Object.wait(Native Method)
        at java.lang.Object.wait(Object.java:426)
        at
org.openide.util.Task.waitFinished(Task.java:85)
        - locked <069913C8> (a org.openide.util.Task)
        at
org.openide.text.CloneableEditorSupport.getDocument(CloneableEditorSupport.java:402)
        at
org.netbeans.modules.java.JavaParserGlue.getSourceText(JavaParserGlue.java:190)
        at
org.netbeans.modules.java.parser.ParseSourceRequest.getSource(ParseSourceRequest.java:172)
        at
org.netbeans.modules.java.parser.ParsingSupport$Processor.getSource(ParsingSupport.java:764)
        at
org.netbeans.modules.java.gj.ParserEngine.parseObject(ParserEngine.java:134)
        - locked <069914B0> (a
org.netbeans.modules.java.gj.ParserEngine)
        at
org.netbeans.modules.java.gj.JavaParserEngine.process(JavaParserEngine.java:72)
        - locked <09E24158> (a java.lang.Class)
        at
org.netbeans.modules.java.parser.ParsingSupport$Processor.process(ParsingSupport.java:709)
        at
org.netbeans.modules.java.parser.ParsingSupport$Processor.parseLockModel(ParsingSupport.java:664)
        at
org.netbeans.modules.java.parser.ParsingSupport$Processor.run(ParsingSupport.java:595)
        at org.openide.util.Task.run(Task.java:136)
        at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:603)

"AntProjectSupport.FiringProcessor" daemon prio=2
tid=0x11C4FBD8 nid=0x1e4 in Object.wait()
[1f02f000..1f02fd88]
        at java.lang.Object.wait(Native Method)
        - waiting on <05E776D0> (a java.util.HashMap)
        at
org.apache.tools.ant.module.xml.AntProjectSupport$FiringProcessor.run(AntProjectSupport.java:675)
        - locked <05E776D0> (a java.util.HashMap)

"Inactive RequestProcessor thread" daemon prio=2
tid=0x121E2D10 nid=0x118 in Object.wait()
[1ed2f000..1ed2fd88]
        at java.lang.Object.wait(Native Method)
        at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:578)
        - locked <05AFE020> (a java.lang.Object)

"Compilation" daemon prio=2 tid=0x11C20548
nid=0x5a4 in Object.wait() [1ea2f000..1ea2fd88]
        at java.lang.Object.wait(Native Method)
        - waiting on <05A4F460> (a
org.netbeans.core.compiler.CompilerDisplayer)
        at java.lang.Object.wait(Object.java:426)
        at
org.netbeans.core.compiler.CompilerDisplayer.dispatcherWait(CompilerDisplayer.java:147)
        - locked <05A4F460> (a
org.netbeans.core.compiler.CompilerDisplayer)
        at
org.netbeans.core.compiler.CompilerDisplayer.compilationFinished(CompilerDisplayer.java:245)
        at
org.netbeans.core.compiler.CompilationEngineImpl$CompilerThread.run(CompilationEngineImpl.java:188)

"TimeoutProvider" prio=7 tid=0x0D51F9A8 nid=0x564
waiting on condition [1108f000..1108fd88]
        at java.lang.Thread.sleep(Native Method)
        at
org.netbeans.modules.tasklist.usertasks.TimeoutProvider.run(TimeoutProvider.java:138)
        at java.lang.Thread.run(Thread.java:536)

"TimerQueue" daemon prio=5 tid=0x0D5BA208
nid=0x6d4 runnable [10e8f000..10e8fd88]
        at java.lang.Object.wait(Native Method)
        at
javax.swing.TimerQueue.run(TimerQueue.java:231)
        - locked <038EB268> (a javax.swing.TimerQueue)
        at java.lang.Thread.run(Thread.java:536)

"Thread-2" daemon prio=5 tid=0x0D6034A8 nid=0x8d0
in Object.wait() [1024f000..1024fd88]
        at java.lang.Object.wait(Native Method)
        at
java.util.TimerThread.mainLoop(Timer.java:429)
        - locked <035FE520> (a java.util.TaskQueue)
        at java.util.TimerThread.run(Timer.java:382)

"Active Reference Queue Daemon" daemon prio=2
tid=0x0D878708 nid=0x8dc in Object.wait()
[1013f000..1013fd88]
        at java.lang.Object.wait(Native Method)
        at
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
        - locked <034F1FA8> (a
java.lang.ref.ReferenceQueue$Lock)
        at
org.openide.util.Utilities$ActiveQueue.run(Utilities.java:2039)
        at java.lang.Thread.run(Thread.java:536)

"AWT-EventQueue-0" prio=5 tid=0x0D7DBD78 nid=0x590
in Object.wait() [1002f000..1002fd88]
        at java.lang.Object.wait(Native Method)
        at java.lang.Object.wait(Object.java:426)
        at
org.openide.util.Task.waitFinished(Task.java:85)
        - locked <069913F0> (a
org.openide.util.RequestProcessor$Task)
        at
org.openide.util.RequestProcessor$Task.waitFinished(RequestProcessor.java:389)
        at
org.openide.text.CloneableEditorSupport.openDocument(CloneableEditorSupport.java:373)
        at
org.openide.text.PositionRef$Manager$OffsetKind.getLine(PositionRef.java:588)
        at
org.openide.text.PositionRef.getLine(PositionRef.java:155)
        at
org.openide.text.DocumentLine.getLineNumber(DocumentLine.java:90)
        at
org.openide.text.DocumentLine.equals(DocumentLine.java:204)
        at
java.util.WeakHashMap.eq(WeakHashMap.java:248)
        at
java.util.WeakHashMap.get(WeakHashMap.java:340)
        at
org.openide.text.Line$Set.registerLine(Line.java:322)
        - locked <069891B8> (a java.util.WeakHashMap)
        at
org.openide.text.DocumentLine$Set.getCurrent(DocumentLine.java:756)
        at
org.netbeans.modules.tasklist.suggestions.SuggestionManagerImpl.caretUpdate(SuggestionManagerImpl.java:1960)
        at
javax.swing.text.JTextComponent.fireCaretUpdate(JTextComponent.java:336)
        at
javax.swing.text.JTextComponent$MutableCaretEvent.fire(JTextComponent.java:3137)
        at
javax.swing.text.JTextComponent$MutableCaretEvent.stateChanged(JTextComponent.java:3159)
        at
org.netbeans.editor.BaseCaret$3.run(BaseCaret.java:516)
        at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
        at
java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
        at
java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

"Java2D Disposer" daemon prio=10 tid=0x0D7D1BC0
nid=0x8e8 in Object.wait() [ff2f000..ff2fd88]
        at java.lang.Object.wait(Native Method)
        at
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
        - locked <03427280> (a
java.lang.ref.ReferenceQueue$Lock)
        at
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
        at sun.java2d.Disposer.run(Disposer.java:97)
        at java.lang.Thread.run(Thread.java:536)

"AWT-Windows" daemon prio=7 tid=0x0D76ED58
nid=0x5fc runnable [fd1f000..fd1fd88]
        at
sun.awt.windows.WToolkit.eventLoop(Native Method)
        at
sun.awt.windows.WToolkit.run(WToolkit.java:253)
        at java.lang.Thread.run(Thread.java:536)

"AWT-Shutdown" prio=5 tid=0x0D76E9D0 nid=0x54c in
Object.wait() [fc1f000..fc1fd88]
        at java.lang.Object.wait(Native Method)
        - waiting on <03427380> (a java.lang.Object)
        at java.lang.Object.wait(Object.java:426)
        at
sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:259)
        - locked <03427380> (a java.lang.Object)
        at java.lang.Thread.run(Thread.java:536)

"Signal Dispatcher" daemon prio=10 tid=0x00B26D00
nid=0x868 waiting on condition [0..0]

"Finalizer" daemon prio=9 tid=0x00B6FD68 nid=0x834
in Object.wait() [d01f000..d01fd88]
        at java.lang.Object.wait(Native Method)
        at
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
        - locked <03427518> (a
java.lang.ref.ReferenceQueue$Lock)
        at
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
        at
java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

"Reference Handler" daemon prio=10 tid=0x00B6E8E0
nid=0x690 in Object.wait() [cf1f000..cf1fd88]
        at java.lang.Object.wait(Native Method)
        at java.lang.Object.wait(Object.java:426)
        at
java.lang.ref.Reference$ReferenceHandler.run(Reference.java:113)
        - locked <034273A8> (a
java.lang.ref.Reference$Lock)

"main" prio=5 tid=0x00A15020 nid=0x48c waiting on
condition [0..12d158]

"VM Thread" prio=5 tid=0x00B6D6A8 nid=0x438 runnable

"VM Periodic Task Thread" prio=10 tid=0x00B259F0
nid=0x6b0 waiting on condition
"Suspend Checker Thread" prio=10 tid=0x00B26318
nid=0x558 runnable
Comment 1 David Konecny 2003-01-23 16:41:14 UTC
I expect that it is not reproducible, right? Do you remember what you
were doing? It is clearly deadlock in opening of Document. The
RequestProcessor is innocent.

From the stack trace it seems to me that you were using Tasklist
module which listens on caret change in editor and when this event
happens it asks for Line. For some reason it asks for Line but it
results in loading of document. (???) This seems to me strange because
document should be already opened, otherwise the Tasklist module could
not listen on it.

I'm cc'ing Tor. If this happens please attach some info. Thx.
Comment 2 David Simonek 2003-01-23 17:43:19 UTC
Yes, it's not reproductible. Yes, I was using Tor's tasklist module.
It hapenned during regular work with editor, I don't remember what I
was doing exactly, I think opening and jumping between editor documents.
Comment 3 David Konecny 2003-02-04 09:52:09 UTC
*** Issue 30630 has been marked as a duplicate of this issue. ***
Comment 4 David Konecny 2003-02-25 10:14:20 UTC
If this happens more often then please increase priority. For the
moment I consider this issue RANDOM & milestone=4.0
Comment 5 David Konecny 2003-04-22 15:01:03 UTC

*** This issue has been marked as a duplicate of 33062 ***
Comment 6 Marian Mirilovic 2003-07-22 15:46:31 UTC
verified, closed - it's duplicate.