Closed Bug 1242598 Opened 10 years ago Closed 10 years ago

html5 audio playback stutters when firefox is running minimized

Categories

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

43 Branch
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: julius.flohr, Assigned: jya, NeedInfo)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:43.0) Gecko/20100101 Firefox/43.0 Build ID: 20160105164030 Steps to reproduce: played html5 video (https://www.youtube.com/watch?v=easr-7k4A88) in a firefox window. Then minimized firefox, continued working in another application. version: 43.0.4 OSX: 10.11.2 System load average at the time: 1.21 1.55 1.52, 2.5Ghz i7, external power connected Actual results: Sometimes the music playback stuttered and glitched out. Sounded like a buffer underrun of the sound device. Maybe a too low prio on the audio rendering thread? Expected results: The audio of the video should continue to play smoothly
Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core
Jean-Yves - does OSX do something funny with task priority?
Flags: needinfo?(jyavenard)
Which mac do you have?
Assignee: nobody → jyavenard
Flags: needinfo?(jyavenard) → needinfo?(julius.flohr)
2015 Macbook Pro, 2.5Ghz i7, 16GB RAM
Flags: needinfo?(julius.flohr)
Just now I tried it again and noticed something: The bug only occurs when I have a virtual machine running inside Vmware which has 6 of the 8 cores assigned. For the audio lags, it doesn't matter if they are idle or not. There are several Vmware processes running: one with niceness 4 and several with 0. My firefox is running with 9. Renicing it to a higher priority solves this issue. So it seems that there is indeed a priority issue when competing against other high priority tasks. Other realtime audio software does not have this issue on OSX
I did see an audio buffering related fix go into nightly. Not sure if it would help.
Is this issue still reproducible in nightly?
Flags: needinfo?(julius.flohr)
It seems to be working now. I just tested it with nightly 49.0a1 (2016-05-18). Please close.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.