file descriptor leak (OGG)

VERIFIED INVALID

Status

()

Core
Audio/Video
VERIFIED INVALID
7 years ago
7 years ago

People

(Reporter: Stefan, Unassigned)

Tracking

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

105.06 KB, application/ogg
Details
(Reporter)

Description

7 years ago
User-Agent:       
Build Identifier: rv:2.0b12pre 20110206030345

Firefox does not close the file descriptor of local ogg files. Disk memory of deleted files which have a file descriptor open is not freed.

Reproducible: Always

Steps to Reproduce:
1. copy/download testcase to /tmp
2. open /tmp/vuvuzela.ogg
3. wait till finished/close tab
Actual Results:  
"lsof | grep ogg" reports open file descriptor

Expected Results:  
no open file descriptor after ogg file has finished/tab has been closed
(Reporter)

Comment 1

7 years ago
Created attachment 510564 [details]
testcase vuvuzela.ogg
Component: General → Video/Audio
Product: Firefox → Core
QA Contact: general → video.audio
Version: unspecified → Trunk
The file will remain open until the garbage collector runs and cleans up the media element, and its nsMediaFileStream. If you wait around long enough after closing the tab, the GC will run, and release the file handle.

You can force the cleanup of resources by loading the file in a video element and setting its src attribute to "".

e.g.:

<video src="vuvuzela.ogg" autoplay controls onended="event.target.src='';"></video>
Status: UNCONFIRMED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.