-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
☔️ Protocol error (Tracing.start): Tracing is already started #1091
Comments
Can you post the URL you're trying? Is this 100℅ reproducible in stable
chrome or just canary?
…On Wed, Nov 30, 2016, 8:57 PM Ahmad Arif Maulana ***@***.***> wrote:
*Lighthouse Version*: 1.2.2
*Chrome Version*: 57.0.2937.0
*Error Message*: Protocol error (Tracing.start): Tracing is already
started
*Stack Trace*:
at ExtensionConnection.handleRawError (chrome-extension://blipmdconlkpinefehnmjammfjpmpbjk/scripts/lighthouse-background.js:7377:11)
at Object.chrome.debugger.sendCommand.result [as callback] (chrome-extension://blipmdconlkpinefehnmjammfjpmpbjk/scripts/lighthouse-background.js:7526:33)
at safeCallbackApply (extensions::sendRequest:21:15)
at handleResponse (extensions::sendRequest:74:7)```
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1091>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AAOigCuub2MeGhEiqh0z4CF9EyMrjN1Zks5rDlOpgaJpZM4LBAOR>
.
|
I'm using canary right now |
This one is hard to solve. It happens on occasion and the best solution is restarting chrome right now. If this continues we can look into ways of forcing Chrome to stop tracing even after we've disconnected. |
for errors that are causing this, we could add an attempt to stop tracing in the gather-runner cleanup. If the error caused us to lose connection to devtools it won't work, but it may help in some cases |
@caseq tells me that the tracing backend should stop the trace is the protocol client has disconnected. So everything is lined up to make this work, though there may be a race condition. I'm having trouble reproducing this bug (though I have hit it before). If anyone can find a reliable repro for this, please comment with it. |
I have a reproducible test case. Will try and reduce so you can either use it for debugging OR add it as part of the integration tests. |
|
crazy idea: we could always try to stop tracing before doing anything and just throw away any exception that results |
Here's an attached screen shot from www.yahoo.com site audit. Tested on Version 73.0.3681.0 (Official Build) canary (64-bit). The error message says "Something went wrong with recording the trace over your page load. Please run Lighthouse again.", in case that helps. I've quit/closed the app, and restarted, and it still happens. |
@mssodhi thanks for reporting. I can share that we are aiming to push 4.0.0 to the next Chrome (not yet in Canary), and in doing so I see that this tracing error no longer happens. Could be that next Canary will have this issue resolved. |
@hoten thanks for the update! |
We believe this is primarily due to Chrome tracing in the background and is fixed with chrome-launcher v0.13.3 (GoogleChrome/chrome-launcher#203). If you cannot use that version of chrome-launcher because you're running from DevTools or another channel make sure Chrome is started with the following flag |
Moreover, there are some Chrome changes that happened recently that may have resolved this at the Chrome layer.
These changes are in Chrome 88+. googlers, see 🔒 crbug.com/1058632 for discussion. status:
so in general we should be good (in Chrome 88+) and any more of these errors can raise eyebrows. |
Protocol error (Tracing.start): Tracing has already been started (possibly in another tab).
|
I am facing the same issue, Using chrome browser and when I use lighthouse on my website's admin pages got the below error. Chrome Version 116.0.5845.96 Protocol error (Tracing.start): Tracing has already been started (possibly in another tab).
|
Facing this issue as well while trying to send CDP command via selenium -
|
NOTICE FOR DUPLICATE BUG FILERS: The only known fix for this is usually completely restarting the browser, and sometimes with a completely fresh profile.
Lighthouse Version: 1.2.2
Chrome Version: 57.0.2937.0
Error Message: Protocol error (Tracing.start): Tracing is already started
Stack Trace:
The text was updated successfully, but these errors were encountered: