{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/4328","labels_url":"https://api.github.com/repos/appium/appium/issues/4328/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/4328/comments","events_url":"https://api.github.com/repos/appium/appium/issues/4328/events","html_url":"https://github.com/appium/appium/issues/4328","id":53141635,"number":4328,"title":"Adb restart during the test cause issue","user":{"login":"lyzero","id":5657504,"avatar_url":"https://avatars.githubusercontent.com/u/5657504?v=3","gravatar_id":"","url":"https://api.github.com/users/lyzero","html_url":"https://github.com/lyzero","followers_url":"https://api.github.com/users/lyzero/followers","following_url":"https://api.github.com/users/lyzero/following{/other_user}","gists_url":"https://api.github.com/users/lyzero/gists{/gist_id}","starred_url":"https://api.github.com/users/lyzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyzero/subscriptions","organizations_url":"https://api.github.com/users/lyzero/orgs","repos_url":"https://api.github.com/users/lyzero/repos","events_url":"https://api.github.com/users/lyzero/events{/privacy}","received_events_url":"https://api.github.com/users/lyzero/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/appium/appium/labels/Android","name":"Android","color":"ADFF2F"},{"url":"https://api.github.com/repos/appium/appium/labels/OnGoing","name":"OnGoing","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-12-30T19:49:17Z","updated_at":"2015-06-10T06:20:20Z","closed_at":"2015-06-10T06:20:20Z","body":"As part of the test, adb will be stoped and restarted. This actually causes appium session lost. How should I deal with this situation.\r\n\r\nLog attached:\r\nerror: UiAutomator quit before it successfully launched\r\ninfo: [debug] Cleaning up appium session\r\nerror: Failed to start an Appium session, err was: Error: UiAutomator quit before it successfully launched\r\ninfo: [debug] Error: UiAutomator quit before it successfully launched\r\n    at null.<anonymous> (/usr/local/lib/node_modules/appium/lib/devices/android/android.js:202:23)\r\n    at Object.async.eachSeries (/usr/local/lib/node_modules/appium/node_modules/async/lib/async.js:145:20)\r\n    at androidHybrid.stopChromedriverProxies (/usr/local/lib/node_modules/appium/lib/devices/android/android-hybrid.js:234:9)\r\n    at null.<anonymous> (/usr/local/lib/node_modules/appium/lib/devices/android/android.js:197:10)\r\n    at null.<anonymous> (/usr/local/lib/node_modules/appium/lib/devices/android/android.js:219:9)\r\n    at androidCommon.uninstallApp (/usr/local/lib/node_modules/appium/lib/devices/android/android-common.js:465:5)\r\n    at null.<anonymous> (/usr/local/lib/node_modules/appium/lib/devices/android/android.js:217:12)\r\n    at null.<anonymous> (/usr/local/lib/node_modules/appium/lib/devices/android/android.js:226:11)\r\n    at /usr/local/lib/node_modules/appium/node_modules/appium-adb/lib/adb.js:902:7\r\n    at null.<anonymous> (/usr/local/lib/node_modules/appium/node_modules/appium-adb/lib/adb.js:172:9)\r\ninfo: [debug] Responding to client with error: {\"status\":33,\"value\":{\"message\":\"A new session could not be created. (Original error: UiAutomator quit before it successfully launched)\",\"origValue\":\"UiAutomator quit before it successfully launched\"},\"sessionId\":null}\r\ninfo: <-- POST /wd/hub/session 500 260354.273 ms - 218 "},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/110608093","html_url":"https://github.com/appium/appium/issues/4328#issuecomment-110608093","issue_url":"https://api.github.com/repos/appium/appium/issues/4328","id":110608093,"user":{"login":"sebv","id":418288,"avatar_url":"https://avatars.githubusercontent.com/u/418288?v=3","gravatar_id":"","url":"https://api.github.com/users/sebv","html_url":"https://github.com/sebv","followers_url":"https://api.github.com/users/sebv/followers","following_url":"https://api.github.com/users/sebv/following{/other_user}","gists_url":"https://api.github.com/users/sebv/gists{/gist_id}","starred_url":"https://api.github.com/users/sebv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebv/subscriptions","organizations_url":"https://api.github.com/users/sebv/orgs","repos_url":"https://api.github.com/users/sebv/repos","events_url":"https://api.github.com/users/sebv/events{/privacy}","received_events_url":"https://api.github.com/users/sebv/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T06:20:20Z","updated_at":"2015-06-10T06:20:20Z","body":"Closing, no activity, may be reopened if needed."}}