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 40047 - Hang/deadlock on startup - probably in CloneableEditorSupport
Summary: Hang/deadlock on startup - probably in CloneableEditorSupport
Status: RESOLVED DUPLICATE of bug 40026
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: Macintosh All
: P2 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-13 00:00 UTC by _ tboudreau
Modified: 2007-11-05 13:44 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump (13.14 KB, text/plain)
2004-02-13 07:50 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2004-02-13 00:00:10 UTC
I sent Martin Roskanin a very similar stack trace earlier this 
evening in an email.  Looks like the same thing.  Sometimes 
happens after drag and drop operations as well.  Filing as OS-X, 
but probably applies anywhere:

"Text-Layout" prio=1 tid=0x0059e2e0 nid=0x1ffd400 in 
Object.wait() [f0fbf000..f0fbfb20]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x5d727e08> (a 
org.netbeans.editor.view.spi.ViewLayoutQueue)
        at java.lang.Object.wait(Object.java:429)
        at 
org.netbeans.editor.view.spi.ViewLayoutQueue.waitForTask(View
LayoutQueue.java:128)
        - locked <0x5d727e08> (a 
org.netbeans.editor.view.spi.ViewLayoutQueue)
        at 
org.netbeans.editor.view.spi.ViewLayoutQueue$LayoutThread.ru
n(ViewLayoutQueue.java:182)

"DestroyJavaVM" prio=5 tid=0x005012c0 nid=0x1801200 
waiting on condition [0..f0800270]

"TimerQueue" daemon prio=5 tid=0x00574a00 nid=0x1dda000 
in Object.wait() [f1244000..f1244b20]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x5d3319d8> (a javax.swing.TimerQueue)
        at javax.swing.TimerQueue.run(TimerQueue.java:231)
        - locked <0x5d3319d8> (a javax.swing.TimerQueue)
        at java.lang.Thread.run(Thread.java:552)

"AWT-EventQueue-1" prio=6 tid=0x00516af0 nid=0x18e8200 
in Object.wait() [f0c07000..f0c08b20]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x5d44b048> (a 
org.openide.windows.CloneableOpenSupport$Listener)
        at java.lang.Object.wait(Object.java:429)
        at 
org.openide.text.CloneableEditorSupport.openDocumentImpl(Cl
oneableEditorSupport.java:546)
        at 
org.openide.text.CloneableEditorSupport.openDocumentCheckIO
E(CloneableEditorSupport.java:520)
        at 
org.openide.text.CloneableEditorSupport.openDocument(Clonea
bleEditorSupport.java:515)
        - locked <0x5d44b048> (a 
org.openide.windows.CloneableOpenSupport$Listener)
        at 
org.netbeans.modules.java.JavaParserGlue.sourceToText(JavaPar
serGlue.java:626)
        at 
org.netbeans.modules.editor.java.NbJavaFoldMaintainer.updateF
olds(NbJavaFoldMaintainer.java:769)
        at 
org.netbeans.modules.editor.java.NbJavaFoldMaintainer.initFolds
(NbJavaFoldMaintainer.java:346)
        at 
org.netbeans.editor.fold.spi.RootFold.maintainersInitFolds(RootF
old.java:251)
        at 
org.netbeans.editor.fold.spi.FoldMaintainerListProvider.initFolds(
FoldMaintainerListProvider.java:98)
        at 
org.netbeans.modules.editor.LayerFoldMaintainerListProvider.de
faultInitFolds(LayerFoldMaintainerListProvider.java:125)
        at 
org.netbeans.modules.editor.LayerFoldMaintainerListProvider$In
itFoldsResolver.attemptOpenDocument(LayerFoldMaintainerListP
rovider.java:162)
        at 
org.netbeans.modules.editor.LayerFoldMaintainerListProvider$In
itFoldsResolver.initFolds(LayerFoldMaintainerListProvider.java:
147)
        at 
org.netbeans.modules.editor.LayerFoldMaintainerListProvider.ini
tFolds(LayerFoldMaintainerListProvider.java:120)
        at 
org.netbeans.editor.fold.spi.RootFold.buildHierarchy(RootFold.ja
va:198)
        at 
org.netbeans.editor.fold.spi.RootFold.rebuildHierarchy(RootFold.
java:264)
        at 
org.netbeans.editor.fold.spi.RootFold$1.propertyChange(RootFol
d.java:221)
        at 
