This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 22725 - Race Conditions
Summary: Race Conditions
Status: CLOSED WONTFIX
Alias: None
Product: AudioWG
Classification: Unclassified
Component: Web Audio API (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: TBD
Assignee: Chris Rogers
QA Contact: public-audio
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 17341
  Show dependency treegraph
 
Reported: 2013-07-18 15:45 UTC by Olivier Thereaux
Modified: 2014-10-28 17:17 UTC (History)
5 users (show)

See Also:


Attachments

Description Olivier Thereaux 2013-07-18 15:45:08 UTC
This bugzilla entry tracks the Audio WG discussion about “Fixing Race Conditions”.

The initial proposal was by ROC on 21 June 2013:
http://lists.w3.org/Archives/Public/public-audio/2013AprJun/0644.html

Discussion thread so far:

http://lists.w3.org/Archives/Public/public-audio/2013AprJun/thread.html#msg644
followed by...
http://lists.w3.org/Archives/Public/public-audio/2013JulSep/thread.html#msg10
Comment 1 Olivier Thereaux 2013-07-26 13:53:07 UTC
The issue will be put to a vote. 

Proposed voting procedure and links to relevant rules in the W3C process have been announced on the mailing-list by the chairs. Archived at: http://lists.w3.org/Archives/Public/public-audio/2013JulSep/0283.html
Comment 2 Marcus Geelnard (Opera) 2013-07-29 09:36:15 UTC
I think that the phrasing that Olivier proposed is a bit too close to agreeing on a final solution, but none of the proposed solutions are really ready yet (need more decisions and discussion).

I would like the phrasing to be slightly more more abstract, so that we can agree on a common mind-set for which we will solve the problems, for instance:

1. Keep the current API, with the shared memory solution. Specify the exact behavior in the Web Audio specification, and work together with other parties to work out what other specifications need to be updated/written, etc.

2. Based on RoC's proposal: Try to keep the current API, but remove any shared memory problems by using neutering as much as possible, and copying where necessary.

3. Based on Jer's proposal: Update the API in order to remove shared memory problems and make the interface more akin to existing Web interfaces.

Not sure if this is the best formulation - suggestions are welcome.
Comment 3 Jussi Kalliokoski 2013-07-29 12:04:57 UTC
Yeah, I actually think that whether we go with ROC's proposal or Jer's proposal is not the important question, the important question is whether we're going to fix the problem in our own API or someone else's API. If we decide to fix this in our own API, we can then decide the details after that choice, from my point of view ideally by combining the best parts of the two proposals.
Comment 4 Ehsan Akhgari [:ehsan] 2013-07-29 18:44:50 UTC
Hmm, if we're going to try to be more precise about these proposals, then the proponents of option 1 should have a specification of what the shared memory model is going to look like.  We should also have a list of all of the modifications to other specs in hand, and have at least initial buy-in from the editors of those specifications since without that we cannot be sure that we can adopt option 1 in practice.
Comment 5 Chris Wilson 2013-07-29 19:20:01 UTC
Indeed, I think the first of any votes should be "keep a shared memory solution between the main thread and audio thread, or make changes to the API such that it does not use shared memory".
Comment 6 Joe Berkovitz / NF 2013-07-29 21:19:38 UTC
If we use ranked voting as Olivier suggested, it seems possible to distinguish between ballots that place #1 first (shared memory OK) and those that don't (shared memory not OK).

Being able to make this distinction in the responses does seem like the primary thing to resolve here. If we do wind up concluding that shared memory isn't OK, then regardless of the ballots I would expect we'll be looking at the alternatives and having further discussions about their merits.
Comment 7 Olivier Thereaux 2013-08-30 11:20:52 UTC
Call for Consensus around the "ROC proposal":
http://lists.w3.org/Archives/Public/public-audio/2013JulSep/0635.html

The proposal:
https://wiki.mozilla.org/User:Roc/AudioBufferProposal

Results expected on 2013-09-05
Comment 8 Olivier Thereaux 2013-09-05 17:03:37 UTC
Based on the CfC on 2013-08-30 and the group teleconference on 2013-09-05 (http://www.w3.org/2013/09/05-audio-minutes.html#item01) the group has resolved that there was consensus around "ROC's proposal". From now on the group will work on fixing remaining issues with this proposal.
Comment 9 Olivier Thereaux 2014-10-28 17:14:50 UTC
Web Audio API issues have been migrated to Github. 
See https://github.com/WebAudio/web-audio-api/issues
Comment 10 Olivier Thereaux 2014-10-28 17:17:48 UTC
Closing. See https://github.com/WebAudio/web-audio-api/issues for up to date list of issues for the Web Audio API.