Closed Bug 1468809 Opened 7 years ago Closed 7 years ago

Do not report expired keyed histograms (it breaks GeckoView too!)

Categories

(Toolkit :: Telemetry, defect, P1)

All
Android
defect

Tracking

()

RESOLVED FIXED
mozilla62
Tracking Status
firefox62 --- fixed

People

(Reporter: esawin, Assigned: Dexter)

References

Details

Attachments

(3 files)

Attached file gv_measurements-1.json
The GeckoView example app is crashing on startup on a fresh install with F MOZ_Assert: Assertion failure: false (The number of restored buckets does not match with the on in the definition), at /ho me/esawin/dev/g/toolkit/components/telemetry/TelemetryHistogram.cpp:3146
Attached file gv_measurements.json
Flags: needinfo?(alessio.placitelli)
Thanks, I'll look into this.
Assignee: nobody → alessio.placitelli
Blocks: 1452550
Flags: needinfo?(alessio.placitelli)
Priority: -- → P1
Summary: Telemetry histogram assertion on geckoview_example startup → Do not report expired keyed histograms (it breaks GeckoView too!)
Comment on attachment 8985661 [details] Bug 1468809 - Do not snapshot expired keyed histograms. https://reviewboard.mozilla.org/r/251196/#review257524 ::: toolkit/components/telemetry/TelemetryHistogram.cpp:397 (Diff revision 2) > const HistogramInfo& info = gHistogramInfos[histogramId]; > - kh = new KeyedHistogram(histogramId, info); > + const bool isExpired = IsExpiredVersion(info.expiration()); > + > + // If the keyed histogram is expired, set its storage to the expired > + // keyed histogram. > + if (isExpired) { This control flow is odd. I think it would be better either as if (isExpired && !gExpiredKeyedHistogram) or by adding the kh logic into this if/else block like if (isExpired) { if (!gExpiredKeyedHistogram) { } kh = gExpiredKeyedHistogram; } else { kh = new KeyedHistogram(...); }
Attachment #8985661 - Flags: review?(chutten)
Attachment #8985661 - Flags: review?(chutten) → review+
Attachment #8985661 - Flags: review?(jrediger) → review+
Pushed by alessio.placitelli@gmail.com: https://hg.mozilla.org/integration/autoland/rev/469b11ffea7a Do not snapshot expired keyed histograms. r=chutten,janerik
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: