Closed Bug 632349 Opened 13 years ago Closed 13 years ago

file descriptor leak (OGG)

Categories

(Core :: Audio/Video, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: kdevel, Unassigned)

Details

Attachments

(1 file)

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
Attached file 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
Closed: 13 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: