New issue
Advanced search Search tips

Issue 664462 link

Starred by 5 users

Issue metadata

Status: Duplicate
Merged: issue 612294
Owner: ----
Closed: Nov 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

WebRTC is preventing mac to go sleep even call is ended.

Reported by oonurttu...@gmail.com, Nov 11 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36

Steps to reproduce the problem:
1. Make a call over https://apprtc.appspot.com/
2. Join this call from another MAC computer.
3. End the call from MAC.
4. Event call has ended properly there is still NoIdleSleepAssertion flag on MAC computer that prevent computer going to sleep. Also, in activity monitor Chrome is seen as Preventing Sleep = YES

Here is the output of power management assertions.

MacBook-Pro:~ Guest$ pmset -g assertions
2016-11-11 09:43:55 +0300 
Assertion status system-wide:
   BackgroundTask                 0
   ApplePushServiceTask           0
   UserIsActive                   0
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   ExternalMedia                  0
   InternalPreventDisplaySleep    1
   PreventUserIdleSystemSleep     0
   NetworkClientActive            0
Listed by owning process:

   pid 11827(Google Chrome): [0x00019ebe000180e9] 00:01:00 NoIdleSleepAssertion named: "WebRTC has active PeerConnections" 
   pid 60(powerd): [0x00019e3800108284] 00:03:14 InternalPreventDisplaySleep named: "com.apple.powermanagement.delayDisplayOff" 
	Timeout will fire in 199 secs Action=TimeoutActionTurnOff
No kernel assertions.
Idle sleep preventers: IODisplayWrangler

What is the expected behavior?
There should not be NoIdleSleepAssertion flag that prevent computer go sleep

What went wrong?
On activity monitor Chrome is as Preventing Sleep YES and NoIdleSleepAssertion.
See the attachment.

Did this work before? No 

Chrome version: 54.0.2840.71  Channel: beta
OS Version: 10.12.1
Flash Version: Shockwave Flash 23.0 r0

NoIdleSleepAssertion flag is put by hangout as well but since hangout open webrtc session on a new browser window and when call ended that window is closed, NoIdleSleepAssertion flag is also gone.

This issue is not appear on mozilla firefox browser when we do the same scenario on there.
 
Activity_Monitor.png
20.4 KB View Download
Components: Blink>WebRTC
Components: -Platform>DevTools

Comment 3 by guidou@chromium.org, Nov 14 2016

Mergedinto: 612294
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment