Closed Bug 927044 Opened 12 years ago Closed 12 years ago

crash in mozilla::AudioSegment::AppendAndConsumeChunk(mozilla::AudioChunk *)

Categories

(Core :: Web Audio, defect, P1)

x86
All
defect

Tracking

()

RESOLVED DUPLICATE of bug 941873

People

(Reporter: gcp, Assigned: karlt)

References

Details

(Keywords: crash, Whiteboard: mlk)

Crash Data

Attachments

(1 file)

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.
Hmm, yeah this is an OOM crash indeed, but I can't reproduce. How much memory do you have on your machine?
8G, you can see from the trace it happened when Firefox ran out of it's 4G address space.
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.
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
>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.
Oh yeah, you're right. Sorry!
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Karl -- Could you look at this? Thanks.
Assignee: nobody → karlt
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.
Priority: -- → P2
The stack here matches that in bug 936784 comment 85.
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → DUPLICATE
Reopening because bug 936784 fixed only one case.
Status: RESOLVED → REOPENED
Depends on: 936784, 941873
OS: Windows NT → All
Priority: P2 → P1
Resolution: DUPLICATE → ---
Whiteboard: mlk
Attached file testcase
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.
Will be fixed in bug 941873.
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: