{"action":"created","issue":{"url":"https://api.github.com/repos/appium/python-client/issues/79","labels_url":"https://api.github.com/repos/appium/python-client/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/appium/python-client/issues/79/comments","events_url":"https://api.github.com/repos/appium/python-client/issues/79/events","html_url":"https://github.com/appium/python-client/issues/79","id":71651799,"number":79,"title":"Click action reports success then app crashes without appium error ","user":{"login":"crgbaumgart","id":7716962,"avatar_url":"https://avatars.githubusercontent.com/u/7716962?v=3","gravatar_id":"","url":"https://api.github.com/users/crgbaumgart","html_url":"https://github.com/crgbaumgart","followers_url":"https://api.github.com/users/crgbaumgart/followers","following_url":"https://api.github.com/users/crgbaumgart/following{/other_user}","gists_url":"https://api.github.com/users/crgbaumgart/gists{/gist_id}","starred_url":"https://api.github.com/users/crgbaumgart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crgbaumgart/subscriptions","organizations_url":"https://api.github.com/users/crgbaumgart/orgs","repos_url":"https://api.github.com/users/crgbaumgart/repos","events_url":"https://api.github.com/users/crgbaumgart/events{/privacy}","received_events_url":"https://api.github.com/users/crgbaumgart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-28T17:28:53Z","updated_at":"2015-04-28T19:22:15Z","closed_at":null,"body":"ENV: iOS 8.3 real device, MAC, Appium 1.3.7, appium-python-client 0.14.\r\n\r\nA once selectable button in my app's UI, is now, not selectable via .click()/.tap() methods. Additionally, if I instantiate a ruby console appium session, I am able to use the appium inspector tool to successfully select the element. \r\n\r\nI'm not confident that this is an appium related issue, but I have exhausted all my debugging resources and have come here. Appium reports that the element was successfully clicked according to the appium logs, then immediately there after the app crashes. I am unable to reproduce the button error with manual testing. \r\n\r\nI've attached appium and ios logs below: \r\n\r\nThanks for any assistance.   \r\n\r\nThe appium logs are: \r\ninfo: [debug] Waiting up to 0ms for condition\r\ninfo: [debug] Pushing command to appium work queue: \"au.getElementByName('Settings')\"\r\ninfo: [debug] Sending command to instruments: au.getElementByName('Settings')\r\ninfo: [debug] [INST] 2015-04-28 17:06:42 +0000 Debug: Got new command 39 from instruments: au.getElementByName('Settings')\r\ninfo: [debug] [INST] 2015-04-28 17:06:42 +0000 Debug: evaluating au.getElementByName('Settings')\r\ninfo: [debug] [INST] 2015-04-28 17:06:42 +0000 Debug: evaluation finished\r\ninfo: [debug] [INST] 2015-04-28 17:06:42 +0000 Debug: responding with:\r\ninfo: [debug] [INST] 2015-04-28 17:06:42 +0000 Debug: Running system command #40: /usr/local/Cellar/node/0.12.0/bin/node /Users/craig/git/appium/submodules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{\"status\":0,\"value\":\"\"}...\r\ninfo: [debug] Socket data received (25 bytes)\r\ninfo: [debug] Socket data being routed.\r\ninfo: [debug] Got result from instruments: {\"status\":0,\"value\":\"\"}\r\ninfo: [debug] Condition unmet after 734ms. Timing out.\r\ninfo: [debug] Responding to client with error: {\"status\":7,\"value\":{\"message\":\"An element could not be located on the page using the given search parameters.\",\"origValue\":\"\"},\"sessionId\":\"4c331478-3f8d-444a-b22f-52dcce9ed622\"}\r\ninfo: <-- POST /wd/hub/session/4c331478-3f8d-444a-b22f-52dcce9ed622/element 500 734.772 ms - 179\r\ninfo: --> POST /wd/hub/session/4c331478-3f8d-444a-b22f-52dcce9ed622/element {\"using\":\"name\",\"sessionId\":\"4c331478-3f8d-444a-b22f-52dcce9ed622\",\"value\":\"now_playing.search_btn\"}\r\ninfo: [debug] Waiting up to 0ms for condition\r\ninfo: [debug] Pushing command to appium work queue: \"au.getElementByName('now_playing.search_btn')\"\r\ninfo: [debug] Sending command to instruments: au.getElementByName('now_playing.search_btn')\r\ninfo: [debug] [INST] 2015-04-28 17:07:24 +0000 Debug: Got new command 40 from instruments: au.getElementByName('now_playing.search_btn')\r\ninfo: [debug] [INST] 2015-04-28 17:07:24 +0000 Debug: evaluating au.getElementByName('now_playing.search_btn')\r\ninfo: [debug] [INST] 2015-04-28 17:07:25 +0000 Debug: evaluation finished\r\ninfo: [debug] [INST] 2015-04-28 17:07:25 +0000 Debug: Lookup returned [object UIAButton] with the name \"now_playing.search_btn\" (id: 7).\r\ninfo: [debug] [INST] 2015-04-28 17:07:25 +0000 Debug: responding with:\r\ninfo: [debug] [INST] 2015-04-28 17:07:25 +0000 Debug: Running system command #41: /usr/local/Cellar/node/0.12.0/bin/node /Users/craig/git/appium/submodules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{\"status\":0,\"value\":{\"ELEMENT\":\"7\"}}...\r\ninfo: [debug] Socket data received (38 bytes)\r\ninfo: [debug] Socket data being routed.\r\ninfo: [debug] Got result from instruments: {\"status\":0,\"value\":{\"ELEMENT\":\"7\"}}\r\ninfo: [debug] Responding to client with success: {\"status\":0,\"value\":{\"ELEMENT\":\"7\"},\"sessionId\":\"4c331478-3f8d-444a-b22f-52dcce9ed622\"}\r\ninfo: <-- POST /wd/hub/session/4c331478-3f8d-444a-b22f-52dcce9ed622/element 200 661.038 ms - 87 {\"status\":0,\"value\":{\"ELEMENT\":\"7\"},\"sessionId\":\"4c331478-3f8d-444a-b22f-52dcce9ed622\"}\r\ninfo: --> POST /wd/hub/session/4c331478-3f8d-444a-b22f-52dcce9ed622/element/7/click {\"sessionId\":\"4c331478-3f8d-444a-b22f-52dcce9ed622\",\"id\":\"7\"}\r\ninfo: [debug] Pushing command to appium work queue: \"au.tapById('7')\"\r\ninfo: [debug] Sending command to instruments: au.tapById('7')\r\ninfo: [debug] [INST] 2015-04-28 17:07:26 +0000 Debug: Got new command 41 from instruments: au.tapById('7')\r\ninfo: [debug] [INST] 2015-04-28 17:07:26 +0000 Debug: evaluating au.tapById('7')\r\ninfo: [debug] [INST] 2015-04-28 17:07:26 +0000 Debug: UIAButton.tap()\r\ninfo: [debug] Socket data received (25 bytes)\r\ninfo: [debug] Socket data being routed.\r\ninfo: [debug] Got result from instruments: {\"status\":0,\"value\":\"\"}\r\ninfo: [debug] Responding to client with success: {\"status\":0,\"value\":\"\",\"sessionId\":\"4c331478-3f8d-444a-b22f-52dcce9ed622\"}\r\ninfo: <-- POST /wd/hub/session/4c331478-3f8d-444a-b22f-52dcce9ed622/element/7/click 200 1246.794 ms - 74 {\"status\":0,\"value\":\"\",\"sessionId\":\"4c331478-3f8d-444a-b22f-52dcce9ed622\"}\r\ninfo: --> POST /wd/hub/session/4c331478-3f8d-444a-b22f-52dcce9ed622/element {\"using\":\"xpath\",\"sessionId\":\"4c331478-3f8d-444a-b22f-52dcce9ed622\",\"value\":\"//UIATextField[@value = 'search']\"}\r\ninfo: [debug] Waiting up to 0ms for condition\r\ninfo: [debug] Pushing command to appium work queue: \"au.mainApp().getTreeForXML()\"\r\ninfo: [debug] Sending command to instruments: au.mainApp().getTreeForXML()\r\ninfo: [debug] [INST] 2015-04-28 17:07:26 +0000 Debug: evaluation finished\r\ninfo: [debug] [INST] 2015-04-28 17:07:26 +0000 Debug: responding with:\r\ninfo: [debug] [INST] 2015-04-28 17:07:26 +0000 Debug: Running system command #42: /usr/local/Cellar/node/0.12.0/bin/node /Users/craig/git/appium/submodules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{\"status\":0,\"value\":\"\"}...\r\ninfo: [debug] [INST] 2015-04-28 17:07:26 +0000 Fail: The target application appears to have died\r\ninfo: [debug] [INST STDERR] 2015-04-28 10:07:26.640 instruments[31436:1517626] Attempting to set event horizon when core is not engaged, request ignored\r\ninfo: [debug] [INST STDERR] 2015-04-28 10:07:26.640 instruments[31436:1517626] Attempting to set event horizon when core is not engaged, request ignored\r\ninfo: [debug] [INST] Instruments Trace Complete (Duration : 115.550438s; Output : /tmp/appium-instruments/instrumentscli0.trace)\r\ninfo: [debug] [INSTSERVER] Instruments exited with code 0\r\ninfo: [debug] Cleaning up after instruments exit\r\ninfo: [debug] Instruments exited unexpectedly\r\ninfo: [debug] Shutting down command proxy and ignoring any errors\r\ninfo: [debug] Closing socket server.\r\ninfo: [debug] Instruments socket server was closed\r\ninfo: [debug] Stopping iOS log capture\r\ninfo: [debug] Running ios sim reset flow\r\ninfo: [debug] Killing the simulator process\r\ninfo: [debug] Killall iOS Simulator\r\ninfo: [debug] Killing any other simulator daemons\r\ninfo: [debug] On a real device; cannot clean device state\r\ninfo: [debug] We were in the middle of processing a command when instruments died; responding with a generic error\r\ninfo: [debug] Cleaning up appium session\r\nerror: Error getting source, can't continue finding element by XPath\r\ninfo: [debug] Condition unmet after 751ms. Timing out.\r\ninfo: [debug] Responding to client with error: {\"status\":13,\"value\":{\"message\":\"Instruments died while responding to command, please check appium logs\",\"name\":\"UnknownError\",\"origValue\":\"Instruments died while responding to command, please check appium logs\"},\"sessionId\":null}\r\ninfo: <-- POST /wd/hub/session/4c331478-3f8d-444a-b22f-52dcce9ed622/element 500 752.216 ms - 230\r\ninfo: --> POST /wd/hub/session/4c331478-3f8d-444a-b22f-52dcce9ed622/element {\"using\":\"xpath\",\"sessionId\":\"4c331478-3f8d-444a-b22f-52dcce9ed622\",\"value\":\"//*[(@name = 'now_playing.play') or (@name = 'now_playing.pause')]\"}\r\ninfo: <-- POST /wd/hub/session/4c331478-3f8d-444a-b22f-52dcce9ed622/element 404 0.691 ms - 40\r\n\r\niOS Logs:\r\n\r\nApr 28 10:07:26 Craig-Baumgartens-iPhone MobileGestaltHelper[81] <Error>: libMobileGestalt MobileGestalt.c:273: server_access_check denied access to question UniqueDeviceID for pid 3432\r\nApr 28 10:07:26 Craig-Baumgartens-iPhone ScriptAgent[3432] <Error>: libMobileGestalt MobileGestaltSupport.m:170: pid 3432 (ScriptAgent) does not have sandbox access for re6Zb+zwFKJNlkQTUeT+/w and IS NOT appropriately entitled\r\nApr 28 10:07:26 Craig-Baumgartens-iPhone ScriptAgent[3432] <Error>: libMobileGestalt MobileGestalt.c:534: no access to UniqueDeviceID (see <rdar://problem/11744455>)\r\nApr 28 10:07:26 Craig-Baumgartens-iPhone ReportCrash[3434] <Error>: task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)\r\nApr 28 10:07:26 Craig-Baumgartens-iPhone ReportCrash[3434] <Notice>: ReportCrash acting against PID 3431\r\nApr 28 10:07:26 Craig-Baumgartens-iPhone ReportCrash[3434] <Notice>: Formulating crash report for process Aether Cone[3431]\r\nApr 28 10:07:26 Craig-Baumgartens-iPhone locationd[57] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0\r\nApr 28 10:07:26 Craig-Baumgartens-iPhone locationd[57] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0\r\nApr 28 10:07:26 Craig-Baumgartens-iPhone locationd[57] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0\r\nApr 28 10:07:26 Craig-Baumgartens-iPhone locationd[57] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0\r\nApr 28 10:07:26 Craig-Baumgartens-iPhone com.apple.xpc.launchd[1] (UIKitApplication:com.aether.cone[0x8f61][3431]) <Notice>: Service exited due to signal: Segmentation fault: 11\r\nApr 28 10:07:26 Craig-Baumgartens-iPhone SpringBoard[50] <Warning>: Unable to get short BSD proc info for 3431: No such process\r\nApr 28 10:07:26 Craig-Baumgartens-iPhone ReportCrash[3434] <Notice>: Saved report to /var/mobile/Library/Logs/CrashReporter/Aether Cone_2015-04-28-100726_Craig-Baumgartens-iPhone.ips\r\nApr 28 10:07:26 Craig-Baumgartens-iPhone SpringBoard[50] <Warning>: Application 'UIKitApplication:com.aether.cone[0x8f61]' crashed.\r\nApr 28 10:07:26 Craig-Baumgartens-iPhone assertiond[60] <Warning>: pid_suspend failed for <BKNewProcess: 0x100150450; com.aether.cone; pid: 3431; hostpid: -1>: Unknown error: -1, Unknown error: -1\r\nApr 28 10:07:26 Craig-Baumgartens-iPhone assertiond[60] <Warning>: Could not set priority of <BKNewProcess: 0x100150450; com.aether.cone; pid: 3431; hostpid: -1> to 2, priority: No such process\r\nApr 28 10:07:26 Craig-Baumgartens-iPhone assertiond[60] <Warning>: Could not set priority of <BKNewProcess: 0x100150450; com.aether.cone; pid: 3431; hostpid: -1> to 4096, priority: No such process\r\nApr 28 10:07:26 Craig-Baumgartens-iPhone UserEventAgent[17] <Warning>: id=com.aether.cone pid=3431, state=0\r\nApr 28 10:07:27 Craig-Baumgartens-iPhone DTMobileIS[194] <Warning>: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn\r\nApr 28 10:07:27 Craig-Baumgartens-iPhone DTMobileIS[194] <Warning>: Could not create service named com.apple.instruments.server.services.launchdaemon\r\nApr 28 10:07:27 Craig-Baumgartens-iPhone notification_proxy[133] <Error>: 0x100584000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!\r\nApr 28 10:07:27 Craig-Baumgartens-iPhone notification_proxy[133] <Error>: 0x10060c000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!\r\nApr 28 10:07:27 Craig-Baumgartens-iPhone locationd[57] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0\r\nApr 28 10:07:40 Craig-Baumgartens-iPhone kernel[0] <Notice>: 1119287.328542 wlan0.A[70186] AppleBCMWLANConfigManager::configureRoamingProfile(): Received new roaming profile 3 (was 3, flag=0x0)\r\n "},"comment":{"url":"https://api.github.com/repos/appium/python-client/issues/comments/97175235","html_url":"https://github.com/appium/python-client/issues/79#issuecomment-97175235","issue_url":"https://api.github.com/repos/appium/python-client/issues/79","id":97175235,"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},"created_at":"2015-04-28T19:22:15Z","updated_at":"2015-04-28T19:22:15Z","body":"I would expect interacting with a non-active element would not cause the app to crash, it would just say that the element could not be clicked. I'm not sure about this case. "}}