Crash in [@ nsObserverService::EnsureValidCall | nsObserverService::NotifyObservers | TelemetryEvent::RecordEventNative]
Categories
(Toolkit :: Telemetry, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr115 | --- | unaffected |
firefox-esr128 | --- | unaffected |
firefox131 | --- | unaffected |
firefox132 | --- | unaffected |
firefox133 | + | fixed |
People
(Reporter: dmeehan, Assigned: chutten)
References
(Regression)
Details
(Keywords: crash, regression)
Crash Data
Attachments
(1 file)
Crash report: https://crash-stats.mozilla.org/report/index/229381f6-8e3b-4871-9faf-1f7f80241017
MOZ_CRASH Reason:
MOZ_CRASH(Using observer service off the main thread!)
Top 10 frames:
0 xul.dll nsObserverService::EnsureValidCall() const xpcom/ds/nsObserverService.cpp:170
0 xul.dll nsObserverService::NotifyObservers(nsISupports*, char const*, char16_t const*) xpcom/ds/nsObserverService.cpp:275
1 xul.dll TelemetryEvent::RecordEventNative(mozilla::Telemetry::EventID, mozilla::Maybe... toolkit/components/telemetry/core/TelemetryEvent.cpp:835
2 xul.dll mozilla::glean::impl::EventMetric<mozilla::glean::dom_quota_try::ErrorStepExt... toolkit/components/glean/bindings/private/Event.h:95
3 xul.dll mozilla::dom::quota::LogError(nsTSubstring<char> const&, mozilla::Variant<moz... dom/quota/QuotaCommon.cpp:605
4 xul.dll mozilla::dom::quota::HandleError<nsresult>(char const*, nsresult const&, char... dom/quota/QuotaCommon.h:1423
5 xul.dll mozilla::dom::cache::DirectoryPaddingDeleteFile::<lambda_34>::operator()(nsre... dom/cache/FileUtils.cpp:803
5 xul.dll mozilla::dom::quota::OrElseIf(mozilla::Result<mozilla::Ok, nsresult>&&, mozil... dom/quota/QuotaCommon.h:964
5 xul.dll mozilla::dom::cache::DirectoryPaddingDeleteFile(nsIFile&, mozilla::dom::cache... dom/cache/FileUtils.cpp:803
6 xul.dll mozilla::dom::cache::CacheQuotaClient::InitOrigin::<lambda_43>::operator()() ... dom/cache/QuotaClient.cpp:157
Comment 1•28 days ago
|
||
Well, I'm not sure this is related to bug 1867997.
The event recording was recently converted to use glean APIs.
Chris, can you take a look ?
Comment 2•28 days ago
|
||
I think I found it: https://phabricator.services.mozilla.com/D225761
That one added NotifyObservers(nullptr, "event-telemetry-storage-limit-reached"
.
Reporter | ||
Comment 3•28 days ago
|
||
(In reply to Jan Varga [:janv] from comment #2)
I think I found it: https://phabricator.services.mozilla.com/D225761
That one addedNotifyObservers(nullptr, "event-telemetry-storage-limit-reached"
.
Sorry for the noise, I was looking after comment 1 and found the same cause
Assignee | ||
Comment 4•28 days ago
|
||
Yeah, this is bug 1921790 where we moved observer notification from "definitely on the main thread because this is a JS-only API" to "on the instrumentation thread, which is usually the main thread but isn't guaranteed to be".
A quick one to fix.
Assignee | ||
Comment 5•28 days ago
|
||
Description
•