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 252250 - Can't take CPU snapshot
Summary: Can't take CPU snapshot
Status: RESOLVED DUPLICATE of bug 223291
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-05 16:16 UTC by aditsu
Modified: 2015-07-02 09:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aditsu 2015-05-05 16:16:22 UTC
I'm trying to profile an external application, using the "Analyze Performance" configuration. I can attach to the application and see live results, but every time I click "Take Snapshot", nothing happens. So I am not able to obtain a call tree.
Comment 1 aditsu 2015-05-05 18:13:40 UTC
Update: the same thing is happening when I profile the application as a netbeans project.
Also, I just discovered it's not entirely true that every time I click "Take Snapshot", nothing happens. Very hard to notice, but a tiny "1" bubble appears in the status bar on the right side. When I double-click it, it shows me an unexpected exception - Priority: SILENT, Category: Error, java.lang.StackOverflowError.
The "report problem" link asks me to include the messages.log file, here is what it contains:

WARNING [org.netbeans.modules.progress.spi.InternalHandle]: Cannot switch to silent mode when not running at org.netbeans.core.ui.warmup.MenuWarmUpTask$NbWindowsAdapter$1HandleBridge.run(MenuWarmUpTask.java:269)
WARNING [org.netbeans.modules.progress.spi.InternalHandle]: Cannot switch to silent mode when not running at org.netbeans.core.ui.warmup.MenuWarmUpTask$NbWindowsAdapter$1HandleBridge.run(MenuWarmUpTask.java:269)
WARNING [org.netbeans.modules.progress.spi.InternalHandle]: Cannot switch to silent mode when not running at org.netbeans.core.ui.warmup.MenuWarmUpTask$NbWindowsAdapter$1HandleBridge.run(MenuWarmUpTask.java:269)
WARNING [org.netbeans.modules.progress.spi.InternalHandle]: Cannot switch to silent mode when not running at org.netbeans.core.ui.warmup.MenuWarmUpTask$NbWindowsAdapter$1HandleBridge.run(MenuWarmUpTask.java:269)

And the "show details" button gives me:
java.lang.StackOverflowError
	at org.netbeans.lib.profiler.results.cpu.CPUCCTContainer.addChild(CPUCCTContainer.java:655)
	at org.netbeans.lib.profiler.results.cpu.CPUCCTContainer.addChild(CPUCCTContainer.java:655)
(etc)
Comment 2 aditsu 2015-05-05 18:39:44 UTC
And another update: I managed to get it to work by changing the -J-Xss option in netbeans.conf. I still think it's a bug, because the IDE was extremely unhelpful in diagnosing the problem and finding a workaround.
Comment 3 aditsu 2015-05-05 19:01:38 UTC
On the other hand, if I select "Advanced (instrumented)" and "Profile all classes" then, again, I can't take a snapshot, and this time there is no error in the status bar.
Comment 4 Tomas Hurka 2015-07-02 09:13:17 UTC

*** This bug has been marked as a duplicate of bug 223291 ***