Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 251610 - Runtime exception when trying to save view of CPU Comparison as image
Runtime exception when trying to save view of CPU Comparison as image
Product: profiler
Classification: Unclassified
Component: Base
All All
: P3 (vote)
: 8.1
Assigned To: Jiri Sedlacek
: 251666 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2015-04-03 07:59 UTC by stwr
Modified: 2015-04-15 16:45 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT

Copy of messages.log (93.92 KB, text/plain)
2015-04-03 07:59 UTC, stwr
stacktrace (3.89 KB, text/plain)
2015-04-07 07:12 UTC, Jiri Skrivanek

Note You need to log in before you can comment on or make changes to this bug.
Description stwr 2015-04-03 07:59:23 UTC
Created attachment 153009 [details]
Copy of messages.log

Product Version: NetBeans IDE Dev (Build 201504020001)
Java: 1.8.0_31; Java HotSpot(TM) 64-Bit Server VM 25.31-b07
Runtime: Java(TM) SE Runtime Environment 1.8.0_31-b13
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\cendrowiczm\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\cendrowiczm\AppData\Local\NetBeans\Cache\dev

Use Case:

1. Create 2 snapshots of collected profile results
2. Compute differences between these 2 snapshots -> the tab 'CPU Comparison' opens automatically
3. Execute the 'Save Current View to Image' action

The following exception is thrown twice. Once when the dialog 'Select File or Directory' is being displayed. The second one is thrown when trying to 'Save' the image anyway. In the result there is no way to 'Save Current View to Image'.

	at org.netbeans.lib.profiler.ui.UIUtils.createScreenshot(
	at org.netbeans.lib.profiler.ui.cpu.CCTDisplay.getCurrentViewScreenshot(
	at org.netbeans.modules.profiler.CPUDiffPanel.getViewImage(
	at org.netbeans.modules.profiler.SaveViewAction$4.getImage(
	at org.netbeans.modules.profiler.ui.ImagePreviewPanel$
	at org.openide.util.RequestProcessor$
	at org.netbeans.modules.openide.util.GlobalLookup.execute(
	at org.openide.util.lookup.Lookups.executeWith(
	at org.openide.util.RequestProcessor$
Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
	at org.netbeans.modules.profiler.ui.ImagePreviewPanel.setImage(
	at org.netbeans.modules.profiler.SaveViewAction.selectSnapshotTargetFile(
	at org.netbeans.modules.profiler.SaveViewAction.actionPerformed(
	at javax.swing.AbstractButton.fireActionPerformed(
	at javax.swing.AbstractButton$Handler.actionPerformed(
	at javax.swing.DefaultButtonModel.fireActionPerformed(
	at javax.swing.DefaultButtonModel.setPressed(
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(
	at java.awt.AWTEventMulticaster.mouseReleased(
	at java.awt.Component.processMouseEvent(
	at javax.swing.JComponent.processMouseEvent(
	at java.awt.Component.processEvent(
	at java.awt.Container.processEvent(
	at java.awt.Component.dispatchEventImpl(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.LightweightDispatcher.retargetMouseEvent(
	at java.awt.LightweightDispatcher.processMouseEvent(
	at java.awt.LightweightDispatcher.dispatchEvent(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Window.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.EventQueue.dispatchEventImpl(
	at java.awt.EventQueue.access$500(
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue.dispatchEvent(
	at org.netbeans.core.TimableEventQueue.dispatchEvent(
	at java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.awt.EventDispatchThread.pumpEvents(
	at java.awt.EventDispatchThread.pumpEvents(
[catch] at
Comment 1 gokumar 2015-04-06 04:48:48 UTC
Even I faced this problem today
Comment 2 gokumar 2015-04-06 05:44:30 UTC
*** Bug 251666 has been marked as a duplicate of this bug. ***
Comment 3 Jiri Skrivanek 2015-04-07 07:12:23 UTC
Created attachment 153068 [details]

Reproduced as described in the initial comment.
Comment 4 Jiri Sedlacek 2015-04-15 16:45:24 UTC
Fixed by fixing Bug 251865.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo