Closed Bug 1999298 Opened 1 year ago Closed 10 months ago

Non-realtime MediaTrackGraphImpl (OfflineAudioContext) will leak until shutdown due to document-title-changed observer

Categories

(Core :: Audio/Video: MediaStreamGraph, defect)

defect

Tracking

()

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

People

(Reporter: pehrsons, Assigned: karlt)

References

(Regression)

Details

(Keywords: memory-leak, regression)

Attachments

(1 external file)

The graph adds this observer when adding its first track. The observer is removed when the last track is removed from the graph, iff it's a realtime graph.

This behavior can be observed by gtests in TestAudioInputProcessing.cpp where the graph is not marked as real-time. E.g:

MOZ_LOG=MediaTrackGraph:5,ObserverService:5 GTEST_REPEAT=2 ./mach gtest '*TestAudioInputP*SetSinkId'

:karlt, since you are the author of the regressor, bug 1860954, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(karlt)

Set release status flags based on info from the regressing bug 1860954

Assignee: nobody → karlt
Status: NEW → ASSIGNED
Flags: needinfo?(karlt)
Regressed by: 1872787
No longer regressed by: 1860954
Status: ASSIGNED → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

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

For more information, please visit BugBot documentation.

Flags: needinfo?(karlt)

The regression has been around for a while, only affects a small number of sites, and the defect is unlikely to break the site.

QA Whiteboard: [qa-triage-done-c150/b149]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: