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)
Tracking
()
RESOLVED
FIXED
mozilla62
| Tracking | Status | |
|---|---|---|
| firefox62 | --- | fixed |
People
(Reporter: esawin, Assigned: Dexter)
References
Details
Attachments
(3 files)
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
| Reporter | ||
Comment 1•7 years ago
|
||
| Reporter | ||
Updated•7 years ago
|
Flags: needinfo?(alessio.placitelli)
| Assignee | ||
Comment 2•7 years ago
|
||
Thanks, I'll look into this.
Assignee: nobody → alessio.placitelli
Blocks: 1452550
Flags: needinfo?(alessio.placitelli)
Priority: -- → P1
| Assignee | ||
Updated•7 years ago
|
Summary: Telemetry histogram assertion on geckoview_example startup → Do not report expired keyed histograms (it breaks GeckoView too!)
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Comment 6•7 years ago
|
||
| mozreview-review | ||
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)
| Comment hidden (mozreview-request) |
Comment 8•7 years ago
|
||
| mozreview-review | ||
Comment on attachment 8985661 [details]
Bug 1468809 - Do not snapshot expired keyed histograms.
https://reviewboard.mozilla.org/r/251196/#review257532
Attachment #8985661 -
Flags: review?(chutten) → review+
Comment 9•7 years ago
|
||
| mozreview-review | ||
Comment on attachment 8985661 [details]
Bug 1468809 - Do not snapshot expired keyed histograms.
https://reviewboard.mozilla.org/r/251196/#review257542
Attachment #8985661 -
Flags: review?(jrediger) → review+
Comment 10•7 years ago
|
||
Pushed by alessio.placitelli@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/469b11ffea7a
Do not snapshot expired keyed histograms. r=chutten,janerik
Comment 11•7 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox62:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
You need to log in
before you can comment on or make changes to this bug.
Description
•