New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 731928 link

Starred by 1 user

Issue metadata

Status: Archived
Owner: ----
Closed: Jun 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

v8.cpu_profiler causes traceviewer to throws RangeError: Invalid array length

Project Member Reported by bgir...@fb.com, Jun 9 2017

Issue description

RangeError: Invalid array length
    at CpuUsageAuditor.computeCpuUsageSeries_ (chrome://tracing/tracing.js:4301:224)
    at CpuUsageAuditor.runAnnotate (chrome://tracing/tracing.js:4299:54)
    at auditors.forEach (chrome://tracing/tracing.js:1188:312)
    at Array.forEach (<anonymous>)
    at addImportStage (chrome://tracing/tracing.js:1188:284)
    at Task.run (chrome://tracing/tracing.js:2172:104)
    at runAnother (chrome://tracing/tracing.js:2178:566)
    at runTask (chrome://tracing/tracing.js:2151:57)
    at processIdleWork (chrome://tracing/tracing.js:2156:116)
    at window.requestIdleCallback.timeout (chrome://tracing/tracing.js:2149:81)

This error occurs if the startTime event doesn't make it into the trace. This can happen if the target thread is unresponsive during the trace. We're able to get samples for that trace but the startTime event doesn't always get put in the trace. These traces right now just about and if the trace is collected with chrome://tracing the trace is thrown out.

If you have a ProfileChunk event:
        {
            "args": {
                "data": {
                   ...
                    ]
                }
            },
            "cat": "filer",
            "id": "0xb0ba8fa0b1b3dd98",
            "name": "ProfileChu",
            "ph": "P",
            "pid": 88445,
            "tid": 39815,
            "ts": 273569870279,
            "tts": 8652
        },

The missing event that fixes the trace that is sometimes missing:
        {
            "args": {
                "data": {
                    "startTime": 273569650744
                }
            },
            "cat": "disabled-by-default-v8.cpu_profiler",
            "id": "0xb0b2e3c864e0ae0c",
            "name": "Profile",
            "ph": "P",
            "pid": 86305,
            "tid": 775,
            "ts": 273569650746,
            "tts": 1550221
        },
 

Comment 1 by sdy@chromium.org, Jun 13 2017

Labels: -OS-Mac
Labels: TE-NeedsTriageHelp
Project Member

Comment 3 by sheriffbot@chromium.org, Jun 19 2018

Status: Archived (was: Unconfirmed)
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment