Closed
Bug 1267579
Opened 7 years ago
Closed 7 years ago
Unexpected result when using OscillatorNode with custom wave shape
Categories
(Core :: Web Audio, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla49
People
(Reporter: sebpiq, Assigned: dminor)
References
Details
(Keywords: regression, testcase)
Attachments
(3 files)
639 bytes,
text/html
|
Details | |
58 bytes,
text/x-review-board-request
|
padenot
:
review+
ritu
:
approval-mozilla-aurora+
ritu
:
approval-mozilla-beta+
|
Details |
58 bytes,
text/x-review-board-request
|
padenot
:
review+
|
Details |
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 Build ID: 20160325004402 Steps to reproduce: Try to get a Cos wave of frequency 0 with web audio OscillatorNode, in order to have a node outputting only ones. See attachment for a test case. Actual results: The OscillatorNode outputs only zeros. Expected results: The OscillatorNode should have output ones.
Regression range: https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=74166e 0168385eba427642965b93c7ad010662ca&tochange=3785489fa210d38b890ab73f21202b94c552 8c1f Regressed by Bug 1222405. Dan, your thoughts?
Blocks: 1222405
Component: Untriaged → Web Audio
Flags: needinfo?(dminor)
Keywords: regression,
testcase
Product: Firefox → Core
Assignee | ||
Comment 2•7 years ago
|
||
Having a look now.
Assignee: nobody → dminor
Flags: needinfo?(dminor)
Assignee | ||
Comment 3•7 years ago
|
||
Thanks for your report!
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
status-firefox46:
--- → affected
status-firefox47:
--- → affected
status-firefox48:
--- → affected
status-firefox49:
--- → affected
tracking-firefox46:
--- → ?
tracking-firefox47:
--- → ?
tracking-firefox48:
--- → ?
tracking-firefox49:
--- → ?
Assignee | ||
Comment 4•7 years ago
|
||
This fixes some division by zero errors introduced by Bug 1222405 when the fundamental frequency is zero. Review commit: https://reviewboard.mozilla.org/r/48987/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/48987/
Attachment #8745347 -
Flags: review?(padenot)
Attachment #8745348 -
Flags: review?(padenot)
Assignee | ||
Comment 5•7 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/48989/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/48989/
Updated•7 years ago
|
Attachment #8745347 -
Flags: review?(padenot) → review+
Comment 6•7 years ago
|
||
Comment on attachment 8745347 [details] MozReview Request: Bug 1267579 - Unexpected result when using OscillatorNode with custom wave shape; r?padenot https://reviewboard.mozilla.org/r/48987/#review45819
Comment 7•7 years ago
|
||
Comment on attachment 8745348 [details] MozReview Request: Bug 1267579 - Add test case; r?padenot https://reviewboard.mozilla.org/r/48989/#review45821
Attachment #8745348 -
Flags: review?(padenot) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/b165d4c2ee46 https://hg.mozilla.org/integration/mozilla-inbound/rev/a6e1c4c2b2c4
Updated•7 years ago
|
Rank: 23
Priority: -- → P2
Comment 9•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b165d4c2ee46 https://hg.mozilla.org/mozilla-central/rev/a6e1c4c2b2c4
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
Updated•7 years ago
|
Target Milestone: mozilla48 → mozilla49
Comment 10•7 years ago
|
||
Dan, Paul -- Does it make sense to uplift this? If so, how far? I'm marking Fx46 as wontfix, but Fx47 is still very early in the cycle -- so it would get basically the entire Beta cycle to bake there if we ask for uplift this week. Let me know your thoughts. Thanks!
tracking-firefox46:
? → ---
tracking-firefox49:
? → ---
Flags: needinfo?(padenot)
Flags: needinfo?(dminor)
Assignee | ||
Comment 11•7 years ago
|
||
This is an edge case that only occurs when the fundamental frequency is set to zero, which I don't think is likely to affect that many people. On the other hand, it's also low risk. I'll defer to Paul :)
Flags: needinfo?(dminor)
Comment 12•7 years ago
|
||
It's still fixing a division by zero. Also, admittedly, to have a DC offset, it's more efficient to have an AudioBufferSourceNode with a buffer with a length of 1, with the only element set to 1. Very low-risk indeed, maybe it's worth it because it's fixing a correctness issue.
Flags: needinfo?(padenot)
Assignee | ||
Comment 13•7 years ago
|
||
Comment on attachment 8745347 [details] MozReview Request: Bug 1267579 - Unexpected result when using OscillatorNode with custom wave shape; r?padenot Given this is low risk, I think it makes sense to ask for uplift to 48. Approval Request Comment [Feature/regressing bug #]: Bug 1267579 [User impact if declined]: Minimal, as Paul mentions there is a more efficient way of generating the desired signal. [Describe test coverage new/current, TreeHerder]: A new test case has been written. [Risks and why]: Very low risk - this only affects cases where the requested fundamental frequency is zero, which isn't a common use case. [String/UUID change made/needed]: None
Attachment #8745347 -
Flags: approval-mozilla-aurora?
Updated•7 years ago
|
Flags: in-testsuite+
Assignee | ||
Updated•7 years ago
|
Attachment #8745347 -
Flags: approval-mozilla-beta?
Comment on attachment 8745347 [details] MozReview Request: Bug 1267579 - Unexpected result when using OscillatorNode with custom wave shape; r?padenot Recent regression, Beta47+, Aurora48+
Attachment #8745347 -
Flags: approval-mozilla-beta?
Attachment #8745347 -
Flags: approval-mozilla-beta+
Attachment #8745347 -
Flags: approval-mozilla-aurora?
Attachment #8745347 -
Flags: approval-mozilla-aurora+
Hello sebpiq, could you please verify this issue is fixed as expected on a latest Nightly build? Thanks!
Flags: needinfo?(sebpiq)
Comment 16•7 years ago
|
||
bugherderuplift |
https://hg.mozilla.org/releases/mozilla-aurora/rev/f60b4b71a319 https://hg.mozilla.org/releases/mozilla-aurora/rev/db6cfb052942
Comment 17•7 years ago
|
||
bugherderuplift |
https://hg.mozilla.org/releases/mozilla-beta/rev/98501c412edc https://hg.mozilla.org/releases/mozilla-beta/rev/22dbad80fbab
Reporter | ||
Comment 18•7 years ago
|
||
Yep works in latest nightly (49.0a1). Thanks for fixing this!
Flags: needinfo?(sebpiq)
You need to log in
before you can comment on or make changes to this bug.
Description
•