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 236095 - Deadlock while opening context menu of project
Summary: Deadlock while opening context menu of project
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P1 normal with 2 votes (vote)
Assignee: Martin Entlicher
URL:
Keywords:
: 236085 236230 237146 237170 237236 237301 237397 237456 237739 237787 237908 237931 238034 238336 238501 238572 239123 239713 239943 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-09-18 08:07 UTC by markiewb
Modified: 2014-01-29 13:23 UTC (History)
23 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Threaddump (30.86 KB, text/plain)
2013-09-18 08:07 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2013-09-18 08:07:17 UTC
Created attachment 140199 [details]
Threaddump

"org.openide.text Document Processing" daemon prio=2 tid=0x000000000fd7a000 nid=0xc5c waiting for monitor entry [0x0000000012e8f000]
   java.lang.Thread.State: BLOCKED (on object monitor)
	at org.netbeans.modules.debugger.jpda.projects.LineTranslations$BreakpointLineUpdater.propertyChange(LineTranslations.java:514)
	- waiting to lock <0x00000000d4c0b180> (a org.netbeans.modules.debugger.jpda.projects.LineTranslations$BreakpointLineUpdater)
	at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
	at org.openide.text.CloneableEditorSupport.firePropertyChange(CloneableEditorSupport.java:483)
	at org.openide.text.CloneableEditorSupport.fireDocumentChange(CloneableEditorSupport.java:1730)
	at org.openide.text.DocumentOpenClose$DocumentClose.run(DocumentOpenClose.java:1007)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)


Product Version: NetBeans IDE Dev (Build 201309180002)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b17
System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb)
Comment 1 Martin Entlicher 2013-09-18 09:36:46 UTC
*** Bug 236085 has been marked as a duplicate of this bug. ***
Comment 2 Martin Entlicher 2013-09-18 16:33:26 UTC
Fixed by changeset:   264460:cfc7e8141046
http://hg.netbeans.org/core-main/rev/cfc7e8141046
Comment 3 Martin Entlicher 2013-10-07 14:16:42 UTC
*** Bug 236230 has been marked as a duplicate of this bug. ***
Comment 4 Martin Entlicher 2013-10-17 10:50:58 UTC
*** Bug 237236 has been marked as a duplicate of this bug. ***
Comment 5 Martin Entlicher 2013-10-17 10:52:16 UTC
*** Bug 237170 has been marked as a duplicate of this bug. ***
Comment 6 mwildam 2013-10-29 23:04:03 UTC
Should this be fixed with the current official update status? If so, I am still experiencing deadlocks when opening files and creating a new project for example.

