Closed
Bug 927044
Opened 12 years ago
Closed 12 years ago
crash in mozilla::AudioSegment::AppendAndConsumeChunk(mozilla::AudioChunk *)
Categories
(Core :: Web Audio, defect, P1)
Tracking
()
RESOLVED
DUPLICATE
of bug 941873
People
(Reporter: gcp, Assigned: karlt)
References
Details
(Keywords: crash, Whiteboard: mlk)
Crash Data
Attachments
(1 file)
|
718 bytes,
text/html
|
Details |
This bug was filed from the Socorro interface and is
report bp-b91205d2-31b6-4ab5-81b9-4c3332131015.
=============================================================
Happened some time after running:
http://webaudiodemos.appspot.com/input/index.html
So I guess that's likely the cause.
Superficially looks like an OOM crash from leaking/allowing the webpage to use all memory.
Comment 1•12 years ago
|
||
Hmm, yeah this is an OOM crash indeed, but I can't reproduce. How much memory do you have on your machine?
| Reporter | ||
Comment 2•12 years ago
|
||
8G, you can see from the trace it happened when Firefox ran out of it's 4G address space.
| Reporter | ||
Comment 3•12 years ago
|
||
I can't reproduce it either, unfortunately this session had been alive for quite a while doing a load of things. That's the only audio related stuff that would hit that codepath that I remember, though.
Comment 4•12 years ago
|
||
Well, in that case there is nothing that we can do here. If you did not OOM here, you would have OOMed at the next allocation, somewhere random. Web Audio is not necessarily to blame here.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INCOMPLETE
| Reporter | ||
Comment 5•12 years ago
|
||
>Web Audio is not necessarily to blame here.
Well, the OOM happened because it was trying to allocate a 58M block. That's no peanuts. I think we have policy that such allocations should be fallible, see for example bug 862592.
Comment 6•12 years ago
|
||
Oh yeah, you're right. Sorry!
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
| Assignee | ||
Comment 8•12 years ago
|
||
This is not simply about making the allocation fallible.
The array should not be getting that long, unless the Track AudioSegment has been backing up for minutes or hours without emptying.
| Assignee | ||
Updated•12 years ago
|
Priority: -- → P2
| Assignee | ||
Comment 9•12 years ago
|
||
The stack here matches that in bug 936784 comment 85.
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → DUPLICATE
| Assignee | ||
Comment 10•12 years ago
|
||
Reopening because bug 936784 fixed only one case.
| Assignee | ||
Updated•12 years ago
|
Whiteboard: mlk
| Assignee | ||
Comment 11•12 years ago
|
||
STR:
1. Load testcase.
2. Press back button.
3. Watch memory use increase at about 1 kB/s.
4. Press forward button.
5. Press "Change Gain".
6. Notice delay in response, equal to time between 2 and 4.
The delay comes from chunks being buffered in the AudioDestinationNode's stream, because that stream is blocked but its inputs are not.
The ideal fix would be a fix for bug 941873, but, if that ends up risky, we could mute instead of suspend just to address the leak.
| Assignee | ||
Comment 12•12 years ago
|
||
Will be fixed in bug 941873.
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•