Hi Abdellah,
At first glance it looks like TransientState is empty by the time you try to do the query. Since, ITmfStateSystem#getOngoingStartTime(int) gets info from TransientState by default I think you need to override StateSystem#getOngoingStartTime(int)
or fill TransientState before you try to query2D.
--
Best regards,
Ivan Grinenko
Software Engineer
Auriga
From: tracecompass-dev <tracecompass-dev-bounces@xxxxxxxxxxx>
On Behalf Of rahmani abdellah
Sent: Wednesday, February 23, 2022 4:54 AM
To: tracecompass developer discussions <tracecompass-dev@xxxxxxxxxxx>
Subject: [tracecompass-dev] Partial History Tree (Index out of bounds error)
I'm actually working on the partial state system, I'm overriding the query2D() in order to be able to populate the views like the Control Flow view with the states.
With the actual code that I'm attaching to this email, if we comment out the lines 342 to 343, we will be able to see the states that we saved at the checkpoints when we open the control flow view or resources view. My objective is to
complete the view with the missing states by reading the trace and building the intervals from there without saving them to the state system, but actually, I'm having this error saying "Index 32 out of bounds for length 0" when I try to open the control flow
view. It seems that the quark that I'm requesting at line 342 does not exist.
Can you please tell me what is missing or what I'm doing wrong in this code?
|