-
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
RangeError: Invalid string length at onChunkRead #1685
Comments
This is interesting. Happening from the trace being streamed back over the protocol. I'm not able to reproduce, but the Lighthouse pass is timing out for me before the page has finished loading, so the trace will be fairly large. Maybe it's some kind OOM issue? |
Okay fun one. @caseq and I looked into this. I'm pretty sure it's coming from It's coming from V8 when a string gets to be too big. Now you may think, maybe we should build this string in a fashion more efficient than So, if we want to handle a trace this big, we will need to parse it incrementally. Basically a streaming JSON parser. DevTools already has code to do that and we've already loaded all those modules so it shouldn't be too hard. :) see |
@paulirish and @brendankenny, When trying to reproduce now I get this:
Then after few seconds the extension crashes. @brendankenny they way I do is basically this:
At this point you should see the trace on "Developer Tools" window. |
@mourawaldson gotcha. that's a separate bug, though im surprised that actually throws. thanks for reporting it regardless.. |
fixed by #2593, github just didn't pick up the auto-close |
Lighthouse Version: 1.5.0
Chrome Version: 56.0.2924.87
URL: https://app.ft.com/index_page/home
Error Message: scripts/popup.js:153 RangeError: Invalid string length at onChunkRead (lighthouse-background.js:9579)
background.runLighthouseInExtension.catch.err @ scripts/popup.js:153
Log:
Note: Since the log is too big I've only added the final lines, let me know if the full log is needed. Also, this was taken from the console log since the app just stopped running without raising any issue to the client level (which in my opinion should be done if any error occur).
The text was updated successfully, but these errors were encountered: