UIAUTOMATOR unexpect exited after open notification shade

Hi, I use openNotification method(or swipe) to open the notification shade, but when appium execute that method, uiautomator throws stackoverflowError and appium not continue anymore, the whole logs is shown below.

info: Welcome to Appium v1.2.2 (REV cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4)

info: Appium REST http interface listener started on 127.0.0.1:4723

info: [debug] Non-default server args: {"app":"xxxxxxxxxxxx","address":"127.0.0.1","platformName":"Android","platformVersion":"4.4","automationName":"Appium","defaultCommandTimeout":7200}

info: LogLevel: debug

info: --> GET /wd/hub/status {}

info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}}

info: <-- GET /wd/hub/status 200 5.507 ms - 104 {"status":0,"value":{"build":{"version":"1.2.2","revision":"cf6ff5939ddc6b4d45fcbabfbfe13c950e0058c4"}}}

info: --> POST /wd/hub/session {"desiredCapabilities":{"app":"xxxxxxxx","platformVersion":"4.4","platformName":"Android","device":"Android","deviceName":"htc"}}



info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : device



info: [debug] No appActivity desired capability or server param. Parsing from apk.

info: [debug] No appPackage desired capability or server param. Parsing from apk.

info: [debug] xxxxxxxxx downloaded to /var/folders/9x/scx818qs6wj3530b5xp7f8t40000gn/T/114817-1022-18bfxmp/appium-app.apk

info: [debug] Creating new appium session 059e1245-7ece-472b-966b-ed868ba6d8c1

info: Starting android appium

info: [debug] Using fast reset? true

info: [debug] Preparing device for session

info: [debug] Checking whether app is actually present

info: [debug] Checking whether adb is present

info: [debug] Using adb from /usr/adt/sdk/platform-tools/adb

info: Retrieving device

info: [debug] Trying to find a connected android device

info: [debug] Getting connected devices...

info: [debug] executing: "/usr/adt/sdk/platform-tools/adb" devices

info: [debug] 1 device(s) connected



info: Found device HT43YWM00991

info: [debug] Setting device id to HT43YWM00991

info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)



info: [debug] executing: "/usr/adt/sdk/platform-tools/adb" -s HT43YWM00991 wait-for-device



info: [debug] executing: "/usr/adt/sdk/platform-tools/adb" -s HT43YWM00991 shell "echo 'ready'"



info: [debug] Starting logcat capture



info: [debug] Parsing package and activity from app manifest

info: [debug] Checking whether aapt is present

info: [debug] Using aapt from /usr/adt/sdk/build-tools/android-4.4W/aapt

info: [debug] packageAndLaunchActivityFromManifest: "/usr/adt/sdk/build-tools/android-4.4W/aapt" dump badging /var/folders/9x/scx818qs6wj3530b5xp7f8t40000gn/T/114817-1022-18bfxmp/appium-app.apk



info: [debug] badging package: xxxxxxx

info: [debug] badging act: xxxxxxx

info: [debug] Parsed package and activity are: xxxxxx

info: [debug] Getting device API level

info: [debug] executing: "/usr/adt/sdk/platform-tools/adb" -s HT43YWM00991 shell "getprop ro.build.version.sdk"



info: [debug] Device is at API Level 19

info: Device API level is: 19

info: [debug] executing: "/usr/adt/sdk/platform-tools/adb" -s HT43YWM00991 shell "getprop persist.sys.language"



info: [debug] Current device language: 



info: [debug] java -jar "/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-adb/jars/appium_apk_tools.jar" "stringsFromApk" "/var/folders/9x/scx818qs6wj3530b5xp7f8t40000gn/T/114817-1022-18bfxmp/appium-app.apk" "/tmp/xxxxxxxxxx" 



info: [debug] executing: "/usr/adt/sdk/platform-tools/adb" -s HT43YWM00991 push "/tmp/xxxxxxxx/strings.json" /data/local/tmp



info: [debug] Checking whether aapt is present



