Closed
Bug 1267579
Opened 9 years ago
Closed 9 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•9 years ago
|
||
Having a look now.
Assignee: nobody → dminor
Flags: needinfo?(dminor)
| Assignee | ||
Comment 3•9 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•9 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•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/48989/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/48989/
Updated•9 years ago
|
Attachment #8745347 -
Flags: review?(padenot) → review+
Comment 6•9 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•9 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+
Updated•9 years ago
|
Rank: 23
Priority: -- → P2
Comment 9•9 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/b165d4c2ee46
https://hg.mozilla.org/mozilla-central/rev/a6e1c4c2b2c4
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
Updated•9 years ago
|
Target Milestone: mozilla48 → mozilla49
Comment 10•9 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•9 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•9 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•9 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•9 years ago
|
Flags: in-testsuite+
| Assignee | ||
Updated•9 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•9 years ago
|
||
| bugherder uplift | ||
Comment 17•9 years ago
|
||
| bugherder uplift | ||
| Reporter | ||
Comment 18•9 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
•