Closed Bug 1015870 Opened 10 years ago Closed 6 years ago

Encountered unknown AudioTrack event 5 for CAudioPlayer

Categories

(Core :: Audio/Video: Playback, defect)

ARM
Android
defect
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: jwwang, Unassigned)

References

Details

https://tbpl.mozilla.org/php/getParsedLog.php?id=40362083&tree=Try&full=1#error0

21:57:44     INFO -  05-24 21:35:45.828 E/libOpenSLES( 2242): Encountered unknown AudioTrack event 5 for CAudioPlayer 0x63a720

Found this error in  /tests/content/media/test/test_loop.html | Test timed out.

I wonder if something is wrong to the Android audio engine which prevents the audio clock from going forward and therefore playback gets stuck.

Hi Bruce,
Can you take a look at this error? Thanks.
Flags: needinfo?(brsun)
(In reply to JW Wang [:jwwang] from comment #0)
> https://tbpl.mozilla.org/php/getParsedLog.
> php?id=40362083&tree=Try&full=1#error0
> 
> 21:57:44     INFO -  05-24 21:35:45.828 E/libOpenSLES( 2242): Encountered
> unknown AudioTrack event 5 for CAudioPlayer 0x63a720
> 
> Found this error in  /tests/content/media/test/test_loop.html | Test timed
> out.
> 
> I wonder if something is wrong to the Android audio engine which prevents
> the audio clock from going forward and therefore playback gets stuck.
> 
> Hi Bruce,
> Can you take a look at this error? Thanks.

According to AudioTrack.h definition, the event 5 is the end of buffer.

EVENT_BUFFER_END = 5        // Playback head is at the end of the buffer.

[1] http://androidxref.com/4.4.2_r2/xref/frameworks/av/include/media/AudioTrack.h#60
Flags: needinfo?(brsun)
http://dxr.mozilla.org/mozilla-central/source/media/libcubeb/src/cubeb_opensl.c#564

Will it cause error in SLPlayItf::GetPosition() which will prevent audio clock from going forward and playback will get stuck?
Flags: needinfo?(scheng)
Hi JW,

Just curious, is this timeout issue easy to be reproduced locally?
(In reply to Bruce Sun [:brsun] from comment #3)
> Hi JW,
> 
> Just curious, is this timeout issue easy to be reproduced locally?

No. About one out of 50 tries on the Try server. Btw, it seems only to happen on Android 4.0 debug on the Try.
I have discussed with JW offline. Clear the ni? tag.
Flags: needinfo?(scheng)
06-22 19:29:53.726 V/tiny_hw ( 1294): out_standby(0x4d8160) closing PCM

It looks like when this message shows up, the audio engine stops advancing and playback gets stuck.

Hi Bruce,
Do you have any idea about this message?
Flags: needinfo?(brsun)
(In reply to JW Wang [:jwwang] from comment #6)
> 06-22 19:29:53.726 V/tiny_hw ( 1294): out_standby(0x4d8160) closing PCM
> 
> It looks like when this message shows up, the audio engine stops advancing
> and playback gets stuck.
> 
> Hi Bruce,
> Do you have any idea about this message?

Never mind. The event should be irrelevant.
Flags: needinfo?(brsun)
https://tbpl.mozilla.org/php/getParsedLog.php?id=42509792&tree=Try&full=1#error0
Just a note. When this message shows up, AudioStream will get stuck in Write() waiting indefinitely for data callback from libcubeb to consume buffer. However data callback never comes...
Hi Bruce,
Can you check the problem listed in comment 8? Thanks.
Flags: needinfo?(brsun)
Blocks: 684173
Blocks: 762774
I am afraid that I might not be able to dig into it.
Flags: needinfo?(brsun)
Component: Audio/Video → Audio/Video: Playback
Mass closing do to inactivity.
Feel free to re-open if still needed.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.