info: [debug] Using aapt from /usr/adt/sdk/build-tools/android-4.4W/aapt



info: [debug] processFromManifest: "/usr/adt/sdk/build-tools/android-4.4W/aapt" dump xmltree "/var/folders/9x/scx818qs6wj3530b5xp7f8t40000gn/T/114817-1022-18bfxmp/appium-app.apk" AndroidManifest.xml



info: [debug] Set app process to: xxxxxxxxx



info: [debug] Not uninstalling app since server not started with --full-reset

info: [debug] Checking app cert for /var/folders/9x/scx818qs6wj3530b5xp7f8t40000gn/T/114817-1022-18bfxmp/appium-app.apk: java -jar "/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-adb/jars/verify.jar" "/var/folders/9x/scx818qs6wj3530b5xp7f8t40000gn/T/114817-1022-18bfxmp/appium-app.apk"



info: [debug] App not signed with debug cert.



info: [debug] Resigning apk with: java -jar "/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-adb/jars/sign.jar" "/var/folders/9x/scx818qs6wj3530b5xp7f8t40000gn/T/114817-1022-18bfxmp/appium-app.apk" --override



info: [debug] Zip-aligning /var/folders/9x/scx818qs6wj3530b5xp7f8t40000gn/T/114817-1022-18bfxmp/appium-app.apk



info: [debug] Checking whether zipalign is present



info: [debug] Using zipalign from /usr/adt/sdk/build-tools/android-4.4W/zipalign



info: [debug] zipAlignApk: "/usr/adt/sdk/build-tools/android-4.4W/zipalign" -f 4 "/var/folders/9x/scx818qs6wj3530b5xp7f8t40000gn/T/114817-1022-18bfxmp/appium-app.apk" "/var/folders/9x/scx818qs6wj3530b5xp7f8t40000gn/T/appium114817-1022-1xbsyg9.tmp"



info: [debug] MD5 for app is 9c7b847e4a225004e5cfeb080ebba69e



info: [debug] executing: "/usr/adt/sdk/platform-tools/adb" -s HT43YWM00991 shell "ls /data/local/tmp/9c7b847e4a225004e5cfeb080ebba69e.apk"



info: [debug] Getting install status for xxxxxxxxxxx



info: [debug] Getting device API level

info: [debug] executing: "/usr/adt/sdk/platform-tools/adb" -s HT43YWM00991 shell "getprop ro.build.version.sdk"



info: [debug] Device is at API Level 19



info: [debug] executing: "/usr/adt/sdk/platform-tools/adb" -s HT43YWM00991 shell "pm list packages -3 xxxxxxxxx"



info: [debug] App is installed



info: App is already installed, resetting app

info: [debug] Running fast reset (stop and clear)

info: [debug] executing: "/usr/adt/sdk/platform-tools/adb" -s HT43YWM00991 shell "am force-stop xxxxxxxxxxx"



info: [debug] executing: "/usr/adt/sdk/platform-tools/adb" -s HT43YWM00991 shell "pm clear xxxxxxxxxx"



info: [debug] Forwarding system:4724 to device:4724



info: [debug] executing: "/usr/adt/sdk/platform-tools/adb" -s HT43YWM00991 forward tcp:4724 tcp:4724



info: [debug] Pushing appium bootstrap to device...



info: [debug] executing: "/usr/adt/sdk/platform-tools/adb" -s HT43YWM00991 push "/Applications/Appium.app/Contents/Resources/node_modules/appium/build/android_bootstrap/AppiumBootstrap.jar" /data/local/tmp/



info: [debug] Pushing settings apk to device...



info: [debug] executing: "/usr/adt/sdk/platform-tools/adb" -s HT43YWM00991 install "/Applications/Appium.app/Contents/Resources/node_modules/appium/build/settings_apk/settings_apk-debug.apk"



info: [debug] Pushing unlock helper app to device...



