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
JSON Profile Parse Error #675
Comments
It's line 232810.
|
Current educated guess: this comes from https://searchfox.org/mozilla-central/rev/b0098afaeaad24a6752aa418ca3e86eade5fab17/tools/profiler/core/ThreadInfo.cpp#230-233 if (aSavedStreamedMarkers) {
MOZ_ASSERT(aSinceTime == 0);
aWriter.Splice(aSavedStreamedMarkers);
}
// then calls StreamMarkersToJSON
SpliceableChunkedJSONWriter b;
b.StartBareList();
{
aBuffer.StreamMarkersToJSON(b, mThreadId, aProcessStartTime,
/* aSinceTime = */ 0, *mUniqueStacks);
}
b.EndBareList();
mSavedStreamedMarkers = b.WriteFunc()->CopyData(); My guess is that we have no markers and we end up with an empty So 2 possible ways to fix this:
So I'd rather go with 1 (and likely fix the similar code for samples above). |
Although I don't know how to check if the list is empty for this thread id :) Maybe 2 is easier then. |
I reproduce 100% with the following STR:
I think this confirms my guess:
=> so my guess is that one of the debugger's worker doesn't add any marker. I tried to reproduce with a simpler example https://everlong.org/mozilla/testcase-worker/ but this doesn't reproduce much (I think I reproduced 1 out of 10). |
I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1428076 because this will need a gecko patch. Closing here. |
reopning for tracking |
Autolanding in progress in https://bugzilla.mozilla.org/show_bug.cgi?id=1428076 |
done ! |
I've seen this one in the wild, and caught it. This one was on a wasm recording.
error-profile.json.zip
The text was updated successfully, but these errors were encountered: