Skip to content

Bug: throw exception :( #31

@A-gambit

Description

@A-gambit

After simple run of exthouse recived an exception:

Error: Protocol error (Tracing.end): Tracing failed
    at Function.fromProtocolMessage (/Users/gregoryshehet/.nvm/versions/node/v12.14.1/lib/node_modules/exthouse/node_modules/lighthouse/lighthouse-core/lib/lh-error.js:132:19)
    at /Users/gregoryshehet/.nvm/versions/node/v12.14.1/lib/node_modules/exthouse/node_modules/lighthouse/lighthouse-core/gather/connections/connection.js:123:25
    at processTicksAndRejections (internal/process/task_queues.js:94:5) {
  protocolMethod: 'Tracing.end',
  protocolError: 'Tracing failed',
  friendlyMessage: undefined
}
Cannot destructure property `extFile` of 'undefined' or 'null'.

So I tried to fix it locally by wrapping extFile destructor inside if condition:

 if (completeRes[medianIndex]) {
      const { extFile } = completeRes[medianIndex]
      const medianFileName = join(tmpDir, `median-${extFile}`.replace(/-\d+(?=\.\w+$)/, ''))
      await remove(medianFileName)
      await symlink(extFile, medianFileName)
}

But got another error, and think to create an issue :)

ENOENT: no such file or directory, open '<SOME_PATH>/median-result-collamark.json'

So I created such a file manually. Some note, script creates another json file median-result-default.json with a new line symbol in the end '\n' of the file name.

After I received an error:

Error: Protocol error (Tracing.end): Tracing failed
    at Function.fromProtocolMessage (/Users/gregoryshehet/work/extension-perfomance/node_modules/lighthouse/lighthouse-core/lib/lh-error.js:132:19)
    at /Users/gregoryshehet/work/extension-perfomance/node_modules/lighthouse/lighthouse-core/gather/connections/connection.js:123:25
    at processTicksAndRejections (internal/process/task_queues.js:94:5) {
  protocolMethod: 'Tracing.end',
  protocolError: 'Tracing failed',
  friendlyMessage: undefined
}
Cannot read property 'main-thread-tasks' of undefined

It seems there is some bugs in the library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions