Closed
Bug 975955
Opened 11 years ago
Closed 11 years ago
[Sora][Streaming]the audio gaps after lock screen
Categories
(Core :: Audio/Video, defect, P1)
Tracking
()
People
(Reporter: sync-1, Assigned: scheng)
References
()
Details
Attachments
(3 files, 4 obsolete files)
24.25 KB,
application/x-gzip
|
Details | |
2.50 KB,
patch
|
bajaj
:
approval-mozilla-b2g28+
|
Details | Diff | Splinter Review |
3.86 KB,
patch
|
bajaj
:
approval-mozilla-b2g28+
|
Details | Diff | Splinter Review |
Mozilla build ID: 20140208004002
DEFECT DESCRIPTION:
play a stream on browser, the audio gaps after lock screen. regression.
REPRODUCING PROCEDURES:
1.Enable wifi and connected wifi;
2.Launch browser and go to:http://imps.tcl-ta.com/liuqiong/media/e5_video.html;
3.Select video media;
4.Open any one streaming to play;
5.Press power key to lock screen during playing; the audio gaps sometimes.->KO
EXPECTED BEHAVIOUR:
the stream is still playing smooth after press powser key.
ASSOCIATE SPECIFICATION:
TEST PLAN REFERENCE:
TOOLS AND PLATFORMS USED:
USER IMPACT:
REPRODUCING RATE:
For FT PR, Please list reference mobile's behavior:
Comment 1•11 years ago
|
||
This sounds horrible on device. See Vance's video for why - http://www.youtube.com/watch?v=OVFj0FgY030&feature=youtu.be.
blocking-b2g: --- → 1.3?
Component: Gaia::Browser → AudioChannel
Keywords: regression,
regressionwindow-wanted
Updated•11 years ago
|
Component: AudioChannel → Video/Audio
Product: Firefox OS → Core
Version: unspecified → 28 Branch
Comment 2•11 years ago
|
||
This appears to only reproduce on Jellybean devices, not ICS devices. That means getting a regression window isn't going to be possible - we don't have few builds available for JB testing.
Keywords: regressionwindow-wanted
Updated•11 years ago
|
Keywords: regression
Updated•11 years ago
|
blocking-b2g: 1.3? → 1.3+
Keywords: regression
Comment 3•11 years ago
|
||
No CJ/:mwu, to weigh in here and help narrow down the problem..This is JB specific so not sure if its a gonk issue?
Per triage discussion with QA this was easily reproducible on any youttube video and seemed like a common use case.
Updated•11 years ago
|
Keywords: regression
Updated•11 years ago
|
Flags: needinfo?(cku)
Comment 5•11 years ago
|
||
I confirmed the problem happens on nexus-4 and nexus-5. When usb is plugged to the device the problem does not happen. From it, it seems that some cpu cores are inactive and/or cpu clock down when display is off and usb is not plugged. Then hardware does not have enough cpu power to handle streaming.
Comment 6•11 years ago
|
||
May I know the correct UX spec?
IMO, this playback should be stopped after pressing power key.
Flags: needinfo?(bwu)
Comment 7•11 years ago
|
||
May refer to this spec: https://wiki.mozilla.org/WebAPI/AudioChannels
Comment 8•11 years ago
|
||
(In reply to Blake Wu [:bwu] from comment #6)
> May I know the correct UX spec?
> IMO, this playback should be stopped after pressing power key.
If I recall, there has been a lot of debate on this one. The current behavior allows the audio to play in the background while the phone is sleeping.
Note - the blocking factor on this bug is the factor that there's audio gaps present, not the fact that the audio is playing in the background while the phone is sleeping.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → scheng
Comment 9•11 years ago
|
||
(In reply to Jason Smith [:jsmith] from comment #8)
> (In reply to Blake Wu [:bwu] from comment #6)
> > May I know the correct UX spec?
> > IMO, this playback should be stopped after pressing power key.
>
> If I recall, there has been a lot of debate on this one. The current
> behavior allows the audio to play in the background while the phone is
> sleeping.
>
> Note - the blocking factor on this bug is the factor that there's audio gaps
> present, not the fact that the audio is playing in the background while the
> phone is sleeping.
Agree.
Just want to know the correct UX behavior first, not to fix a problem from an unreasonable use case. I just found there is already a bug 971414 created for this UX issue discussion.
Comment 10•11 years ago
|
||
Update test result on flame.
1. CPU frequency almost stayed at 300MHz and CPU usage is lower than 60% when screen off playback w/ USB cable. It showed we don't need too much CPU when screen off playback.
2. Check dmesg log when issue happened, we found system is trying to suspend. It should be caused by no one hold proper wakelock.
3. Use command "adb shell "echo test > /sys/power/wake_lock"" to hold a wakelock, the audio is smooth when screen off playback w/o usb cable
Moreover, connect USB cable, it caused system cannot enter suspend due to wakelock held, so screen off playback is smooth.
Comment 11•11 years ago
|
||
Attachment is the test result and log.
Assignee | ||
Comment 12•11 years ago
|
||
(In reply to Danny Liang [:dliang] from comment #10)
> Update test result on flame.
> 1. CPU frequency almost stayed at 300MHz and CPU usage is lower than 60%
> when screen off playback w/ USB cable. It showed we don't need too much CPU
> when screen off playback.
> 2. Check dmesg log when issue happened, we found system is trying to
> suspend. It should be caused by no one hold proper wakelock.
> 3. Use command "adb shell "echo test > /sys/power/wake_lock"" to hold a
> wakelock, the audio is smooth when screen off playback w/o usb cable
>
In hamachi & flame device, the /sys/power/wake_lock is empty, in the reproduce step of this bug . And the audio stream is played smoothly in hamachi, not smoothly in flame instead.
In hamachi & flame device, the /sys/power/wake_lock is "gecko" in playing audio file in music app.
> Moreover, connect USB cable, it caused system cannot enter suspend due to
> wakelock held, so screen off playback is smooth.
Comment 13•11 years ago
|
||
(In reply to Star Cheng [:scheng] from comment #12)
> (In reply to Danny Liang [:dliang] from comment #10)
> > Update test result on flame.
> > 1. CPU frequency almost stayed at 300MHz and CPU usage is lower than 60%
> > when screen off playback w/ USB cable. It showed we don't need too much CPU
> > when screen off playback.
> > 2. Check dmesg log when issue happened, we found system is trying to
> > suspend. It should be caused by no one hold proper wakelock.
> > 3. Use command "adb shell "echo test > /sys/power/wake_lock"" to hold a
> > wakelock, the audio is smooth when screen off playback w/o usb cable
> >
>
> In hamachi & flame device, the /sys/power/wake_lock is empty, in the
> reproduce step of this bug . And the audio stream is played smoothly in
> hamachi, not smoothly in flame instead.
>
> In hamachi & flame device, the /sys/power/wake_lock is "gecko" in playing
> audio file in music app.
>
> > Moreover, connect USB cable, it caused system cannot enter suspend due to
> > wakelock held, so screen off playback is smooth.
In hamachi, system didn't try to suspend when screen off playback, it might be some kernel wake lock has been held. If no this lucky kernel wake lock, hamachi will also meet this issue. To avoid the issue on different platform, suggest app to hold its own wake lock.
Assignee | ||
Comment 14•11 years ago
|
||
While playing video streaming, the /sys/power/wake_lock is empty. I try to hold a "cpu" wake_lock in the HtmlVideoElement.
Attachment #8385942 -
Flags: review?(Ms2ger)
Comment 15•11 years ago
|
||
Comment on attachment 8385942 [details] [diff] [review]
bug-975955-fix.patch
Andrea, can you find a reviewer for this?
Attachment #8385942 -
Flags: review?(Ms2ger)
Flags: needinfo?(amarchesini)
Updated•11 years ago
|
Flags: needinfo?(echou)
Assignee | ||
Comment 16•11 years ago
|
||
1.keep the "cpu" wake lock in HTMLVideoElement::WakeLockCreate()
2.release the "cpu" wake lock in HTMLVideoElement::WakeLockRelease()
Attachment #8385942 -
Attachment is obsolete: true
Attachment #8388985 -
Flags: review?(roc)
Comment on attachment 8388985 [details] [diff] [review]
bug-975955-fix_v2.patch
Review of attachment 8388985 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks.
Please make another patch to rename WakeLockUpdate to UpdateScreenWakeLock.
Attachment #8388985 -
Flags: review?(roc) → review+
Updated•11 years ago
|
Flags: needinfo?(timdream)
Assignee | ||
Comment 18•11 years ago
|
||
1.try server result : https://tbpl.mozilla.org/?tree=Try&rev=42959763fac5
2.add reviewer
Attachment #8388985 -
Attachment is obsolete: true
Updated•11 years ago
|
Flags: needinfo?(amarchesini)
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 19•11 years ago
|
||
remove ":" for reviewer name
Attachment #8391043 -
Attachment is obsolete: true
Updated•11 years ago
|
Attachment #8392745 -
Attachment is patch: true
Comment 20•11 years ago
|
||
Keywords: checkin-needed
Comment 21•11 years ago
|
||
Backed out for the same test failures that your Try run showed. Please verify that the run is actually passing *before* requesting checkin and wasting both people and machine time.
https://hg.mozilla.org/integration/b2g-inbound/rev/f4f2901282ea
https://tbpl.mozilla.org/php/getParsedLog.php?id=36331400&tree=B2g-Inbound
Comment 22•11 years ago
|
||
FYI, content/html/content/test/test_video_wakelock.html needs to be updated for checking both "screen" and "cpu" wake-lock topics.
Assignee | ||
Comment 23•11 years ago
|
||
To modify test case for video playback in order to get/release "cpu" wakelock.
Attachment #8395552 -
Flags: review?(roc)
Comment on attachment 8395552 [details] [diff] [review]
bug-975955-testcase.patch
Review of attachment 8395552 [details] [diff] [review]:
-----------------------------------------------------------------
Make sure you do another try run that actually passes.
::: content/html/content/test/test_video_wakelock.html
@@ +47,5 @@
> state == "locked-background";
>
> + if (topic == "cpu") {
> + is(locked, lockState_cpu, "Video element locked the cpu - paused");
> + count_cpu++;
remove trailing spaces, and fix indent.
@@ +89,5 @@
> state == "locked-background";
>
> + if (topic == "cpu") {
> + is(locked, lockState_cpu, "Video element locked the cpu - paused");
> + count_cpu++;
remove trailing spaces
Attachment #8395552 -
Flags: review?(roc) → review+
Assignee | ||
Comment 25•11 years ago
|
||
1.try server result : https://tbpl.mozilla.org/?tree=Try&rev=b5795d0554e4
2.add reviewer - :roc
Attachment #8395552 -
Attachment is obsolete: true
Assignee | ||
Comment 26•11 years ago
|
||
there are 2 patches for this bug.
1.bug-975955-patch-reviewed
2.bug-975955-testcase-patch-reviewed
Keywords: checkin-needed
Updated•11 years ago
|
Attachment #8396112 -
Attachment is patch: true
Comment 27•11 years ago
|
||
Flags: in-testsuite+
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
Comment 29•11 years ago
|
||
Please request approval-mozilla-b2g28 on this patch if it's ready for uplift to v1.3.
status-b2g-v1.3:
--- → affected
status-b2g-v1.4:
--- → affected
status-b2g-v2.0:
--- → fixed
status-firefox29:
--- → wontfix
status-firefox30:
--- → affected
status-firefox31:
--- → fixed
Flags: needinfo?(scheng)
Assignee | ||
Comment 30•11 years ago
|
||
Comment on attachment 8392745 [details] [diff] [review]
bug-975955-patch-reviewed
NOTE: This flag is now for security issues only. Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.
[Approval Request Comment]
Bug caused by (feature/regressing bug #): not a regression
User impact if declined: the sound of video stream is not playing smoothly after pressing power key
Testing completed: m-c and manual test in nexus4 & flame device
Risk to taking this patch (and alternatives if risky): low. while playing video, to get the cpu + screen lock; and release both while stopping/pausing the video.
String or UUID changes made by this patch: none
Attachment #8392745 -
Flags: approval-mozilla-b2g28?
Assignee | ||
Comment 31•11 years ago
|
||
Comment on attachment 8396112 [details] [diff] [review]
bug-975955-testcase-patch-reviewed
NOTE: This flag is now for security issues only. Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.
[Approval Request Comment]
Bug caused by (feature/regressing bug #): not a regression
User impact if declined: test case failure
Testing completed: verify ok in try server (see comment 25 - 1.try server result)
Risk to taking this patch (and alternatives if risky): low. Because basing on original test case to add another test item for "cpu" wakelock.
String or UUID changes made by this patch: none
Attachment #8396112 -
Flags: approval-mozilla-b2g28?
Flags: needinfo?(scheng)
Comment 32•11 years ago
|
||
Comment on attachment 8392745 [details] [diff] [review]
bug-975955-patch-reviewed
Requesting QA ro verify the audio gap issue, once this lands.
Attachment #8392745 -
Flags: approval-mozilla-b2g28? → approval-mozilla-b2g28+
Updated•11 years ago
|
Attachment #8396112 -
Flags: approval-mozilla-b2g28? → approval-mozilla-b2g28+
Comment 33•11 years ago
|
||
Updated•11 years ago
|
status-b2g-v1.3T:
--- → fixed
Updated•11 years ago
|
Flags: in-moztrap?
Updated•11 years ago
|
Flags: in-moztrap? → in-moztrap+
Comment 34•11 years ago
|
||
At a first sight, this problem seems do not apply for Desktop Firefox.
Star Cheng, could you please give me feedback on this?
Flags: needinfo?(scheng)
Assignee | ||
Comment 35•11 years ago
|
||
(In reply to Alexandra Lucinet, QA Mentor [:adalucinet] from comment #34)
> At a first sight, this problem seems do not apply for Desktop Firefox.
> Star Cheng, could you please give me feedback on this?
As I know, there is no "wake lock" mechanism on PC. Could you describe what is the user story that you expect?
Thanks
Flags: needinfo?(scheng) → needinfo?(alexandra.lucinet)
Comment 36•11 years ago
|
||
I was asking just to make sure that this issue cannot be reproduced and verified on Desktop Firefox - based on the verifyme keyword.
Flags: needinfo?(alexandra.lucinet)
Comment 37•11 years ago
|
||
(In reply to Star Cheng [:scheng] from comment #35)
> (In reply to Alexandra Lucinet, QA Mentor [:adalucinet] from comment #34)
> > At a first sight, this problem seems do not apply for Desktop Firefox.
> > Star Cheng, could you please give me feedback on this?
>
>
> As I know, there is no "wake lock" mechanism on PC. Could you describe what
> is the user story that you expect?
I'm not sure what you mean here, but we have WakeLockListeners to disable the screen saver in desktop Firefox on some platforms (they listen on the "screen" topic). Or do you mean a wake lock listening on the "cpu" topic? I don't think we have WakeLockListener for the "cpu" topic on desktop platforms yet.
Assignee | ||
Comment 38•11 years ago
|
||
(In reply to Chris Pearce (:cpearce) from comment #37)
> (In reply to Star Cheng [:scheng] from comment #35)
> > (In reply to Alexandra Lucinet, QA Mentor [:adalucinet] from comment #34)
> > > At a first sight, this problem seems do not apply for Desktop Firefox.
> > > Star Cheng, could you please give me feedback on this?
> >
> >
> > As I know, there is no "wake lock" mechanism on PC. Could you describe what
> > is the user story that you expect?
>
> I'm not sure what you mean here, but we have WakeLockListeners to disable
> the screen saver in desktop Firefox on some platforms (they listen on the
> "screen" topic). Or do you mean a wake lock listening on the "cpu" topic? I
> don't think we have WakeLockListener for the "cpu" topic on desktop
> platforms yet.
Yes, I mean "cpu" topic. To set the "cpu" wake lock to avoid entering sleep mode despite user press power key.
Hi, Chris
Is the WakeLockListeners which you mentions only for desktop firefox on Window OS?
[1] http://dxr.mozilla.org/mozilla-central/source/widget/windows/nsAppShell.cpp#32
Flags: needinfo?(cpearce)
Comment 39•11 years ago
|
||
scheng: Yes. Windows only so far. Edwin is working on Linux right now in bug 811261. MacOSX in bug 772347, but no one is actively working on it.
Flags: needinfo?(cpearce)
Comment 40•11 years ago
|
||
1.3 Buri: Video continues to stream without problem when screen is locked and unlocked with power button
1.4 Buri: Video continues to stream without problem when screen is locked and unlocked with power button
2.0 Flame: Video continues to stream without problem when screen is locked and unlocked with power button
1.3 Environmental Variables:
Device: Buri 1.3 MOZ
BuildID: 20140528024003
Gaia: 0ce948e378cab7ed3db20231281dd7ca2eb99779
Gecko: ce0dd450bffb
Version: 28.0
Firmware Version: v1.2-device.cfg
1.4 Environmental Variables:
Device: Buri 1.4 MOZ
BuildID: 20140528000201
Gaia: cd595be0a8e975559e8938830df5face89bec3e8
Gecko: af180db8a4bf
Version: 30.0
Firmware Version: v1.2-device.cfg
2.0 Environmental Variables:
Device: Flame 2.0 MOZ
BuildID: 20140528040205
Gaia: bc6f07c149770c6e6dfbea941ac65138dc364a15
Gecko: e017c15325ae
Version: 32.0a1
Firmware Version: 10g-2
Comment 41•11 years ago
|
||
Verified it on latest Tarako build
1.3T Environmental Variables:
Device: Tarako 1.3T
BuildID: 20140530014002
Gaia: e68858693b71d917c9c5ee7e215f7ceea04635f7
Gecko: 1945abae19ff
Version: 28.1
Firmware Version: SP6821a-Gonk-4.0-4-29
1.3 tarako: Video continues to stream without problem when screen is locked and unlocked with power button
You need to log in
before you can comment on or make changes to this bug.
Description
•