Leaking heap-unclassified memory when looping in <video> mochitests

NEW
Unassigned

Status

()

Core
Audio/Video: Playback
7 years ago
3 years ago

People

(Reporter: cpearce, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

7 years ago
Created attachment 552576 [details]
about:memory logs with timestamps

We're leaking heap-unclassified memory when looping in the media mochitests.

STR:
1. Edit content/media/manifest.js; set PARALLEL_TESTS to some high number (I used 20). Set DEBUG_TEST_LOOP_FOREVER to true.
2. Run the content/media/test/test_seek.html mochitest. It will loop until it fails (hopefully it won't fail!), running PARALLEL_TESTS test cases concurrently. To make the bug show up quicker, you might want to open the mochitest in multiple tabs.
3. In the mochitest browser, open about:memory, and make a note of the "heap-unclassified" value.
4. Wait a while (10 minutes or more).
5. Look at the "heap-unclassified" value. It's grown, and the other classifications haven't significantly.

I can repro this on my Linux x64 machine (fc14) and on my Windows 7 laptop. I left my Linux box running over night and `top` reported 5GB memory use (sorry, forgot to record which measure of memory use that was).

Attached is 3 samples of about:memory with timestamps showing the memory growth.
(Reporter)

Comment 1

7 years ago
Matthew Gregan pointed out that if you close the tests' tabs memory use drops back to normal low/idle levels.
Related to Bug 676007?
Component: Audio/Video → Audio/Video: Playback
You need to log in before you can comment on or make changes to this bug.