javax.swing.event.SwingPropertyChangeSupport.firePropertyCha
nge(SwingPropertyChangeSupport.java:264)
        at 
javax.swing.event.SwingPropertyChangeSupport.firePropertyCha
nge(SwingPropertyChangeSupport.java:232)
        at 
javax.swing.JComponent.firePropertyChange(JComponent.java:
3819)
        at 
org.openide.text.QuietEditorPane.firePropertyChange(QuietEditor
Pane.java:42)
        at 
javax.swing.text.JTextComponent.setDocument(JTextComponent
.java:401)
        at 
org.openide.text.CloneableEditor.initialize(CloneableEditor.java:
178)
        at 
org.openide.text.CloneableEditor.componentShowing(CloneableE
ditor.java:153)
        at 
org.openide.windows.WindowManager.componentShowing(Wind
owManager.java:281)
        at 
org.netbeans.core.windows.WindowManagerImpl.componentSho
wing(WindowManagerImpl.java:828)
        at 
org.netbeans.core.windows.view.DefaultView.changeGUI(Default
View.java:115)
        at 
org.netbeans.core.windows.ViewRequestor.dispatchRequest(Vie
wRequestor.java:239)
        at 
org.netbeans.core.windows.ViewRequestor.processVisibilityRequ
est(ViewRequestor.java:230)
        at 
org.netbeans.core.windows.ViewRequestor.postVisibilityRequest(
ViewRequestor.java:173)
        at 
org.netbeans.core.windows.ViewRequestor.scheduleRequest(Vie
wRequestor.java:86)
        at 
org.netbeans.core.windows.Central.setVisible(Central.java:67)
        at 
org.netbeans.core.windows.WindowManagerImpl.setVisible(Wind
owManagerImpl.java:652)
        at 
org.netbeans.core.windows.WindowSystemImpl.show(WindowSys
temImpl.java:56)
        at org.netbeans.core.Main$8.run(Main.java:437)
        at 
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:
178)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:
454)
        at 
java.awt.EventDispatchThread.pumpOneEventForHierarchy(Event
DispatchThread.java:234)
        at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
patchThread.java:184)
        at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread
.java:178)
        at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread
.java:170)
        at 
java.awt.EventDispatchThread.run(EventDispatchThread.java:
100)

"Default RequestProcessor" daemon prio=1 tid=0x00573b20 
nid=0x1e81600 in Object.wait() [f11c3000..f11c3b20]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x5b217890> (a 
org.netbeans.modules.editor.NbEditorDocument)
        at java.lang.Object.wait(Object.java:429)
        at 
javax.swing.text.AbstractDocument.writeLock(AbstractDocument
.java:1342)
        - locked <0x5b217890> (a 
org.netbeans.modules.editor.NbEditorDocument)
        at 
org.netbeans.editor.BaseDocument.extWriteLock(BaseDocument.
java:1033)
        - locked <0x5b217890> (a 
org.netbeans.modules.editor.NbEditorDocument)
        at 
org.netbeans.editor.BaseDocument.atomicLock(BaseDocument.ja
va:1055)
        - locked <0x5b217890> (a 
org.netbeans.modules.editor.NbEditorDocument)
        at 
org.netbeans.editor.BaseDocument.runAtomicAsUser(BaseDocu
ment.java:906)
        at 
org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocu
ment.java:217)
        at 
org.openide.text.NbDocument.runAtomic(NbDocument.java:340)
        at 
org.openide.text.CloneableEditorSupport$1.run(CloneableEditor
Support.java:408)
        at org.openide.util.Task.run(Task.java:136)
        at 
org.openide.util.RequestProcessor$Task.run(RequestProcessor.ja
va:330)
        at 
org.openide.util.RequestProcessor$Processor.run(RequestProces
sor.java:686)

"Inactive RequestProcessor thread [Was:TimedSoftReference/
org.openide.util.TimedSoftReference]" daemon prio=1 
tid=0x00543e90 nid=0x1c08600 in Object.wait() 
[f1040000..f1040b20]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x5d170350> (a java.lang.Object)
        at 
org.openide.util.RequestProcessor$Processor.run(RequestProces
sor.java:657)
        - locked <0x5d170350> (a java.lang.Object)

