Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: throw exception :( #31

Open
A-gambit opened this issue Jul 9, 2020 · 0 comments
Open

Bug: throw exception :( #31

A-gambit opened this issue Jul 9, 2020 · 0 comments

Comments

@A-gambit
Copy link

A-gambit commented Jul 9, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant