Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 351580

Summary: Line and Scatter Charts in Systemtap graphing tool are empty
Product: [Tools] Linux Tools Reporter: Otavio Pontes <obusatto>
Component: SystemtapAssignee: anithra <anithra>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: pmuldoon, wainersm
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Otavio Pontes CLA 2011-07-08 10:32:24 EDT
Build Identifier: M20110210-1200

When I run a systemtap script using the 'run w/ Graph' option and choose the Line (or Scatter) graph, the graph view is opened and I can see the graph Axis, but the graph content is not displayed.
Using other graphs options (like pie chart) works fine for me.
I'm using systemtap plugin version 0.7.

The log shows the following exception:

java.lang.ClassCastException: org.eclipse.linuxtools.systemtap.ui.graphingapi.ui.charts.ScatterChartBuilder incompatible with org.eclipse.linuxtools.systemtap.ui.graphingapi.ui.chart.widget.ChartCanvas
	at org.eclipse.linuxtools.systemtap.ui.graphing.structures.GraphDisplaySet.getActiveGraph(GraphDisplaySet.java:171)
	at org.eclipse.linuxtools.systemtap.ui.graphing.actions.SaveGraphImageAction$1$1.tabOpened(SaveGraphImageAction.java:192)
	at org.eclipse.linuxtools.systemtap.ui.graphing.structures.GraphDisplaySet.fireTabOpenEvent(GraphDisplaySet.java:261)
	at org.eclipse.linuxtools.systemtap.ui.graphing.structures.GraphDisplaySet.access$4(GraphDisplaySet.java:259)
	at org.eclipse.linuxtools.systemtap.ui.graphing.structures.GraphDisplaySet$ButtonClickListener.widgetSelected(GraphDisplaySet.java:238)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1061)
	at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:2743)
	at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1429)
	at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:257)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:611)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1384)

Reproducible: Always

Steps to Reproduce:
1. Open eclipse
2. Open Systemtap IDE perspective
3. Open a stap script
4. Click the 'run w/Graph' button
5. follow the steps in wizard.
6. Click in Create new Graph button
7. Select Line Graph (or Scatter Graph)
Comment 1 Otavio Pontes CLA 2012-05-09 09:18:52 EDT
This was fixed when we switched to swtchart.
Comment 2 Otavio Pontes CLA 2012-07-04 11:53:51 EDT
Tested in 1.0