"AWT-Shutdown" prio=5 tid=0x00516900 nid=0x1908c00 in 
Object.wait() [f0f3e000..f0f3eb20]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x5cdb1eb0> (a java.lang.Object)
        at java.lang.Object.wait(Object.java:429)
        at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:
259)
        - locked <0x5cdb1eb0> (a java.lang.Object)
        at java.lang.Thread.run(Thread.java:552)

"Java2D Disposer" daemon prio=10 tid=0x00515e40 
nid=0x18e9200 in Object.wait() [f0ebd000..f0ebdb20]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x5cdb1f20> (a 
java.lang.ref.ReferenceQueue$Lock)
        at 
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
        - locked <0x5cdb1f20> (a 
java.lang.ref.ReferenceQueue$Lock)
        at 
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
        at sun.java2d.Disposer.run(Disposer.java:100)
        at java.lang.Thread.run(Thread.java:552)

"Thread-2" daemon prio=5 tid=0x00512ae0 nid=0xa000a1ec 
runnable [0..bfffe5f0]

"Active Reference Queue Daemon" daemon prio=1 
tid=0x00512220 nid=0x1852800 in Object.wait() 
[f0e0c000..f0e0cb20]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x5cdb2050> (a 
java.lang.ref.ReferenceQueue$Lock)
        at 
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
        - locked <0x5cdb2050> (a 
java.lang.ref.ReferenceQueue$Lock)
        at org.openide.util.Utilities$ActiveQueue.run(Utilities.java:
2436)
        at java.lang.Thread.run(Thread.java:552)

"Thread-0" daemon prio=5 tid=0x00511690 nid=0x1898800 in 
Object.wait() [f0d8b000..f0d8bb20]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x5cdb20c8> (a java.util.TaskQueue)
        at java.lang.Object.wait(Object.java:429)
        at java.util.TimerThread.mainLoop(Timer.java:403)
        - locked <0x5cdb20c8> (a java.util.TaskQueue)
        at java.util.TimerThread.run(Timer.java:382)

"CLI Requests Server" daemon prio=5 tid=0x0050ec80 
nid=0x1857800 runnable [f0c89000..f0c89b20]
        at java.net.PlainSocketImpl.socketAccept(Native Method)
        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:
353)
        - locked <0x5cdb2260> (a java.net.PlainSocketImpl)
        at java.net.ServerSocket.implAccept(ServerSocket.java:448)
        at java.net.ServerSocket.accept(ServerSocket.java:419)
        at org.netbeans.CLIHandler$Server.run(CLIHandler.java:
727)

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

"Finalizer" daemon prio=8 tid=0x00506f60 nid=0x180dc00 in 
Object.wait() [f0a04000..f0a04b20]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x5cdb2408> (a 
java.lang.ref.ReferenceQueue$Lock)
        at 
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
        - locked <0x5cdb2408> (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=0x00506c30 
nid=0x1802200 in Object.wait() [f0983000..f0983b20]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x5cdb2150> (a 
java.lang.ref.Reference$Lock)
        at java.lang.Object.wait(Object.java:429)
        at 
java.lang.ref.Reference$ReferenceHandler.run(Reference.java:
115)
        - locked <0x5cdb2150> (a java.lang.ref.Reference$Lock)

"VM Thread" prio=5 tid=0x005064b0 nid=0x1802a00 runnable 

"VM Periodic Task Thread" prio=10 tid=0x005083d0 
nid=0x1809800 waiting on condition 
"Exception Catcher Thread" prio=10 tid=0x005011e0 
nid=0x1802600 runnable
Comment 1 Jiri Skrivanek 2004-02-13 07:49:42 UTC
I saw the same stack trace when you create a new project and then
switch back to the Default project.

To reproduce:

- run IDE with clean userdir
- open a java file (e.g. sampledir|examples.colorpicker.ColorPreview)
- create a new project (Project -> Project Manager -> New)
- wait until the new project is open
- try to switch back to the default project (Project -> Project Manager)
- it prints "Project Default opened." out to status bar but IDE freezes

Tested in build 200402121900, JDK1.4.2_03, WindowsXP.
Comment 2 Jiri Skrivanek 2004-02-13 07:50:24 UTC
Created attachment 13410 [details]
thread dump
Comment 3 Martin Roskanin 2004-02-13 09:55:50 UTC
already reported


*** This issue has been marked as a duplicate of 40026 ***