-
Notifications
You must be signed in to change notification settings - Fork 2.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
Devtools "Audit" (Lighthouse) feature causes browser to freeze / lock up #3199
Comments
@BhuZha can you try with shields down? |
+1 Also experiencing this issue on the latest and dev releases with shields being up or down. |
+1 Same problem exists on my Elementary os juno. |
As a quick-fix for others running into this issue, installing the Lighthouse plugin and using that seems to work well: https://chrome.google.com/webstore/detail/lighthouse/blipmdconlkpinefehnmjammfjpmpbjk/ |
for me this issue is also present, lighthouse just stuck on 'Lighthouse is warming up...' part, on any website I try to run it Brave just installed: |
@rebron Issue still occurring on all versions |
Still happening on:
|
Looks like the problem is that devtools tries to get a file from I would like to dig deeper on this but don't know what piece handles the requests to that URL pattern. |
Still present on both Windows & MacOS running latest versions and on all clients.
|
Issue here too. Brave: |
@willstocks it is not same issue since pagespeed works with shields down, unfortunately it doesn't give as much informations as audit does :( |
I believe this may be broken because we disable remote debugging- which is captured with #5640 This was disabled in brave/brave-core#790 - per the issue it fixes (#1736):
Comment left in the remote debugging issue (#5640)... subscribe to that if you haven't already |
Confirmed this doesn't work on 1.2 - will look into this... |
Fixes Remote Debugging setting in 1.2 as reported in brave/brave-browser#3199 (comment)
Good find, @btlechowski! Fixed with brave/brave-core@1d23d47 (patch deletion didn't happen with uplift, for some reason). Next build, this will be fixed. I've confirmed this works great locally using the |
Removing @btlechowski can you please try testing again? Thanks! 😄👍 |
@bsclifton good job! It works! Verification passed on
Verified using test plan from brave/brave-core#4044 for this issue. Warning message when Remote Debugging is disabled: Verified passed with
Saw this message in terminal when Remote Debugging disabled: Saw this after running the audit: Verification passed on
|
I just tested Beta (1.2.34), Developer (1.3.73), and Nightly (1.4.42) on Windows 10 1909 (18363.535). I wasn't able to get Lighthouse to work in any of them. Steps were as follows:
The audit doesn't appear to begin, even if I leave the window alone for a while. |
@jonathansampson, you need to enable |
@btlechowski Tried that on Nightly (1.4.42) and got the following: |
Works on
@jonathansampson Don't forget to restart the browser after enabling debugging |
@jonathansampson please do try restarting the browser; it doesn't need to be restarted on macOS- might be my bad for missing on Windows For sure, you will need to reload the page (with the setting enabled) though |
@bsclifton Unfortunately, restarting the browser offered no relief :( Protocol error (Runtime.evaluate): Promise was collected
|
@jonathansampson what happens if you try another page / website? |
@bsclifton Good call. Google and Reddit both worked as expected. Something odd with Brave's site. Thank you for the sanity check. I'll create an issue regarding the Brave case, and investigate further as time permits. |
Still hanging with the lighthouse warming up message for me on both sites tested, one localhost and one live on internet. Linux PoPOS 19.10. This is on latest version after OS restart. |
@RobMaskell if you visit brave://settings/privacy, you should see a new setting As this isn't obvious, I created #7645 to track proxying this (attempting to make it safe) and enabling it by default |
@RobMaskell same for me. I've enabled Remote debugging but go all errors from Lighthouse. Still have to use Chrome to audit which is a bummer |
Same. Total freeze. |
@jcliftonmeek and you had enabled Remote Debugging under brave://settings/privacy? (I believe it requires a restart of the browser). It should be working after that |
Lighthouse/Chromium eng here... some FYIs The Lighthouse worker code is tied with the remote debugging feature of DevTools because it is one of a few modules that Chromium DevTools does not ship directly with the binary, to reduce size. Other items include the emulation device images. So when a user first navigates to the Lighthouse panel and runs it, the DevTools frontend will try to download from the remote module server the file at a specific revision, defined by the Chromium binary. If it can't find that file for some reason, it tries again with a fallback revision, before finally failing. Since the revision that Brave uses will never match what is on Chromium's devtools remote module server [1], the hardcoded fallback revision will always be used in Brave. On May 30, 2019 we renamed the files for the Audits panel, but never updated the fallback revision, not realizing this broke the fallback mechanism. In June 2020 we updated the fallback revision for the remote module code that runs Lighthouse:. As such, probably Lighthouse didn't work in Brave between then and last month. Although reading this PR, I see it worked in Brave ~Dec 2019, so it seems I'm missing piece of the picture. This shouldn't happen again, now that we are aware of the problem. If we ever rename or move these modules again, we'll know to update the fallback revision. And if Brave really does rely on the fallback revision, you'll be happy to know we plan to update that much more frequently now. [1] Definitely an assumption, I don't know how Brave is built. If the version from this [header] (as built by Brave) (https://source.chromium.org/chromium/chromium/src/+/master:out/win-Debug/gen/build/util/webkit_version.h;l=9;drc=d32eefd88b404ffff436a30c092c7e015516ce44;bpv=1;bpt=0?originalUrl=https:%2F%2Fcs.chromium.org%2F) matches a real revision in Chromium (and thus the devtools remote code server), then my assumption is wrong. |
@connorjclark we've since removed the We do pull in the full Chromium code (with history) when doing a Brave build - so the Chromium SHAs should resolve just fine - we basically have the Brave code (patches, etc) under How does the Lighthouse script use the SHA? Is there a target we can check for in our output dir? Thanks for reaching out, BTW 😄 |
Cool! This implies to me that the hash in
Lighthouse doesn't use it directly, but the DevTools frontend code does. Some modules in the frontend are marked "remote" and get downloaded through the process I mentioned. Most modules are bundled with Chromium. There's no output to check for really. In an offline processing step, we have a service that checks out each revision of Chromium, builds the devtools frontend, and for that revision upload the output files to the remote module server. FYI If you don't care for this entire remote module feature for Lighthouse (read: increased binary size is preferable to going to a remote service, even if via a proxy), you could probably tweak the BUILD file to bundle the Lighthouse worker instead of making it a remote module. https://cs.chromium.org/chromium/src/third_party/devtools-frontend/src/BUILD.gn?q=f:devtools+BUILD&sq=package:chromium&dr=C&l=213
NP! Having never used Brave before, I was simply curious if Lighthouse worked in it. Came across this PR and was happy to see ya'll figured it out! |
Test plan
See brave/brave-core#4044
Description
Feature is freezing / locking up when trying to use it.
When trying to audit a website the tool will lockup on run. This lockup also occurs when attempting to cancel it. After another cancel the tool will close then unable to run audits until the browser is relaunched.
Steps to Reproduce
inspect
orctrl + shift + i
)run audits
Actual result:
Brave
Expected result:
Chrome
Reproduces how often:
Easily reproduced
Brave version (brave://version info)
Reproducible on current release:
Website problems only:
Additional Information
The text was updated successfully, but these errors were encountered: