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 87818 - Deadlock on unhibernating laptop
Summary: Deadlock on unhibernating laptop
Status: RESOLVED WONTFIX
Alias: None
Product: obsolete
Classification: Unclassified
Component: collab (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-24 02:19 UTC by _ tboudreau
Modified: 2009-12-21 07:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump (18.43 KB, text/plain)
2006-10-24 02:40 UTC, _ tboudreau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2006-10-24 02:19:23 UTC
I had logged out from all collaboration sessions, done some more work in
NetBeans, and then closed the lid, hibernating my laptop.

On restart, the UI was permanently blocked.  The interaction appears to be
worker threads 3 and 6 and the AWT event queue.  If SynchronizedRandomAccessList
is being used for what I think it is being used for, you might be able to use
one of the concurrent queue classes from java.util.concurrent and at worst need
to synchronized only writes or only reads.

Worker thread 3:
        - waiting to lock <0x1c210310> (a java.util.Collections$SynchronizedRand
omAccessList)

Worker thread 6 is calling EventQueue.invokeAndWait while holding a number of
locks...

The event queue is here:
   java.lang.Thread.State: BLOCKED (on object monitor)
        at net.outer_planes.jso.AbstractStream.getOutboundStatus(AbstractStream.
java:456)
        - waiting to lock <0x1c201fa8> (a net.outer_planes.jso.BasicStream)


and is blocked by Worker thread 3...
        - locked <0x1c201fa8> (a net.outer_planes.jso.BasicStream)

which is waiting on 
        at java.util.Collections$SynchronizedList.get(Collections.java:1816)
        - waiting to lock <0x1c210310> (a java.util.Collections$SynchronizedRand
omAccessList)

which is held by worker thread 6:
        - locked <0x1c210310> (a java.util.Collections$SynchronizedRandomAccessL
ist)


        at net.outer_planes.jso.AbstractStream.process(AbstractStream.java:1107)
        - locked <0x1c210310> (a java.util.Collections$SynchronizedRandomAccessL
ist)
Comment 1 _ tboudreau 2006-10-24 02:40:39 UTC
Created attachment 35483 [details]
Thread dump
Comment 2 Petr Nejedly 2006-10-24 08:36:47 UTC
The problem is the fact that AWT (tries to) call into networking portion.
And generally, the reconnect support is quite deadlock prone alone.
Note: The list is not used as a queue there, it's a listener list - that is far
from nice, but I'm not owner of that code.
Comment 3 Antonin Nebuzelsky 2009-06-02 14:29:52 UTC
Reassigning to issues@collab. Collab Support plugin is not actively maintained.

Obsoleted in 6.7 by the newly introduced integration with Project Kenai, a
collaborative environment for developers to host their open-source projects,
which includes also a chat service.
Comment 4 Quality Engineering 2009-12-21 07:53:17 UTC
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. 

We apologize for any inconvenience.


Thank you.
The NetBeans Team