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.
Product Version: NetBeans IDE Dev (Build 200706190000, C/C++ Pack 20070619) Java: 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105 System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb) org.netbeans.modules.profiler/1 [1.1.1 070618] Performed steps: - Created Anagram Game project - Inserted Triggered Take Snapshot Profiling Point: reset results, used heap exceeds 5% of available memory, take every time - Started Memory Liveness Profiling: track every 1 object allocation, record stack trace for allocation. - On third PP hit profiled application stopped responding and became frozen. - There were an exception in IDE output: Exception in thread "pool-5-thread-30" java.lang.NullPointerException at java.io.DataOutputStream.writeUTF(DataOutputStream.java:330) at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306) at com.sun.tools.profiler.results.memory.MemoryResultsSnapshot.writeToStream(MemoryResultsSnapshot.java:159) - Confirmed to stop profiling. NetBeans wasn't harmed. Profiled application left frozen. Killed it.
Created attachment 44092 [details] IDE output
Created attachment 44095 [details] Profiled application threads dump
Triggered snapshots report: 1. hit at 19:54:40, open snapshot (hit for 6% heap usage) 2. hit at 19:57:04, open snapshot (hit for 6% heap usage) 3. hit at 20:00:18, no data available (hit for 6% heap usage)
I cannot reproduce it with NetBeans build 20070716, org.netbeans.modules.profiler/1 [1.2 070717] I followed the steps, but I have got only one PP hit. This is correct, since 5% of available memory was exceeded only once.
The issue doesn't seem to be reproducible with Profiler 1.3 070725 even there are more than 3 PP hits for each run.
Reproduced with Product Version: NetBeans IDE Dev (Build 200708200000) Java: 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105 System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb) Performed steps - Created Anagram Game project - Inserted Triggered Take Snapshot Profiling Point: reset results, used heap exceeds 5% of available memory, take every time - Started Memory Liveness Profiling: track every 1 object allocation, record stack trace for allocation. - Played with application until it became frozen - IDE asked about to stop non profiled application. Declined - Took a thread dumps of both applications - IDE asked about to stop non profiled application second time. Confirmed - Exception is shown in IDE: java.util.ConcurrentModificationException at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:761) at java.util.LinkedList$ListItr.next(LinkedList.java:696) at org.netbeans.modules.profiler.ppoints.GlobalProfilingPointsProcessor.processTriggeredProfilingPoints(GlobalProfilingPointsProcessor.java:176) - Profiled application left frozen. Killed it
Created attachment 46960 [details] Thread dump of profiled application
Created attachment 46961 [details] Thread dump of NB
Created attachment 46962 [details] Exception
Profiling Point report: 1. hit at 15:47:37, no data available (hit for 6% heap usage) 2. hit at 15:48:05, no data available (hit for 6% heap usage)
There is a deadlock in profiled application and this is the reason why Profiler failed to take snapshot.
Deadlock fixed in trunk.
Verified with Product Version: NetBeans IDE Dev (Build 200709200000) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06 System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)