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 226913 - Can't get list of loaders in resolving as obtaining list is blocked by resolving
Summary: Can't get list of loaders in resolving as obtaining list is blocked by resolving
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 7.3
Hardware: PC Linux
: P1 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
: 225620 226641 227536 227967 228082 (view as bug list)
Depends on: 184509
Blocks:
  Show dependency tree
 
Reported: 2013-03-01 20:33 UTC by matthias42
Modified: 2013-04-19 06:31 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log - first lock (87.92 KB, text/x-log)
2013-03-01 20:33 UTC, matthias42
Details
messages.log - second lock (64.22 KB, application/octet-stream)
2013-03-01 20:34 UTC, matthias42
Details
Screenshot from deadlock (198.05 KB, image/png)
2013-03-01 20:34 UTC, matthias42
Details
threaddump from first lock (74.72 KB, text/plain)
2013-03-01 20:34 UTC, matthias42
Details
uigestures file (453.36 KB, application/octet-stream)
2013-03-01 20:35 UTC, matthias42
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matthias42 2013-03-01 20:33:42 UTC
Created attachment 132083 [details]
messages.log - first lock

Hey,

I just witnessed a deadlock with netbeans 7.3. I had the netbeans module "Database Dataview" opened and wanted to edit a JPanel Form (InsertRecordDialog.java). The "Java SE" module suit was not yet activated and the .form file was displayed in the project view.

Double clicking the form file brought up the "Activating Java SE, ..."-Dialog.

The progressbar froze after some time. I'll attach a screen shot and the messages.log, uigestures and the threaddump from that situation.

I had to kill netbeans to go on (this is the reason for priority P1).

It happend a second time (same file) - log is also attached: messages.log-second-lock.

After that I killed netbeans again, activated the "Java SE" module suit from the plugin manager and after a restart I could open the file correctly.

Greetings

Matthias
Comment 1 matthias42 2013-03-01 20:34:02 UTC
Created attachment 132084 [details]
messages.log - second lock
Comment 2 matthias42 2013-03-01 20:34:23 UTC
Created attachment 132085 [details]
Screenshot from deadlock
Comment 3 matthias42 2013-03-01 20:34:43 UTC
Created attachment 132086 [details]
threaddump from first lock
Comment 4 matthias42 2013-03-01 20:35:08 UTC
Created attachment 132087 [details]
uigestures file
Comment 5 Jaroslav Tulach 2013-03-15 12:09:17 UTC
Data System Nodes thread locks org.openide.loaders.DataObjectPool when finding a data object for a file object. When holding the lock, it seeks for DataLoader from a FolderLookup. That one blocks, waiting for "Folder recognizer" thread to finish, but that one can't as it can't obtain the org.openide.loaders.DataObjectPool lock.

Same situation is in deadlock in bug 225620#comment 26
Comment 6 Jaroslav Tulach 2013-03-15 12:10:02 UTC
*** Bug 225620 has been marked as a duplicate of this bug. ***
Comment 7 Jaroslav Tulach 2013-03-15 13:23:02 UTC
Probably caused by fix of bug 184509.
Comment 8 Jaroslav Tulach 2013-03-15 13:50:09 UTC
Try the behavior with: bbfceafeb90f
Comment 9 Quality Engineering 2013-03-16 01:50:11 UTC
Integrated into 'main-golden', will be available in build *201303152300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/bbfceafeb90f
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #226913: Don't hold POOL lock when handleFindDataObject. Adding assert to guarantee that and make Deadlock35847Test.java. Modifying the recursive call to handleFindDataObject to be done outside of critical section.
Comment 10 Tomas Danek 2013-03-16 15:22:42 UTC
i was able to reproduce in 7.3 (according to http://netbeans.org/bugzilla/show_bug.cgi?id=225620#c0 ) and cannot reproduce in 

Product Version: NetBeans IDE Dev (Build 201303152300)
Java: 1.8.0-internal; Java HotSpot(TM) 64-Bit Server VM 25.0-b19
Runtime: Java(TM) SE Runtime Environment 1.8.0-internal-jprtadm_2013_03_15_07_36-b00
System: Mac OS X version 10.8.2 running on x86_64; UTF-8; en_US (nb)
User directory: /Users/tomas/Library/Application Support/NetBeans/dev
Cache directory: /Users/tomas/Library/Caches/NetBeans/dev

-> verified. Please backport.
Comment 11 cdavis 2013-03-16 22:06:01 UTC
I just downloaded 2013-03-15 daily and it appears to be fixed.  Running on 1.7u17 64 bit linux.

Thanks to everyone who got in gear on this show stopper!
Comment 12 Jaroslav Tulach 2013-03-18 15:02:22 UTC
changeset:   97b80aad6540
branch:      release73
tag:         tip
parent:      b9c40629467d
parent:      bbfceafeb90f
user:        Jaroslav Tulach <jtulach@netbeans.org>
date:        Mon Mar 18 16:01:30 2013 +0100
summary:     Merging fix for #226913 into 7.3 branch
Comment 13 Marian Mirilovic 2013-03-19 17:59:08 UTC
*** Bug 226641 has been marked as a duplicate of this bug. ***
Comment 14 Marian Mirilovic 2013-03-19 17:59:44 UTC
*** Bug 227536 has been marked as a duplicate of this bug. ***
Comment 15 Quality Engineering 2013-03-20 08:23:29 UTC
Integrated into 'releases', will be available in build *201303200918* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/bbfceafeb90f
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #226913: Don't hold POOL lock when handleFindDataObject. Adding assert to guarantee that and make Deadlock35847Test.java. Modifying the recursive call to handleFindDataObject to be done outside of critical section.
Comment 16 Marian Mirilovic 2013-03-28 06:58:18 UTC
*** Bug 227967 has been marked as a duplicate of this bug. ***
Comment 17 Marian Mirilovic 2013-04-05 08:39:17 UTC
*** Bug 228082 has been marked as a duplicate of this bug. ***
Comment 18 mienamoo 2013-04-19 06:29:21 UTC
Verified the following duplicates with NetBeans IDE 7.3.1 (Build 201304162201):

Bug 225620
Bug 226641
Bug 227536
Bug 227536
Bug 227536
Comment 19 mienamoo 2013-04-19 06:31:23 UTC
OK, weird copy and paste issue with the browser and a text editor. The previous comment should have been:

Verified the following duplicates with NetBeans IDE 7.3.1 (Build 201304162201):

Bug 225620
Bug 226641
Bug 227536
Bug 227967
Bug 228082