info: [debug] executing: "/usr/adt/sdk/platform-tools/adb" -s HT43YWM00991 install "/Applications/Appium.app/Contents/Resources/node_modules/appium/build/unlock_apk/unlock_apk-debug.apk"



info: Starting App



info: [debug] Attempting to kill all 'uiautomator' processes

info: [debug] Getting all processes with 'uiautomator'

info: [debug] executing: "/usr/adt/sdk/platform-tools/adb" -s HT43YWM00991 shell "ps 'uiautomator'"



info: [debug] No matching processes found



info: [debug] Running bootstrap

info: [debug] spawning: /usr/adt/sdk/platform-tools/adb -s HT43YWM00991 shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap



info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1



info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=

info: [debug] [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap:

info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner

info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer

info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap

info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1

info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 1



info: [debug] [BOOTSTRAP] [debug] Socket opened on port 4724



info: [debug] [BOOTSTRAP] [debug] Appium Socket Server Ready

info: [debug] [BOOTSTRAP] [debug] Loading json...

info: [debug] Waking up device if it's not alive

info: [debug] Pushing command to appium work queue: ["wake",{}]



info: [debug] [BOOTSTRAP] [debug] json loading complete.



info: [debug] [BOOTSTRAP] [debug] Registered crash watchers.

info: [debug] [BOOTSTRAP] [debug] Client connected

info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"wake","params":{}}

info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION

info: [debug] [BOOTSTRAP] [debug] Got command action: wake

info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":true,"status":0}

info: [debug] executing: "/usr/adt/sdk/platform-tools/adb" -s HT43YWM00991 shell "dumpsys window"



info: [debug] Writing dumpsys output to /Applications/Appium.app/Contents/Resources/node_modules/appium/.dumpsys.log



info: [debug] Screen already unlocked, continuing.

info: [debug] Pushing command to appium work queue: ["getDataDir",{}]



info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"getDataDir","params":{}}

info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION

info: [debug] [BOOTSTRAP] [debug] Got command action: getDataDir

info: [debug] dataDir set to: /data/local/tmp

info: [debug] Getting device API level

info: [debug] executing: "/usr/adt/sdk/platform-tools/adb" -s HT43YWM00991 shell "getprop ro.build.version.sdk"



info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":"\/data\/local\/tmp","status":0}



info: [debug] Device is at API Level 19

info: [debug] executing: "/usr/adt/sdk/platform-tools/adb" -s HT43YWM00991 shell "am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n xxxxxxxxxxxx/xxxxxxxxxxxxx"



info: [debug] Waiting for pkg "xxxxxxxxx" and activity "xxxxxxxxx" to be focused



info: [debug] Getting focused package and activity

info: [debug] executing: "/usr/adt/sdk/platform-tools/adb" -s HT43YWM00991 shell "dumpsys window windows"



info: [debug] Device launched! Ready for commands



info: [debug] Setting command timeout to the default of 7200 secs

info: [debug] Appium session started with sessionId 059e1245-7ece-472b-966b-ed868ba6d8c1



info: <-- POST /wd/hub/session 303 26446.328 ms - 9 



info: --> GET /wd/hub/session/059e1245-7ece-472b-966b-ed868ba6d8c1 {}

