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.
This is probably the same problem as I reported in http://www.netbeans.org/issues/show_bug.cgi?id=77466, but just in case it is not I am opening a new IZ. The behavior is slightly different and I have changed the sample application. The new version of the sample application is attached to this IZ, along with the message log. I'll put the steps to reproduce in a separate comment.
Created attachment 30869 [details] sample application, in a project
Created attachment 30870 [details] message log
1. Put a Reset Results Profiling Point on line 31 of PrimeCalculator.java 2. Put a Take Snapshot Profiling Point on line 63 of PrimeCalculator.java 3. Profile the application, choosing Analyze Performance with "Entire Application" and "Profile All Classes" selected. 4. When the app. starts, put in a number that is less than 100000 and click the button. The application starts to eat up CPU time (which is expected) and then I see the NPE dialog box (the NPE stack trace is in the attached log file). After I dismiss the dialog box I cannot end my application. The IDE sometimes hangs as well, I typically end up using the Task Manager to kill both the IDE and my application.
It seems the Reset point confuses profiler if results are reset inside call graph, needs more investigation.
*** Issue 77466 has been marked as a duplicate of this issue. ***
Internal processing of profiling points was defective. #95631
Verified with 200709200000