You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing a crash when aggregating some, but not all, counter tracks on the Canary & Autopush channels
How to reproduce
open large_power_rail_trace.pftrace.gz in the perfetto UI using the auto push channel. Unlike other traces, this one reliably reproduces the issue.
Expand power rail tracks
Click and drag over an arbitrary region of one or more tracks.
observe crash popup
Full error:
UI: https://ui.perfetto.dev/v49.0-19792a991
Traceback (most recent call last):
File "stdin" line 5 col 16
from counter_leading_intervals!((
^
no such macro defined
Query:
CREATE OR REPLACE PERFETTO TABLE counter_aggregation AS
WITH
res AS (
select c.*
from counter_leading_intervals!((
SELECT counter.*
FROM counter
WHERE counter.track_id = 0
AND counter.ts <= 1027063462979
)) c
WHERE c.ts + c.dur >= 288340322553
),
aggregated AS (
SELECT
COUNT(1) AS count,
ROUND(SUM(
(MIN(ts + dur, 1027063462979) - MAX(ts,288340322553))*value)/738723140426,
2
) AS avg_value,
(SELECT value FROM counter WHERE track_id = 0
AND ts + dur >= 288340322553
AND ts <= 1027063462979 ORDER BY ts DESC LIMIT 1)
AS last_value,
(SELECT value FROM counter WHERE track_id = 0
AND ts + dur >= 288340322553
AND ts <= 1027063462979 ORDER BY ts ASC LIMIT 1)
AS first_value,
MIN(value) AS min_value,
MAX(value) AS max_value
FROM res
)
SELECT
(SELECT name FROM counter_track WHERE id = 0) AS name,
*,
MAX(last_value) - MIN(first_value) AS delta_value,
ROUND((MAX(last_value) - MIN(first_value))/738.723140426, 2) AS rate
FROM aggregated
- (Error: Traceback (most recent call last):)
- WasmEngineProxy.query (frontend_bundle.js:80597:14)
- async EngineProxy.query (frontend_bundle.js:80700:17)
- async CounterSelectionAggregator.createAggregateView (frontend_bundle.js:94706:10)
- async SelectionAggregationManager.runAggregator (frontend_bundle.js:83167:29)
- async Object.work (frontend_bundle.js:83112:31)
- async AsyncLimiter.runTaskQueue (frontend_bundle.js:82558:22)
Trace: not available (ARRAY_BUFFER). Provide repro steps.
UA: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Referrer:
The text was updated successfully, but these errors were encountered:
cphlipot1
changed the title
[UI] counter aggregation query crash on Autopush & Canary
[UI] Counter aggregation query crash on Autopush & Canary
Jan 7, 2025
I'm seeing a crash when aggregating some, but not all, counter tracks on the Canary & Autopush channels
How to reproduce
Full error:
The text was updated successfully, but these errors were encountered: