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 253732 - Deadlock after IDE startup
Summary: Deadlock after IDE startup
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords: RANDOM
: 255714 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-07-24 11:30 UTC by Tomas Mysik
Modified: 2016-02-04 13:44 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump (28.40 KB, text/plain)
2015-07-24 11:30 UTC, Tomas Mysik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Mysik 2015-07-24 11:30:01 UTC
Created attachment 154851 [details]
thread dump

Attaching thread dump, please evaluate.

Thanks.
Comment 1 Antonin Nebuzelsky 2015-07-28 13:22:19 UTC
org.netbeans.spi.project.ui.support.NodeFactorySupport
Comment 2 Ondrej Vrabec 2015-07-28 13:41:10 UTC
sorry i had no chance to evaluate it...
There is a DL between Active Reference Queue Daemon and org.netbeans.spi.project.ui.support.NodeFactorySupport
However no sure whose fault is that, maybe NodeFactorySupport$DelegateChildren.removeNotify could avoid asking for the lock in Active Reference Queue Daemon?
Comment 3 Jaroslav Havlin 2015-10-06 08:11:13 UTC
*** Bug 255714 has been marked as a duplicate of this bug. ***
Comment 4 Jaroslav Havlin 2015-10-06 09:50:03 UTC
http://hg.netbeans.org/core-main/rev/3fc3534c5925

Node for important files in Web Project is no longer created in the NodeList.keys() method, so DataObject.getNodeDelegate() is not called under NodeFactorySupport$DelegateChildren lock any more.

Many thanks to Tomas Hurka and Tomas Mysik for help.
Comment 5 Tomas Mysik 2015-10-06 09:52:47 UTC
Thanks a lot Jardo for fixing this issue!
Comment 6 Quality Engineering 2015-10-08 01:23:43 UTC
Integrated into 'main-silver', will be available in build *201510080002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/3fc3534c5925
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #253732: Deadlock after IDE startup
Comment 7 Jiri Kovalsky 2016-01-20 11:42:28 UTC
Tomáši, I assume that verification of this bug fix is not easy if not possible at all, am I correct?
Comment 8 Tomas Mysik 2016-01-21 06:53:59 UTC
(In reply to Jiri Kovalsky from comment #7)
> Tomáši, I assume that verification of this bug fix is not easy if not
> possible at all, am I correct?

Yes, this issue is random.
Comment 9 Jiri Kovalsky 2016-01-21 07:57:58 UTC
OK, please integrate the patch to release81 branch. Thanks.
Comment 10 Tomas Mysik 2016-01-27 08:56:56 UTC
(In reply to Jiri Kovalsky from comment #9)
> OK, please integrate the patch to release81 branch. Thanks.

Transplanted to release81 branch of releases repo:

http://hg.netbeans.org/releases/rev/c19931c3697e

Please verify, if possible. Thanks.
Comment 11 Jiri Kovalsky 2016-02-04 13:44:28 UTC
OK, we believe you guys. Thanks.