-
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
Fatal trace logic error - expected start event, got X #7764
Comments
The issue here is that there's a |
that definitely seem weird, you would think the trace system wouldn't allow let that be possible (logging an event isn't responsible for its own timing, right?). But I also vaguely remember dealing with something like this back when we were figuring out timestamp sorting. @paulirish is trace viewer flexible in this way? |
Yeah I remember having trouble there, but that was when they were equal though. This time it is actually 1 microsecond after its parent should have ended. |
Ah, I was thinking about when we were looking at Even less of an analogous situation :) but I think I remember trace viewer (or devtools timeline model?) just rolling with it since it sometimes happens, so I'm curious if it does the same for this. |
Could you point out the relevant trace events here? My first time looking at this trace and dunno how to find this myself |
I popped the trace into I deleted the setup but can split it back out again if you need the timestamps? |
i gots it just the good parts:
The surrounding v8 events might be relevant, but the above does give the same error. |
@patrickhulce does this make any sense? passed all the tests + error doesn't happen |
Kinda, but if it's definitely a fatal trace logic error for trace events to overlap like that. Later logic will generate nonsensical numbers if there are two events executing at once like this or the events aren't directly nested within their parents. We would have to force the We should definitely add a test for this case too so something would've caught it I can get on that :) |
Hi, I am also getting this error when I run the Lighthouse test from the CI. It never happens when I run the test locally.
Is there a work-around I can put in place? |
We are still seeing intermittent |
Thanks for letting us know @andystalick! 5.0 shipped with a few of the workarounds but was still relatively conservative. It sounds like we'll have to be a bit more aggressive in our recovery from Chrome errors to fully take care of this. |
@patrickhulce Seeing this on LH 5.1 too |
Thanks @benschwarz there was a lot more discussion around these cases in aslushnikov/tracium#8 which fixes will be making their way over for our tracehouse refactor in the next few weeks. |
In case this info helps: we at Sauce only experiencing this issue ( |
To give some context: we are using Puppeteer and Lighthouse to trace the browser when being automated via WebDriver and we experience the error above only for Chrome v75 on Windows. Looking into the flame chart of a simple trace (e.g. for a page like https://this-page-intentionally-left-blank.org/) we see more than just ordering issues, e.g. Chrome v74 Windows (working_tracelog.txt): Chrome v75 Windows (borked_tracelog.txt): I see the same issue with when using Tracium to get all computed main thread tasks. If remove the following 3 events from the borked tracelog I get proper results back:
I will look more into this to see if I can make Lighthouse more forgiving without impacting the performance results. |
Thanks @christian-bromann! This effort is mostly underway (#9174 #9230), but your info does confirm what we're seeing in that sometimes a few trace events are just irreconcilable and the only option is to drop some of them to get back to a sensible state. |
So I've 'googled' the error that I'm getting from pagespeed insights and I've found myself onto this page. Is this the same error we would be getting on the page and if so is it just a waiting game before this gets resolved for the pagespeed insights site? |
@patrickhulce is there an effort to fix this in Chrome directly? I logged an issue in Chromium because this problem also messes up the performance tab in DevTools, e.g. here |
@christian-bromann not that I'm aware of. You've already filed in the correct place though for it to be looked into. |
We are also experiencing this issue. |
For information, the problem is still present on version 5.2.0! |
@Thanaen the fixes for these issues are in 5.6.0, so that would be expected. |
Oh, okay! |
I attached the assets from a LR run that resulted in this error message.
assets.txt
I'd provided the lhr too, but it's on a remote machine, too big and
scp
keeps crashing (side note, what???)Some notes:
node lighthouse
nor a local WRS. Only seems to happen in production LR environmentsRelated issues
#7691
The text was updated successfully, but these errors were encountered: