Closed Bug 970083 Opened 11 years ago Closed 9 years ago

audio from ScriptProcessorNode stops after a random while


(Core :: Web Audio, defect, P2)






(Reporter: p.t.deboer, Assigned: karlt)




(1 file)

What did you do?
Open the attached html file; while it's beeping (or even with volume off)
do random things on the computer, e.g., resizing windows, start other applications.
What happened?
The beeping sound produced by this webpage stops (or: doesn't return when
clicking "volume on", if it had previously been turned off).

What should have happened?
The beeping should have continued.

- I verified that the onaudioprocess handler is still being called, so
  it's not a duplicate of bug 916387.
- It seems very similar to bug 932621, which apparently has been fixed, 
  but I still see this problem on nightly (on Linux).
- It's not always easy to reproduce, hence the volume on/off buttons
  to just leave it running in the background.
- I've seen the problem also on Windows and Mac (but haven't tested the
  latest nightly on those).
Depends on: 932621
For the bug reporter: Are you sure you tested with the fix from Bug 932621?  Your last comment ("It seems very similar to bug 932621, which apparently has been fixed, but I still see this problem on nightly") is from Feb 9, and the fix didn't go into the code until Feb 16.

In any case, can you retest with today's Nightly and tell us if you're still having a problem?  Thanks.
Flags: needinfo?(p.t.deboer)
Oh, sorry, I had silently assumed that bug fixes such as the one for bug 932621 go into Nightly immediately.

Anyway, I've tested with current Nightly and (unfortunately) still see the problem occur, both on a Linux and a Windows system.

Some more information that perhaps might be of help in debugging this: by feeding the output of the scriptprocessor node to another scriptprocessor node, I find that when the problem occurs, the second scriptprocessor node sees the contents of its incoming inputBuffer as zero, even though the first scriptprocessor node had just written non-zeroes into its outputBuffer.
(I now use this in my application to detect the problem and restart the first scriptprocessor node as needed.)

If you'd like me to do any specific further tests, please let me know.
Flags: needinfo?(p.t.deboer)
Assignee: nobody → karlt
Priority: -- → P1
Blocks: 990841
No longer blocks: 990841
Ever confirmed: true
Karl - is this still an issue?
Rank: 23
Flags: needinfo?(karlt)
Priority: P1 → P2
I haven't been able to reproduce, but please feel free to reopen if it is still happening.
Flags: needinfo?(karlt)
Closed: 9 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.