Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tracecompass-dev] Error while open a trace programmatically

Hi,

 

I’m getting following error when I tried to open a trace programmatically. But I can open it using double clicking the file.

Following is the code snippet I’m using.

 

 

Snippet

MyTrace myTrace = new MyTrace();

                                             myTrace.initTrace(null,

                                                                           "C:\\Users\\trace.txt",

                                                                           MyTraceEvent.class);                                                                 

TmfTraceManager.refreshSupplementaryFiles(myTrace);

final TmfTimeRange timeRange = new TmfTimeRange(TmfTimestamp.BIG_BANG, TmfTimestamp.BIG_CRUNCH);

TmfSignalManager.dispatchSignal(new TmfTraceOpenedSignal(this, myTrace, null));

 

 

Exception

 

java.lang.IllegalArgumentException: from:-9223372036854775808, to:1695185270809001, resolution:1

               at org.eclipse.tracecompass.statesystem.core.StateSystemUtils.getTimes(StateSystemUtils.java:692)

               at org.eclipse.tracecompass.tmf.ui.views.timegraph.BaseDataProviderTimeGraphView.getFetchRowModelParameters(BaseDataProviderTimeGraphView.java:666)

               at org.eclipse.tracecompass.tmf.ui.views.timegraph.BaseDataProviderTimeGraphView.zoomEntries(BaseDataProviderTimeGraphView.java:413)

               at org.eclipse.tracecompass.tmf.ui.views.timegraph.AbstractTimeGraphView.zoomEntries(AbstractTimeGraphView.java:805)

               at org.eclipse.tracecompass.tmf.ui.views.timegraph.BaseDataProviderTimeGraphView.buildEntryList(BaseDataProviderTimeGraphView.java:268)

               at org.eclipse.tracecompass.tmf.ui.views.timegraph.AbstractTimeGraphView$BuildRunnable.run(AbstractTimeGraphView.java:545)

               at org.eclipse.tracecompass.tmf.ui.views.timegraph.AbstractTimeGraphView$5.run(AbstractTimeGraphView.java:1939)

               at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

 

 

Please let me know whether I need to take care of something else.

 

~Vinod


Back to the top