Closed Bug 1845830 Opened 1 year ago Closed 1 year ago

Chrome worker cld-worker.js never goes away for a plain text file Bugzilla attachment

Categories

(Firefox :: Translations, defect, P2)

defect

Tracking

()

RESOLVED FIXED
118 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox-esr115 --- unaffected
firefox116 --- disabled
firefox117 --- fixed
firefox118 --- fixed

People

(Reporter: mccr8, Assigned: gregtatum)

References

(Regression)

Details

(Keywords: memory-leak, regression)

Attachments

(1 file)

Steps to reproduce:

  1. Open a plain text bugzilla attachment, like this one.

  2. Wait for a few minutes.

  3. Go to about:memory, and do measure. Look for the process for the text attachment (bug1754554.bmoattachments.org in this case).

The top memory consumer is the translation worker:

├──17.32 MB (47.31%) -- workers/workers(chrome)/worker(resource://gre/modules/translation/cld-worker.js, 0x11820eb00)

I have a different bugzilla attachment that appears to have been sitting in this state for hours. It seems bad to use up that much memory.

Maybe something weird is going on because the only document loaded into the process is a plain text file? This probably is not a common scenario outside of bugzilla where attachments are isolated into their own domains for security processes.

I've reproduced this issue with two different plain text bugzilla attachments.

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

For more information, please visit BugBot documentation.

Flags: needinfo?(gtatum)
Assignee: nobody → gtatum
Status: NEW → ASSIGNED

I'm not sure what severity to put for memory leaks, and this one goes away on tab close, so marking as S3.

Severity: -- → S3
Flags: needinfo?(gtatum)
Priority: -- → P2

Thanks for fixing this! I have 6 of these workers going in my browser session right now.

Pushed by gtatum@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c22567ec4a3d Flush the worker after detecting a document language; r=nordzilla
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch

Comment on attachment 9348918 [details]
Bug 1845830 - Flush the worker after detecting a document language; r?nordzilla!

Beta/Release Uplift Approval Request

  • User impact if declined: When a language is detected in a tab for translations, a 17mb worker will be leaked until the tab is closed.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): It's a one line change to make sure the worker is scheduled for cleanup. The existing code is covered by tests.
  • String changes made/needed:
  • Is Android affected?: No
Attachment #9348918 - Flags: approval-mozilla-beta?

Comment on attachment 9348918 [details]
Bug 1845830 - Flush the worker after detecting a document language; r?nordzilla!

Approved for 117.0b9.

Attachment #9348918 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: