firefox-devtools / firefox-devtools/profiler

"RangeError: invalid digits value: NaN." when loading a profile

Open
#4,737 2 comments 0 reactions 0 assignees View on GitHub
polish profile data
Dominant language
TypeScript
Stars
1.5k
Forks
491
Avg merge
3d 5h
Merged PRs (30d)
30

Description

Some of my profiles generated by taskcluster fail to load. Example url:
https://profiler.firefox.com/from-url/https%3A%2F%2Ffirefox-ci-tc.services.mozilla.com%2Fapi%2Fqueue%2Fv1%2Ftask%2FIZgEQVU3RxueVnEANqiX_A%2Fruns%2F0%2Fartifacts%2Fpublic%2Fbuild%2Fprofile_build_resources.json

The error console shows:
```
Uncaught RangeError: invalid digits value: NaN
_getNumberFormat format-numbers.js:30
memoized Immutable
formatNumber format-numbers.js:80
formatNanoseconds format-numbers.js:218
formatTimestamp format-numbers.js:345
getFormattedTimeLength committed-ranges.js:169
render ProfileFilterNavigator.js:77
React 14
Redux 7
urlSetupDone app.js:89
Redux 2
setupInitialUrlState app.js:173
withHistoryReplaceStateSync url-handling.js:89
setupInitialUrlState app.js:170
Redux 2
_processInitialUrls UrlManager.js:138
format-numbers.js:30:9
```

Adding a console.log call in ProfileFilterNavigator.js before the getFormattedTimeLength call shows the range object is: Object { start: 0, end: NaN }

┆Issue is synchronized with this [Jira Task](https://mozilla-hub.atlassian.net/browse/FP-32)

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.