google / google/perfetto

Crash on UI in zero duration trace

Open
#6,915 3 comments 1 reaction 1 assignee Claimed by @stevegolton View on GitHub
ui
Dominant language
C++
Stars
6.5k
Forks
868
Avg merge
2d 1h
Merged PRs (30d)
218

Description

From https://github.com/javierhonduco/lightswitch/pull/526

```
UI: https://ui.perfetto.dev/v57.2-da1d152cf

RangeError: The number NaN cannot be converted to a BigInt because it is not an integer
- BigInt ()
- new _HighPrecisionTime (../../src/base/high_precision_time.ts:46:4)
- _HighPrecisionTime.addNumber (../../src/base/high_precision_time.ts:116:4)
- TimeScale.pxToHpTime (../../src/base/time_scale.ts:52:4)
- Object.onDrag (../../src/core_plugins/dev.perfetto.Timeline/minimap.ts:118:10)
- Object.onDrag (../../src/core_plugins/dev.perfetto.Timeline/minimap.ts:341:16)
- HTMLDivElement.onPointerMove (../../src/base/mithril_utils.ts:422:6)

Trace: not available (FILE). Provide repro steps.
UA: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36
Referrer: http://127.0.0.1:9001/
```

We should probably show an empty "this trace has no timeline data" page if the trace is zero duration.

Internal: b/562314497

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.