{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/371","repository_url":"https://api.github.com/repos/facebook/WebDriverAgent","labels_url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/371/labels{/name}","comments_url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/371/comments","events_url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/371/events","html_url":"https://github.com/facebook/WebDriverAgent/issues/371","id":189420926,"number":371,"title":"XCTRunner[5758]: background task expired!!!","user":{"login":"imurchie","id":2614354,"avatar_url":"https://avatars.githubusercontent.com/u/2614354?v=3","gravatar_id":"","url":"https://api.github.com/users/imurchie","html_url":"https://github.com/imurchie","followers_url":"https://api.github.com/users/imurchie/followers","following_url":"https://api.github.com/users/imurchie/following{/other_user}","gists_url":"https://api.github.com/users/imurchie/gists{/gist_id}","starred_url":"https://api.github.com/users/imurchie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imurchie/subscriptions","organizations_url":"https://api.github.com/users/imurchie/orgs","repos_url":"https://api.github.com/users/imurchie/repos","events_url":"https://api.github.com/users/imurchie/events{/privacy}","received_events_url":"https://api.github.com/users/imurchie/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-15T15:23:44Z","updated_at":"2016-11-16T09:50:30Z","closed_at":"2016-11-16T09:50:30Z","body":"Periodically we are seeing in longer-running tests the WebDriverAgent background task dies with an expiration. We end up with iOS simulator logs like:\r\n\r\n```\r\nNov 11 10:18:15 itako55075 assertiond[5022]: Could not create or rename power assertion for <BKNewProcess: 0x7f8adbc42260; com.apple.test.WebDriverAgentRunner-Runner; pid: 5758; hostpid: -1>: 0xe00002c9\r\nNov 11 10:18:44 itako55075 assertiond[5022]: notify_suspend_pid() failed with error 7\r\nNov 11 10:21:10 itako55075 XCTRunner[5758]: background task expired!!!\r\nNov 11 10:21:16 itako55075 assertiond[5022]: <BKNewProcess: 0x7f8adbc42260; com.apple.test.WebDriverAgentRunner-Runner; pid: 5758; hostpid: -1> has active assertions beyond permitted time: \r\n\t{(\r\n\t    <BKProcessAssertion: 0x7f8adbc3d200> id: 5758-8664F98C-A295-4E78-9DB3-C89F2B319945 name: Called by XCTRunner, from unknown method process: <BKNewProcess: 0x7f8adbc42260; com.apple.test.WebDriverAgentRunner-Runner; pid: 5758; hostpid: -1> permittedBackgroundDuration: 180.000000 reason: finishTask owner pid:5758 preventSuspend  preventIdleSleep  preventSuspendOnSleep \r\n\t)}\r\n```\r\n\r\nI'm not sure how to proceed in debugging and fixing this."},"comment":{"url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/comments/260901670","html_url":"https://github.com/facebook/WebDriverAgent/issues/371#issuecomment-260901670","issue_url":"https://api.github.com/repos/facebook/WebDriverAgent/issues/371","id":260901670,"user":{"login":"marekcirkos","id":1397422,"avatar_url":"https://avatars.githubusercontent.com/u/1397422?v=3","gravatar_id":"","url":"https://api.github.com/users/marekcirkos","html_url":"https://github.com/marekcirkos","followers_url":"https://api.github.com/users/marekcirkos/followers","following_url":"https://api.github.com/users/marekcirkos/following{/other_user}","gists_url":"https://api.github.com/users/marekcirkos/gists{/gist_id}","starred_url":"https://api.github.com/users/marekcirkos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marekcirkos/subscriptions","organizations_url":"https://api.github.com/users/marekcirkos/orgs","repos_url":"https://api.github.com/users/marekcirkos/repos","events_url":"https://api.github.com/users/marekcirkos/events{/privacy}","received_events_url":"https://api.github.com/users/marekcirkos/received_events","type":"User","site_admin":false},"created_at":"2016-11-16T09:50:30Z","updated_at":"2016-11-16T09:50:30Z","body":"There is not much we can do on WDA level. If you are using xcode build to start WDA you should raise an issue with Apple."}}
{"actor":{"display_login":"marekcirkos"}}