Closed Bug 1953677 Opened 1 year ago Closed 10 months ago

Memory leak for VAAPI on CI

Categories

(Core :: Audio/Video: Playback, defect, P3)

Unspecified
Linux
defect

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
firefox141 --- fixed

People

(Reporter: alwu, Assigned: stransky)

References

(Blocks 1 open bug)

Details

Attachments

(4 files)

OS: Unspecified → Linux
Severity: -- → S3
Flags: needinfo?(stransky)

Yes, will look at it, can reproduce it locally.

This comes from DMABufSurface snapshot GL context used to copy dmabuf textures.

Assignee: nobody → stransky
Status: NEW → ASSIGNED
Flags: needinfo?(stransky)
Pushed by stransky@redhat.com: https://hg.mozilla.org/integration/autoland/rev/e61f26594043 [Linux] Delete snapshot GL context when VideoFramePool is deleted r=alwu
Blocks: 1861759
See Also: 1861759
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch

Hi, Martin,

Even with you patch, I still see the same leaking and a data race for DMABufDevice. Would you mind help me taking a look on this again? If you want to debug it, simply applying patches in bug 1861759 and select mochitest-media-mda-gpu.

Thanks!

Flags: needinfo?(stransky)

Sure. I used local testing for it so it may be different from the code paths used on testsuite.

Status: RESOLVED → REOPENED
Flags: needinfo?(stransky)
Resolution: FIXED → ---
Flags: needinfo?(stransky)
See Also: → 1959645

I see even worse thread races with the explicit GL context delete from the pool:
https://treeherder.mozilla.org/logviewer?job_id=508140962&repo=try&lineNumber=1786

I wonder why we see it on decoding RDD process only and not in main/parent one where dmabuf is used too.

The best result I've got so far:
https://treeherder.mozilla.org/jobs?repo=try&revision=20560605ce0387e06e713fcc8f2dbd6e20fd87d3&selectedTaskRun=fIUdonpXSR6stz7nJAKHZg.0

Looks like there are false-positive from gfx drivers so we may suppress thread warning or leak dmabuf device.

When Bug 1959645 lands we need to update ignore lists for tsan to suppress warnings from intel drivers.
I'll look at the leaks but looks like we need to suppress them too.

Alwu, with the latest patches I see ' dom/media/test/test_temporary_file_blob_video_plays.html | Test timed out. ' only - not sure what it is.

Pushed by sstanca@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b6e3d711424e https://hg.mozilla.org/integration/autoland/rev/f063eff6b11f Revert "Bug 1953677 [Linux] Release DMABuf snapshot GL content on RDD process shutdown r=emilio" for causing Android build bustages in RDDParent.cpp.

Reverted this because it was causing Android build bustages in RDDParent.cpp.

Flags: needinfo?(stransky)
QA Whiteboard: [qa-triage-done-c142/b141]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: