I had this page open in Chrome 60: Call a function from another file in Python
(I have/had 25 other tabs open at the same time.)
And my computer would not go into sleep mode (while connected to power source) -
pmset -g assertions
2017-09-16 09:58:56 +0200
Assertion status system-wide:
BackgroundTask 0
ApplePushServiceTask 0
UserIsActive 1
PreventUserIdleDisplaySleep 0
PreventSystemSleep 0
ExternalMedia 0
PreventUserIdleSystemSleep 1
NetworkClientActive 0
Listed by owning process:
pid 4017(Google Chrome): [0x0001c1620001a530] 01:43:47 NoIdleSleepAssertion named: "WebRTC has active PeerConnections"
pid 187(coreaudiod): [0x0001c1620001862b] 01:43:47 PreventUserIdleSystemSleep named: "com.apple.audio.AppleHDAEngineOutput:1F,3,0,1,1:0.context.preventuseridlesleep"
Created for PID: 4017.
pid 102(hidd): [0x0001d8d10009a6a8] 00:03:48 UserIsActive named: "com.apple.iohideventsystem.queue.tickle.4294968233.11"
Timeout will fire in 58 secs Action=TimeoutActionRelease
Kernel Assertions: 0x124=USB,THNDR,MAGICWAKE
id=502 level=255 0x20=THNDR mod=2017-09-16, 09:58 description=NHI0 owner=AppleThunderboltHAL
id=505 level=255 0x100=MAGICWAKE mod=2017-09-15, 23:52 description=en0 owner=en0
id=1352 level=255 0x4=USB mod=1970-01-01, 01:00 description=com.apple.usb.externaldevice.03400000 owner=USB audio CODEC
id=1357 level=255 0x4=USB mod=1970-01-01, 01:00 description=com.apple.usb.externaldevice.02200000 owner=USB 2.0 BILLBOARD
id=1358 level=255 0x100=MAGICWAKE mod=2017-09-16, 07:34 description=en7 owner=en7
id=1407 level=255 0x4=USB mod=1970-01-01, 01:00 description=com.apple.usb.externaldevice.03500000 owner=USB5534B
id=1409 level=255 0x4=USB mod=1970-01-01, 01:00 description=com.apple.usb.externaldevice.03100000 owner=USB2134B
id=1411 level=255 0x4=USB mod=1970-01-01, 01:00 description=com.apple.usb.externaldevice.03120000 owner=Razer Abyssus
id=1412 level=255 0x4=USB mod=1970-01-01, 01:00 description=com.apple.usb.externaldevice.03110000 owner=USB Multimedia Keyboard
Idle sleep preventers: IODisplayWrangler
chrome://webrtc-internals/ is showing:
https://stackoverflow.com/questions/20309456/how-to-call-a-function-from-another-file-in-python, { iceServers: [], iceTransportPolicy: all, bundlePolicy: balanced, rtcpMuxPolicy: require, iceCandidatePoolSize: 0 },
Stats Tables
googLibjingleSession_960116030958803171 (googLibjingleSession)
Statistics googLibjingleSession_960116030958803171
timestamp 16/09/2017, 10:02:16
googInitiator false
and
https://stackoverflow.com/questions/20309456/how-to-call-a-function-from-another-file-in-python, { iceServers: [], iceTransportPolicy: all, bundlePolicy: balanced, rtcpMuxPolicy: require, iceCandidatePoolSize: 0 },
Stats Tables
googLibjingleSession_1302693407116520926 (googLibjingleSession)
Statistics googLibjingleSession_1302693407116520926
timestamp 16/09/2017, 10:02:32
googInitiator false
Closing said tab yields:
2017-09-16 10:03:11 +0200
Assertion status system-wide:
BackgroundTask 0
ApplePushServiceTask 0
UserIsActive 1
PreventUserIdleDisplaySleep 0
PreventSystemSleep 0
ExternalMedia 0
PreventUserIdleSystemSleep 0
NetworkClientActive 0
Listed by owning process:
pid 102(hidd): [0x0001d8d10009a6a8] 00:08:03 UserIsActive named: "com.apple.iohideventsystem.queue.tickle.4294968219.3"
Timeout will fire in 55 secs Action=TimeoutActionRelease
Kernel Assertions: 0x124=USB,THNDR,MAGICWAKE
id=502 level=255 0x20=THNDR mod=2017-09-16, 09:58 description=NHI0 owner=AppleThunderboltHAL
id=505 level=255 0x100=MAGICWAKE mod=2017-09-15, 23:52 description=en0 owner=en0
id=1352 level=255 0x4=USB mod=1970-01-01, 01:00 description=com.apple.usb.externaldevice.03400000 owner=USB audio CODEC
id=1357 level=255 0x4=USB mod=1970-01-01, 01:00 description=com.apple.usb.externaldevice.02200000 owner=USB 2.0 BILLBOARD
id=1358 level=255 0x100=MAGICWAKE mod=2017-09-16, 07:34 description=en7 owner=en7
id=1407 level=255 0x4=USB mod=1970-01-01, 01:00 description=com.apple.usb.externaldevice.03500000 owner=USB5534B
id=1409 level=255 0x4=USB mod=1970-01-01, 01:00 description=com.apple.usb.externaldevice.03100000 owner=USB2134B
id=1411 level=255 0x4=USB mod=1970-01-01, 01:00 description=com.apple.usb.externaldevice.03120000 owner=Razer Abyssus
id=1412 level=255 0x4=USB mod=1970-01-01, 01:00 description=com.apple.usb.externaldevice.03110000 owner=USB Multimedia Keyboard
Idle sleep preventers: IODisplayWrangler
After reopening the page, the webrt-internals page is empty, and no new power management assertions are taken.
I have not seen this issue before on Stack Overflow - is it a bug in Chrome 60 or on Stack Overflow?
Why does Stack Overflow acquire the WebRTC API at all?