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 74914 - Take snapshot is performed from AWT thread
Summary: Take snapshot is performed from AWT thread
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 5.x
Hardware: PC All
: P2 blocker (vote)
Assignee: Jiri Sedlacek
URL:
Keywords: PERFORMANCE
: 71602 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-12 13:02 UTC by ehucka
Modified: 2006-10-23 16:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
threaddump (15.66 KB, text/plain)
2006-04-12 13:02 UTC, ehucka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2006-04-12 13:02:00 UTC
I have tried to find a memory leak in an application by its junit test.
I invoked Take snapshot after the test had finished and UI in IDE was blocked by
something. 
Threads dump shows that main part of Take Snapshot action (synchronized method
in jfluid) is called from event dispatch thread.
Comment 1 ehucka 2006-04-12 13:02:41 UTC
Created attachment 29799 [details]
threaddump
Comment 2 Jiri Sedlacek 2006-04-12 13:44:19 UTC
Will fix for 6.0. Lowering priority as it seems not to dramatically affect the 
user.
Comment 3 ehucka 2006-04-12 14:16:15 UTC
only deadlocks ide :) if there is some problem during taking snapshot
Comment 4 ehucka 2006-07-26 10:37:01 UTC
Causes ui deadlocks in 5.5:

"AWT-EventQueue-1" prio=1 tid=0x08f7f618 nid=0x1431 waiting for monitor entry
[0xb1169000..0xb116a1c0]
com.sun.tools.profiler.ProfilerClient.getMemoryProfilingResultsSnapshot(ProfilerClient.java:581)
- waiting to lock <0x856dea58> (a com.sun.tools.profiler.ProfilerClient)
org.netbeans.modules.profiler.ResultsManager.takeSnapshot(ResultsManager.java:133)
org.netbeans.modules.profiler.ProfilerControlPanel2$ResultsSnippetPanel.actionPerformed(ProfilerControlPanel2.java:1116)
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)

It can occure when heap memory of ide is almost full during taking of snapshot.
Comment 5 Jiri Sedlacek 2006-08-08 16:34:17 UTC
Fixed in trunk.
Comment 6 Tomas Hurka 2006-08-18 12:49:19 UTC
*** Issue 71602 has been marked as a duplicate of this issue. ***
Comment 7 ehucka 2006-09-11 14:44:08 UTC
v
Comment 8 Jiri Sedlacek 2006-10-04 15:55:21 UTC
Not for 5.5.