Closed Bug 1996263 Opened 10 months ago Closed 7 months ago

LlamaStreamSource Worker Lifecycle needs improvement

Categories

(Core :: Machine Learning: On Device, defect)

defect

Tracking

()

RESOLVED FIXED
149 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr140 --- unaffected
firefox146 --- wontfix
firefox147 --- wontfix
firefox148 --- fixed
firefox149 --- fixed

People

(Reporter: mgaudet, Assigned: padenot)

References

(Blocks 1 open bug)

Details

(Keywords: topcrash)

Crash Data

Attachments

(2 files)

Opening a bug to make sure it gets tracked. See Bug 1973711 Comment 15:

It seems like there may missing support for properly cleaning up on workers which can result in crashes on worker shutdown; I made a brief comment on https://phabricator.services.mozilla.com/D254808#9316979 about this because of :mgaudet's observed https://crash-stats.mozilla.org/report/index/3c1d6468-493c-4072-978b-b9b710251020.

CC'ing both asuth and smaug who flagged the issues here.

The severity field is not set for this bug.
:tarek, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(tziade)
Component: Machine Learning: General → Machine Learning: On Device
Duplicate of this bug: 2001950

(redirecting the Aristide ni from Bug 2001950)

Flags: needinfo?(atossou)
Blocks: 2000226

Just got this crash. It looks like the SpinEventLoopUntil during garbage collection is the culprit -- that does sound dangerous. Without knowing the code, if the shutdown doesn't need to be synchronous, nsIThread::AsyncShutdown wouldn't call SELU.

Crash Signature: [@ mozilla::Vector<T>::empty | JS::GCVector<T>::empty ]
Duplicate of this bug: 2007891
Crash Signature: [@ mozilla::Vector<T>::empty | JS::GCVector<T>::empty ] → [@ mozilla::Vector<T>::empty | JS::GCVector<T>::empty ] [@ mozilla::CycleCollectedJSContext::PerformMicroTaskCheckPoint]

The bug is linked to a topcrash signature, which matches the following criterion:

  • Top 10 desktop browser crashes on nightly

For more information, please visit BugBot documentation.

Keywords: topcrash

This is inspired from BodyConsumer.

Assignee: nobody → padenot
Status: NEW → ASSIGNED

CI is busted because of bug 2010162, I'll see if I land this now or later.

I am told by jcristau to land this, because we anticipate that the CI is going to be broken for some time, it isn't tier-1.

Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
Flags: needinfo?(tarek)
Flags: needinfo?(atossou)

The patch landed in nightly and beta is affected.
:padenot, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(padenot)
Flags: needinfo?(padenot)

:padenot, re: https://bugzilla.mozilla.org/show_bug.cgi?id=2018023#c5 do you want to add a release uplift request here?
We could take it in a later Fx148 dot release.

Flags: needinfo?(padenot)

This is inspired from BodyConsumer.

Original Revision: https://phabricator.services.mozilla.com/D278645

Attachment #9547517 - Flags: approval-mozilla-release?

firefox-release Uplift Approval Request

  • User impact if declined: Top crash. This was crashing in CI and crashes are gone, and is effectively tested.
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: This has baked on beta and nightly for some time.
  • String changes made/needed: none
  • Is Android affected?: no
QA Whiteboard: [qa-triage-done-c150/b149]
Duplicate of this bug: 2019227
Attachment #9547517 - Flags: approval-mozilla-release? → approval-mozilla-release+
Flags: needinfo?(padenot)
Duplicate of this bug: 2018023

Copying crash signatures from duplicate bugs.

Crash Signature: [@ mozilla::Vector<T>::empty | JS::GCVector<T>::empty ] [@ mozilla::CycleCollectedJSContext::PerformMicroTaskCheckPoint] → [@ mozilla::Vector<T>::empty | JS::GCVector<T>::empty ] [@ mozilla::CycleCollectedJSContext::PerformMicroTaskCheckPoint] [@ js::MicroTaskQueueSet::empty]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: