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 234784 - Deadlock when called "Take Snapshot and Show Allocation Stack Traces".
Summary: Deadlock when called "Take Snapshot and Show Allocation Stack Traces".
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords: 7.4_WAIVER_APPROVED, VISUALVM
Depends on:
Blocks:
 
Reported: 2013-08-22 11:41 UTC by Jiri Skrivanek
Modified: 2014-02-13 02:45 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump. (33.17 KB, text/plain)
2013-08-22 11:41 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2013-08-22 11:41:04 UTC
Created attachment 139056 [details]
Thread dump.

Profiler is locked when you request to "Take Snapshot and Show Allocation Stack Traces" while profiling web project. To reproduce:

- create web project Java EE 7, (GlassFish server)
- right-click project node and choose Profile
- select Memory -> Analyze Memory -> Advanced, select both Record full object lifecycle, Record Stack Trace for Allocations
- confirm dialog by Run button.
- press Live Results button and wait until the application is started.
- press Reset Collected Results button. Live Results window should be empty for a while and then refreshed.
- right-click char[] and choose Stop Profiling this Class. The class should disappear.
- right-click java.lang.String and choose Take Snapshot and Show Allocation Stack Traces. 

Product Version: NetBeans IDE Dev (Build 201308212300)
Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b55
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b40
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 1 Tomas Hurka 2013-09-05 08:20:14 UTC
Fixed in profiler-main

changeset:   263070:657c7a274ed6
user:        Tomas Hurka <thurka@netbeans.org>
date:        Thu Sep 05 10:18:40 2013 +0200
summary:     bugfix #234784, synchronization fixed - first take lock on ProfilerClient and than call transaction.beginTrans()
Comment 2 Quality Engineering 2013-09-07 03:43:12 UTC
Integrated into 'main-silver', will be available in build *201309070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/657c7a274ed6
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #234784, synchronization fixed - first take lock on ProfilerClient and than call transaction.beginTrans()
Comment 3 Tomas Hurka 2013-11-13 09:15:55 UTC
Transplanted to release74

changeset:   275825:540dfb95e498
branch:      release74
user:        Tomas Hurka <thurka@netbeans.org>
date:        Thu Sep 05 10:18:40 2013 +0200
summary:     bugfix #234784, synchronization fixed - first take lock on ProfilerClient and than call transaction.beginTrans()
Comment 4 Quality Engineering 2014-02-13 02:45:39 UTC
Integrated into 'main-silver', will be available in build *201402130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/6bd1c4af3d59
User: Tomas Hurka <thurka@netbeans.org>
Log: 239526, synchronization fixed - first take lock on ProfilerClient and than call transaction.beginTrans() (this is similar to issue #234784)