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.
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.
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)
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.
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.
*** This bug has been marked as a duplicate of bug 223291 ***