info: [debug] Responding to client with success: {"status":0,"value":{"platform":"LINUX","browserName":"Android","platformVersion":"4.4","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"app":"http://10.1.203.15:8081/vpn/co/TmmsSuiteProduct-signed_1325.apk","platformVersion":"4.4","platformName":"Android","device":"Android","deviceName":"htc"},"app":"http://10.1.203.15:8081/vpn/co/TmmsSuiteProduct-signed_1325.apk","platformName":"Android","device":"Android","deviceName":"htc"},"sessionId":"059e1245-7ece-472b-966b-ed868ba6d8c1"}

info: <-- GET /wd/hub/session/059e1245-7ece-472b-966b-ed868ba6d8c1 200 1.529 ms - 621 {"status":0,"value":{"platform":"LINUX","browserName":"Android","platformVersion":"4.4","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"app":"http://10.1.203.15:8081/vpn/co/TmmsSuiteProduct-signed_1325.apk","platformVersion":"4.4","platformName":"Android","device":"Android","deviceName":"htc"},"app":"http://10.1.203.15:8081/vpn/co/TmmsSuiteProduct-signed_1325.apk","platformName":"Android","device":"Android","deviceName":"htc"},"sessionId":"059e1245-7ece-472b-966b-ed868ba6d8c1"}



info: --> POST /wd/hub/session/059e1245-7ece-472b-966b-ed868ba6d8c1/timeouts/implicit_wait {"ms":300000}

info: [debug] Set Android implicit wait to 300000ms

info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"059e1245-7ece-472b-966b-ed868ba6d8c1"}

info: <-- POST /wd/hub/session/059e1245-7ece-472b-966b-ed868ba6d8c1/timeouts/implicit_wait 200 1.758 ms - 76 {"status":0,"value":null,"sessionId":"059e1245-7ece-472b-966b-ed868ba6d8c1”}

info: --> POST /wd/hub/session/059e1245-7ece-472b-966b-ed868ba6d8c1/touch/perform {"actions":[{"options":{"x":100,"y":25},"action":"press"},{"options":{"ms":500},"action":"wait"},{"options":{"x":100,"y":425},"action":"moveTo"},{"options":{},"action":"release"}]}



info: [debug] Pushing command to appium work queue: ["swipe",{"startX":100,"startY":25,"endX":100,"endY":425,"steps":14}]



info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"swipe","params":{"startX":100,"startY":25,"endX":100,"endY":425,"steps":14}}

info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION

info: [debug] [BOOTSTRAP] [debug] Got command action: swipe

info: [debug] [BOOTSTRAP] [debug] Swiping from [x=100.0, y=25.0] to [x=100.0, y=425.0] with steps: 14



info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":true,"status":0}



info: [debug] Responding to client with success: {"status":0,"value":true,"sessionId":"059e1245-7ece-472b-966b-ed868ba6d8c1"}

info: <-- POST /wd/hub/session/059e1245-7ece-472b-966b-ed868ba6d8c1/touch/perform 200 306.125 ms - 76 {"status":0,"value":true,"sessionId":"059e1245-7ece-472b-966b-ed868ba6d8c1"}



info: [debug] [UIAUTOMATOR STDOUT] **INSTRUMENTATION_RESULT: shortMsg=java.lang.StackOverflowError**



info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_RESULT: longMsg=null

info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_CODE: 0



info: [debug] UiAutomator exited



info: [debug] executing: "/usr/adt/sdk/platform-tools/adb" -s HT43YWM00991 shell "echo 'ping'"



info: [debug] Attempting to uninstall app

info: [debug] Not uninstalling app since server not started with --full-reset

info: [debug] Cleaning up Chromedriver



**error: Unhandled error: TypeError: Object function () { [native code] } has no method 'stop'**

 at androidHybrid.cleanupChromedriver (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/android/android-hybrid.js:198:18)

    at null.<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/android/android.js:186:10)

    at null.<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/android/android.js:208:9)

    at androidCommon.uninstallApp (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/android/android-common.js:465:5)

    at null.<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/android/android.js:206:12)

    at null.<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/android/android.js:215:11)

    at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-adb/lib/adb.js:902:7

    at null.<anonymous> (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-adb/lib/adb.js:173:9)

    at ChildProcess.exithandler (child_process.js:646:7)

    at ChildProcess.emit (events.js:98:17) context: [POST /wd/hub/session {"desiredCapabilities":{"app":"http://10.1.203.15:8081/vpn/co/TmmsSuiteProduct-signed_1325.apk","platformVersion":"4.4","platformName":"Android","device":"Android","deviceName":"htc"}}]

I use the Appium application 1.2.2 version.
Anyone has the same problem before?

I’m having this issue as well, someone have a clue? using 1.3.4.

Hi, I am facing the same problem and not able to find the solution