And I wonder why Target Milestone is set to 8.0 for such a core issue which makes NetBeans 7.4 unusable. This is a show-stopper for using NetBeans 7.4 IMHO.
Comment 7 markiewb 2013-10-29 23:06:10 UTC
(In reply to mwildam from comment #6)
> This is a show-stopper for using NetBeans 7.4

It is already marked as 74patch-candidate
Comment 8 Martin Entlicher 2013-11-01 09:45:15 UTC
*** Bug 237301 has been marked as a duplicate of this bug. ***
Comment 9 Martin Entlicher 2013-11-01 09:47:10 UTC
Increasing to P1 due to many duplicate reports.
We should make a patch for 7.4 (it's marked as 74patch1-candidate already).
Comment 10 Jiri Kovalsky 2013-11-01 14:05:46 UTC
I will try to verify this bug fix in development builds in order to integrate this fix to 7.4.1. Anyone please join me, because this issue is not easily reproducible. Thanks.
Comment 11 Martin Entlicher 2013-11-01 15:08:57 UTC
*** Bug 237739 has been marked as a duplicate of this bug. ***
Comment 12 Jiri Skrivanek 2013-11-04 09:03:56 UTC
I can't reproduce it either in NetBeans 7.4 and dev. Rather ask for code review whether the patch is safe.
Comment 13 Jiri Kovalsky 2013-11-04 11:46:54 UTC
I set 21 breakpoints in 6 projects (Ant based Java, Maven based Java, Freeform Java, PHP, C/C++ and NetBeans Module) closed all opened files, restarted IDE >10 times and then was opening all files via "Go to Source" action in "Breakpoints" view and didn't encounter any deadklock. I consider the fix as successful.
Comment 14 Jiri Kovalsky 2013-11-04 11:47:11 UTC
Product Version: NetBeans IDE Dev (Build 201311040001)
Java: 1.7.0_40-ea; Java HotSpot(TM) 64-Bit Server VM 24.0-b55
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-ea-b36
System: Linux version 3.0.0-12-generic running on amd64; UTF-8; cs_CZ (nb)
User directory: /home/cesilko/.netbeans/dev
Cache directory: /home/cesilko/.cache/netbeans/dev
Comment 15 Jiri Kovalsky 2013-11-04 13:04:20 UTC
Verified in trunk.
Comment 16 Antonin Nebuzelsky 2013-11-07 11:52:32 UTC
*** Bug 238034 has been marked as a duplicate of this bug. ***
Comment 17 Miloslav Metelka 2013-11-11 15:49:51 UTC
*** Bug 237908 has been marked as a duplicate of this bug. ***
Comment 18 Miloslav Metelka 2013-11-13 09:30:10 UTC
*** Bug 237931 has been marked as a duplicate of this bug. ***
Comment 19 Miloslav Metelka 2013-11-13 14:15:35 UTC
*** Bug 237146 has been marked as a duplicate of this bug. ***
Comment 20 Miloslav Metelka 2013-11-13 14:18:41 UTC
*** Bug 237456 has been marked as a duplicate of this bug. ***
Comment 21 Miloslav Metelka 2013-11-14 13:48:04 UTC
*** Bug 237787 has been marked as a duplicate of this bug. ***
Comment 22 Martin Entlicher 2013-11-14 21:42:42 UTC
Integrated into releases74 branch:
http://hg.netbeans.org/releases/rev/1575c4f39ea2
http://hg.netbeans.org/releases/rev/541594c2f22f
Comment 23 Quality Engineering 2013-11-16 02:34:51 UTC
Integrated into 'releases/release74', will be available in build *201311152201* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/1575c4f39ea2
User: mentlicher@netbeans.org
Log: #236095: Reduce the code, which is executed under synchronized block.
(transplanted from cfc7e8141046f2b8e580584e77d39bb926374019)
Comment 24 Martin Entlicher 2013-11-18 12:32:03 UTC
*** Bug 238501 has been marked as a duplicate of this bug. ***
Comment 25 Martin Entlicher 2013-11-19 21:02:52 UTC
*** Bug 237301 has been marked as a duplicate of this bug. ***
Comment 26 Jiri Kovalsky 2013-11-20 13:35:00 UTC
Product Version: NetBeans IDE 7.4 (Build 201310111528)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.0.0-12-generic running on amd64; UTF-8; cs_CZ (nb)
User directory: /home/cesilko/.netbeans/7.4
Cache directory: /home/cesilko/.cache/netbeans/7.4

Verified in the patched NetBeans IDE 7.4.
Comment 27 Jiri Kovalsky 2013-11-20 15:07:27 UTC
Wrong "Help > About" information provided. Here is the correct one:

Product Version: NetBeans IDE 7.4 (Build 201310111528)
Updates: NetBeans IDE is updated to version NetBeans 7.4 Patch 1
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Linux version 3.0.0-12-generic running on amd64; UTF-8; cs_CZ (nb)
User directory: /home/cesilko/.netbeans/7.4
Cache directory: /home/cesilko/.cache/netbeans/7.4
Comment 28 Marian Mirilovic 2013-11-22 10:51:17 UTC
*** Bug 238572 has been marked as a duplicate of this bug. ***
Comment 29 Miloslav Metelka 2013-12-02 12:59:04 UTC
*** Bug 237397 has been marked as a duplicate of this bug. ***
Comment 30 Martin Entlicher 2013-12-04 17:36:32 UTC
*** Bug 239123 has been marked as a duplicate of this bug. ***
Comment 31 Martin Entlicher 2013-12-08 10:30:39 UTC
*** Bug 238336 has been marked as a duplicate of this bug. ***
Comment 32 Jiri Kovalsky 2013-12-16 08:27:43 UTC
*** Bug 237301 has been marked as a duplicate of this bug. ***
Comment 33 Martin Entlicher 2014-01-03 15:05:50 UTC
*** Bug 237301 has been marked as a duplicate of this bug. ***
Comment 34 Miloslav Metelka 2014-01-06 14:37:17 UTC
*** Bug 239943 has been marked as a duplicate of this bug. ***
Comment 35 Tomas Hurka 2014-01-29 13:23:52 UTC
*** Bug 239713 has been marked as a duplicate of this bug. ***