Remote object '/data/local/tmp/local/tmp/dump.xml' does not exist

Hi Everyone!

I’m trying to run Android tests using Appium with RobotFramework library and have an issue:
Environment:

  • Appium v1.2.1 (also tried on v1.2.2 as well)
  • MacOS 10.9.4
  • Android 4.4
  • AppiumLibrary for RobotFramework v. 0.17

So, here is a very strange behavior when I run appium server and open appium Inspector. Inspector shows me only one element on screen (in the real, WebView have a html page with different elements). So, Inspector does not see any elements on the screen. If I try to perform action (tap for example), Appium crashes.
If I try to run my tests, all of them will be failed because of error “remote object ‘/data/local/tmp/local/tmp/dump.xml’ does not exist”

Next, if I run the same tests second/third time tests magically works and appium Inspector see all elements on the screen. From the 4 tests 1 can pass and other failed or all failed, or 3 passed one failed. Just random.
The problem is not related to AppiumLibrary because I have the same issue with Appium Inspector.

Here is a logs:
2014-09-16 09:00:24:415 - info: Welcome to Appium v1.2.1 (REV 2a4b624a708e580709006b697dc4c9c4e3007863)

2014-09-16 09:00:24:421 - debug: Non-default server args: {“app”:"/path/to/my/app.apk",“logTimestamp”:true,“androidPackage”:“com.company.app”,“androidActivity”:“com.company.app.MainActivity”,“androidWaitActivity”:“com.company.app.TutorialActivity”,“deviceName”:“SGS5”,“platformName”:“Android”,“platformVersion”:“4.4”,“automationName”:“Appium”,“defaultCommandTimeout”:7200}

2014-09-16 09:00:24:418 - info: Appium REST http interface listener started on 0.0.0.0:4723
2014-09-16 09:00:24:421 - info: LogLevel: debug

2014-09-16 09:00:24:585 - info: --> GET /wd/hub/status {}

2014-09-16 09:00:24:587 - debug: Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.2.1”,“revision”:“2a4b624a708e580709006b697dc4c9c4e3007863”}}}

2014-09-16 09:00:24:591 - info: <-- GET /wd/hub/status 200 6.244 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.2.1”,“revision”:“2a4b624a708e580709006b697dc4c9c4e3007863”}}}

2014-09-16 09:00:35:732 - info: --> GET /wd/hub/status {}

2014-09-16 09:00:35:733 - debug: Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.2.1”,“revision”:“2a4b624a708e580709006b697dc4c9c4e3007863”}}}

2014-09-16 09:00:35:734 - info: <-- GET /wd/hub/status 200 1.722 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.2.1”,“revision”:“2a4b624a708e580709006b697dc4c9c4e3007863”}}}

2014-09-16 09:00:39:065 - info: --> POST /wd/hub/session {“desiredCapabilities”:{“deviceName”:“Nexus 5”,“takesScreenshot”:“true”,“udid”:“079834470de74246”,“app”:“path/to/my/app.apk”,“androidActivity”:“com.company.app.MainActivity”,“appWaitPackage”:“com.company.app”,“automationName”:“None”,“platformVersion”:“4.4”,“appPackage”:“com.company.app”,“platformName”:“Android”,“appWaitActivity”:“com.company.app.TutorialActivity”,“bundleid”:“None”}}

2014-09-16 09:00:39:066 - 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. : takesScreenshot, androidActivity, bundleid

2014-09-16 09:00:39:066 - warn: Converting cap takesScreenshot from string to boolean. This might cause unexpected behavior.

2014-09-16 09:00:39:068 - debug: Using local app from desired caps: path/to/my/app.apk
2014-09-16 09:00:39:070 - debug: Creating new appium session 1d0950be-5c6e-42c2-b154-e0e4b8b30743
2014-09-16 09:00:39:072 - debug: Using fast reset? true
2014-09-16 09:00:39:073 - debug: Preparing device for session
2014-09-16 09:00:39:073 - debug: Checking whether app is actually present
2014-09-16 09:00:39:074 - debug: Checking whether adb is present
2014-09-16 09:00:39:075 - debug: Using adb from /Applications/Android_SDK/sdk/platform-tools/adb
2014-09-16 09:00:39:076 - debug: Trying to find a connected android device
2014-09-16 09:00:39:077 - debug: Getting connected devices…
2014-09-16 09:00:39:077 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” devices

2014-09-16 09:00:39:071 - info: Starting android appium
2014-09-16 09:00:39:076 - info: Retrieving device

2014-09-16 09:00:47:302 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” devices

2014-09-16 09:00:50:371 - debug: 1 device(s) connected

2014-09-16 09:00:50:372 - info: Found device 079834470de74246

2014-09-16 09:00:50:372 - debug: Setting device id to 079834470de74246

2014-09-16 09:00:50:373 - debug: Waiting for device to be ready and to respond to shell commands (timeout = 5)
2014-09-16 09:00:50:373 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 wait-for-device

2014-09-16 09:00:50:397 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 shell “echo ‘ready’”

2014-09-16 09:00:50:437 - debug: Starting logcat capture

2014-09-16 09:00:50:478 - debug: Getting device API level

2014-09-16 09:00:50:478 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 shell “getprop ro.build.version.sdk”

2014-09-16 09:00:50:546 - debug: Device is at API Level 19

2014-09-16 09:00:50:546 - info: Device API level is: 19

2014-09-16 09:00:50:547 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 shell “getprop persist.sys.language”

2014-09-16 09:00:50:590 - debug: Current device language: en

2014-09-16 09:00:50:590 - debug: java -jar “/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-adb/jars/appium_apk_tools.jar” “stringsFromApk” “/Users/Airness/Projects/SMART/client/android/bin/SmartKapp.apk” “/tmp/com.company.app” en

2014-09-16 09:00:50:869 - debug: No strings.xml for language ‘en’, getting default strings.xml

2014-09-16 09:00:50:869 - debug: java -jar “/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-adb/jars/appium_apk_tools.jar” “stringsFromApk” “path/to/my/app.apk” “/tmp/com.company.app”

2014-09-16 09:00:51:155 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 push “/tmp/com.company.app/strings.json” /data/local/tmp

2014-09-16 09:00:51:187 - debug: Checking whether aapt is present

2014-09-16 09:00:51:187 - debug: Using aapt from /Applications/Android_SDK/sdk/build-tools/android-4.4W/aapt
2014-09-16 09:00:51:188 - debug: processFromManifest: “/Applications/Android_SDK/sdk/build-tools/android-4.4W/aapt” dump xmltree “path/to/my/app.apk” AndroidManifest.xml

2014-09-16 09:00:51:195 - debug: Set app process to: com.company.app
2014-09-16 09:00:51:195 - debug: Not uninstalling app since server not started with --full-reset
2014-09-16 09:00:51:196 - debug: Checking app cert for path/to/my/app.apk: java -jar “/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-adb/jars/verify.jar” “path/to/my/app.apk”

2014-09-16 09:00:51:566 - debug: App already signed.

2014-09-16 09:00:51:567 - debug: Zip-aligning path/to/my/app.apk
2014-09-16 09:00:51:567 - debug: Checking whether zipalign is present

2014-09-16 09:00:51:568 - debug: Using zipalign from /Applications/Android_SDK/sdk/build-tools/android-4.4W/zipalign
2014-09-16 09:00:51:568 - debug: zipAlignApk: “/Applications/Android_SDK/sdk/build-tools/android-4.4W/zipalign” -f 4 “path/to/my/app.apk” “/var/folders/zd/m3t4rw1x5w16l0q48tnxs21w0000gn/T/appium114816-871-16acuyl.tmp”

2014-09-16 09:00:51:614 - debug: MD5 for app is e7cd1a8448f728ed28ee7b87325f1ea3

2014-09-16 09:00:51:614 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 shell “ls /data/local/tmp/e7cd1a8448f728ed28ee7b87325f1ea3.apk”

2014-09-16 09:00:51:644 - debug: Getting install status for com.smarttech.kapp

2014-09-16 09:00:51:644 - debug: Getting device API level
2014-09-16 09:00:51:644 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 shell “getprop ro.build.version.sdk”

2014-09-16 09:00:51:676 - debug: Device is at API Level 19

2014-09-16 09:00:51:676 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 shell “pm list packages -3 com.company.app”

2014-09-16 09:00:52:385 - debug: App is installed

2014-09-16 09:00:52:385 - info: App is already installed, resetting app

2014-09-16 09:00:52:386 - debug: Running fast reset (stop and clear)
2014-09-16 09:00:52:386 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 shell “am force-stop com.company.app”

2014-09-16 09:00:52:987 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 shell “pm clear com.company.app”

2014-09-16 09:00:53:628 - debug: Forwarding system:4724 to device:4724

2014-09-16 09:00:53:629 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 forward tcp:4724 tcp:4724

2014-09-16 09:00:53:653 - debug: Pushing appium bootstrap to device…

2014-09-16 09:00:53:653 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 push “/Applications/Appium.app/Contents/Resources/node_modules/appium/build/android_bootstrap/AppiumBootstrap.jar” /data/local/tmp/

2014-09-16 09:00:53:687 - debug: Pushing settings apk to device…

2014-09-16 09:00:53:687 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 install “/Applications/Appium.app/Contents/Resources/node_modules/appium/build/settings_apk/settings_apk-debug.apk”

2014-09-16 09:00:54:463 - debug: Pushing unlock helper app to device…

2014-09-16 09:00:54:463 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 install “/Applications/Appium.app/Contents/Resources/node_modules/appium/build/unlock_apk/unlock_apk-debug.apk”

2014-09-16 09:00:55:155 - info: Starting App

2014-09-16 09:00:55:155 - debug: Attempting to kill all ‘uiautomator’ processes

2014-09-16 09:00:55:156 - debug: Getting all processes with ‘uiautomator’
2014-09-16 09:00:55:156 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 shell “ps ‘uiautomator’”

2014-09-16 09:00:55:200 - debug: No matching processes found

2014-09-16 09:00:55:200 - debug: Running bootstrap
2014-09-16 09:00:55:200 - debug: spawning: /Applications/Android_SDK/sdk/platform-tools/adb -s 079834470de74246 shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap

2014-09-16 09:00:55:355 - info: --> GET /wd/hub/status {}

2014-09-16 09:00:55:356 - debug: Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.2.1”,“revision”:“2a4b624a708e580709006b697dc4c9c4e3007863”}},“sessionId”:“1d0950be-5c6e-42c2-b154-e0e4b8b30743”}

2014-09-16 09:00:55:357 - info: <-- GET /wd/hub/status 200 1.876 ms - 155 {“status”:0,“value”:{“build”:{“version”:“1.2.1”,“revision”:“2a4b624a708e580709006b697dc4c9c4e3007863”}},“sessionId”:“1d0950be-5c6e-42c2-b154-e0e4b8b30743”}

2014-09-16 09:00:55:637 - debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1

2014-09-16 09:00:55:637 - debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
2014-09-16 09:00:55:638 - debug: [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap:
2014-09-16 09:00:55:638 - debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
2014-09-16 09:00:55:638 - debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
2014-09-16 09:00:55:638 - debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
2014-09-16 09:00:55:638 - debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1

2014-09-16 09:00:55:638 - debug: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 1

2014-09-16 09:00:55:665 - debug: [BOOTSTRAP] [debug] Socket opened on port 4724
2014-09-16 09:00:55:667 - debug: [BOOTSTRAP] [debug] Appium Socket Server Ready
2014-09-16 09:00:55:667 - debug: [BOOTSTRAP] [debug] Loading json…

2014-09-16 09:00:55:667 - debug: Waking up device if it’s not alive
2014-09-16 09:00:55:668 - debug: Pushing command to appium work queue: [“wake”,{}]
2014-09-16 09:00:55:679 - debug: [BOOTSTRAP] [debug] json loading complete.
2014-09-16 09:00:55:681 - debug: [BOOTSTRAP] [debug] Registered crash watchers.

2014-09-16 09:00:55:682 - debug: [BOOTSTRAP] [debug] Client connected
2014-09-16 09:00:55:682 - debug: [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“wake”,“params”:{}}
2014-09-16 09:00:55:683 - debug: [BOOTSTRAP] [debug] Got command of type ACTION
2014-09-16 09:00:55:683 - debug: [BOOTSTRAP] [debug] Got command action: wake
2014-09-16 09:00:55:684 - debug: [BOOTSTRAP] [debug] Returning result: {“value”:true,“status”:0}
2014-09-16 09:00:55:685 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 shell “dumpsys window”

2014-09-16 09:00:55:727 - debug: Writing dumpsys output to /Applications/Appium.app/Contents/Resources/node_modules/appium/.dumpsys.log

2014-09-16 09:00:55:728 - debug: Screen already unlocked, continuing.

2014-09-16 09:00:55:728 - debug: Pushing command to appium work queue: [“getDataDir”,{}]
2014-09-16 09:00:55:732 - debug: [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“getDataDir”,“params”:{}}
2014-09-16 09:00:55:732 - debug: [BOOTSTRAP] [debug] Got command of type ACTION
2014-09-16 09:00:55:732 - debug: [BOOTSTRAP] [debug] Got command action: getDataDir
2014-09-16 09:00:55:732 - debug: [BOOTSTRAP] [debug] Returning result: {“value”:"/data/local/tmp",“status”:0}
2014-09-16 09:00:55:733 - debug: dataDir set to: /data/local/tmp
2014-09-16 09:00:55:733 - debug: Getting device API level
2014-09-16 09:00:55:733 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 shell “getprop ro.build.version.sdk”

2014-09-16 09:00:55:760 - debug: Device is at API Level 19

2014-09-16 09:00:55:761 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 shell “am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n com.company.app/com.company.app.MainActivity”

2014-09-16 09:00:56:641 - debug: Waiting for pkg “com.company.app” and activity “com.company.app.TutorialActivity” to be focused

2014-09-16 09:00:56:644 - debug: Getting focused package and activity
2014-09-16 09:00:56:644 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 shell “dumpsys window windows”

2014-09-16 09:00:57:451 - debug: Getting focused package and activity

2014-09-16 09:00:57:451 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 shell “dumpsys window windows”

2014-09-16 09:00:57:514 - debug: Device launched! Ready for commands

2014-09-16 09:00:57:515 - debug: Setting command timeout to the default of 7200 secs
2014-09-16 09:00:57:516 - debug: Appium session started with sessionId 1d0950be-5c6e-42c2-b154-e0e4b8b30743

2014-09-16 09:00:57:518 - info: <-- POST /wd/hub/session 303 18453.761 ms - 9

2014-09-16 09:00:57:522 - 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”:{“deviceName”:“Nexus 5”,“takesScreenshot”:true,“udid”:“079834470de74246”,“app”:"/path/to/my/app.apk",“androidActivity”:“com.company.app.MainActivity”,“appWaitPackage”:“com.company.app”,“automationName”:“None”,“platformVersion”:“4.4”,“appPackage”:“com.company.app”,“platformName”:“Android”,“appWaitActivity”:“com.company.app.TutorialActivity”,“bundleid”:“None”},“deviceName”:“Nexus 5”,“udid”:“079834470de74246”,“app”:"/path/to/my/app.apk",“androidActivity”:“com.company.app.MainActivity”,“appWaitPackage”:“com.company.app”,“automationName”:“None”,“appPackage”:“com.company.app”,“platformName”:“Android”,“appWaitActivity”:“com.company.app.TutorialActivity”,“bundleid”:“None”},“sessionId”:“1d0950be-5c6e-42c2-b154-e0e4b8b30743”}

2014-09-16 09:00:57:521 - info: --> GET /wd/hub/session/1d0950be-5c6e-42c2-b154-e0e4b8b30743 {}
2014-09-16 09:00:57:523 - info: <-- GET /wd/hub/session/1d0950be-5c6e-42c2-b154-e0e4b8b30743 200 1.965 ms - 1108 {“status”:0,“value”:{“platform”:“LINUX”,“browserName”:“Android”,“platformVersion”:“4.4”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“deviceName”:“Nexus 5”,“takesScreenshot”:true,“udid”:“079834470de74246”,“app”:"/path/to/my.app.apk",“androidActivity”:“com.company.app.MainActivity”,“appWaitPackage”:“com.company.app”,“automationName”:“None”,“platformVersion”:“4.4”,“appPackage”:“com.company.app”,“platformName”:“Android”,“appWaitActivity”:“com.company.app.TutorialActivity”,“bundleid”:“None”},“deviceName”:“Nexus 5”,“udid”:“079834470de74246”,“app”:"/path/to/my/app.apk",“androidActivity”:“com.company.app.MainActivity”,“appWaitPackage”:“com.company.app”,“automationName”:“None”,“appPackage”:“com.company.app”,“platformName”:“Android”,“appWaitActivity”:“com.company.app.TutorialActivity”,“bundleid”:“None”},“sessionId”:“1d0950be-5c6e-42c2-b154-e0e4b8b30743”}

2014-09-16 09:00:57:535 - debug: Resetting app mid-session
2014-09-16 09:00:57:535 - debug: Running device specific reset
2014-09-16 09:00:57:535 - debug: Running fast reset (stop and clear)
2014-09-16 09:00:57:535 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 shell “am force-stop com.company.app”

2014-09-16 09:00:57:532 - info: --> POST /wd/hub/session/1d0950be-5c6e-42c2-b154-e0e4b8b30743/appium/app/reset {“sessionId”:“1d0950be-5c6e-42c2-b154-e0e4b8b30743”}

2014-09-16 09:00:58:136 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 shell “pm clear com.company.app”

2014-09-16 09:00:58:804 - debug: Waiting for pkg “com.company.app” and activity “com.company.app.TutorialActivity” to not be focused

2014-09-16 09:00:58:805 - debug: Getting focused package and activity
2014-09-16 09:00:58:805 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 shell “dumpsys window windows”

2014-09-16 09:00:58:859 - debug: Getting device API level

2014-09-16 09:00:58:859 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 shell “getprop ro.build.version.sdk”

2014-09-16 09:00:58:890 - debug: Device is at API Level 19

2014-09-16 09:00:58:890 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 shell “am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n com.company.app/com.company.app.MainActivity”

2014-09-16 09:00:59:791 - debug: Waiting for pkg “com.company.app” and activity “com.company.app.TutorialActivity” to be focused

2014-09-16 09:00:59:792 - debug: Getting focused package and activity
2014-09-16 09:00:59:792 - debug: executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 shell “dumpsys window windows”

2014-09-16 09:00:59:861 - debug: Responding to client with success: {“status”:0,“value”:null,“sessionId”:“1d0950be-5c6e-42c2-b154-e0e4b8b30743”}

2014-09-16 09:00:59:863 - info: <-- POST /wd/hub/session/1d0950be-5c6e-42c2-b154-e0e4b8b30743/appium/app/reset 200 2331.075 ms - 76 {“status”:0,“value”:null,“sessionId”:“1d0950be-5c6e-42c2-b154-e0e4b8b30743”}

2014-09-16 09:00:59:872 - debug: Pushing command to appium work queue: [“dumpWindowHierarchy”]

2014-09-16 09:00:59:870 - info: --> GET /wd/hub/session/1d0950be-5c6e-42c2-b154-e0e4b8b30743/source {}

2014-09-16 09:00:59:874 - debug: [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“dumpWindowHierarchy”,“params”:{}}
2014-09-16 09:00:59:875 - debug: [BOOTSTRAP] [debug] Got command of type ACTION
2014-09-16 09:00:59:875 - debug: [BOOTSTRAP] [debug] Got command action: dumpWindowHierarchy
2014-09-16 09:00:59:891 - debug: [BOOTSTRAP] [debug] Returning result: {“value”:false,“status”:0}
2014-09-16 09:00:59:892 - debug: transferPageSourceXML command: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 pull /data/local/tmp/local/tmp/dump.xml “/var/folders/zd/m3t4rw1x5w16l0q48tnxs21w0000gn/T/114816-871-19esqvj.xml”
2014-09-16 09:00:59:925 - error: remote object ‘/data/local/tmp/local/tmp/dump.xml’ does not exist
2014-09-16 09:00:59:927 - info: <-- GET /wd/hub/session/1d0950be-5c6e-42c2-b154-e0e4b8b30743/source 500 56.919 ms - 392

2014-09-16 09:00:59:926 - debug: Responding to client with error: {“status”:13,“value”:{“message”:“An unknown server-side error occurred while processing the command. (Original error: Command failed: remote object ‘/data/local/tmp/local/tmp/dump.xml’ does not exist\n)”,“killed”:false,“code”:1,“signal”:null,“origValue”:“Command failed: remote object ‘/data/local/tmp/local/tmp/dump.xml’ does not exist\n”},“sessionId”:“1d0950be-5c6e-42c2-b154-e0e4b8b30743”}
2014-09-16 09:00:59:933 - debug: Resetting app mid-session
2014-09-16 09:00:59:933 - debug: Running device specific reset
2014-09-16 09:00:59:933 - debug: Running fast reset (stop and clear)

Appium v1.2.2 Returns the next error

info: [debug] Getting focused package and activity
info: [debug] executing: “/Applications/Android_SDK/sdk/platform-tools/adb” -s 079834470de74246 shell “dumpsys window windows”

info: [debug] Responding to client with success: {“status”:0,“value”:null,“sessionId”:“f8cc46f6-9fd5-4a3d-8de6-045b1458d6b2”}

info: <-- POST /wd/hub/session/f8cc46f6-9fd5-4a3d-8de6-045b1458d6b2/appium/app/reset 200 2473.192 ms - 76 {“status”:0,“value”:null,“sessionId”:“f8cc46f6-9fd5-4a3d-8de6-045b1458d6b2”}

info: --> GET /wd/hub/session/f8cc46f6-9fd5-4a3d-8de6-045b1458d6b2/source {}
info: [debug] Pushing command to appium work queue: [“source”,{}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“source”,“params”:{}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: source
info: [debug] [UIAUTOMATOR STDOUT] java.io.FileNotFoundException: /data/local/tmp/local/tmp/dump.xml: open failed: ENOENT (No such file or directory)

info: [debug] [UIAUTOMATOR STDOUT] at libcore.io.IoBridge.open(IoBridge.java:409)
info: [debug] [UIAUTOMATOR STDOUT] at java.io.FileInputStream.(FileInputStream.java:78)
info: [debug] [UIAUTOMATOR STDOUT] at java.io.FileReader.(FileReader.java:42)
info: [debug] [UIAUTOMATOR STDOUT] at io.appium.android.bootstrap.utils.XMLHierarchy.getRawXMLHierarchy(XMLHierarchy.java:91)
info: [debug] [UIAUTOMATOR STDOUT] at io.appium.android.bootstrap.utils.XMLHierarchy.getFormattedXMLDoc(XMLHierarchy.java:99)
info: [debug] [UIAUTOMATOR STDOUT] at io.appium.android.bootstrap.handler.Source.execute(Source.java:25)
info: [debug] [UIAUTOMATOR STDOUT] at
info: [debug] [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.AndroidCommandExecutor.execute(AndroidCommandExecutor.java:63)
info: [debug] [UIAUTOMATOR STDOUT] at io.appium.android.bootstrap.SocketServer.runCommand(SocketServer.java:167)
info: [debug] [UIAUTOMATOR STDOUT] at io.appium.android.bootstrap.SocketServer.handleClientData(SocketServer.java:88)
info: [debug] [UIAUTOMATOR STDOUT] at io.appium.android.bootstrap.SocketServer.listenForever(SocketServer.java:132)
info: [debug] [UIAUTOMATOR STDOUT] at io.appium.android.bootstrap.Bootstrap.testRunServer(Bootstrap.java:16)
info: [debug] [UIAUTOMATOR STDOUT] at java.lang.reflect.Method.invokeNative(Native Method)
info: [debug] [UIAUTOMATOR STDOUT] at java.lang.reflect.Method.invoke(Method.java:515)
info: [debug] [UIAUTOMATOR STDOUT] at junit.framework.TestCase.runTest(TestCase.java:168)
info: [debug] [UIAUTOMATOR STDOUT] at junit.framework.TestCase.runBare(TestCase.java:134)
info: [debug] [UIAUTOMATOR STDOUT] at junit.framework.TestResult$1.protect(TestResult.java:115)
info: [debug] [UIAUTOMATOR STDOUT] at junit.framework.TestResult.runProtected(TestResult.java:133)
info: [debug] [UIAUTOMATOR STDOUT] at junit.framework.TestResult.run(TestResult.java:118)
info: [debug] [UIAUTOMATOR STDOUT] at junit.framework.TestCase.run(TestCase.java:124)
info: [debug] [UIAUTOMATOR STDOUT] at com.android.uiautomator.testrunner.UiAutomatorTestRunner.start(UiAutomatorTestRunner.java:160)
info: [debug] [UIAUTOMATOR STDOUT] at
info: [debug] [UIAUTOMATOR STDOUT] com.android.uiautomator.testrunner.UiAutomatorTestRunner.run(UiAutomatorTestRunner.java:96)
info: [debug] [UIAUTOMATOR STDOUT] at com.android.commands.uiautomator.RunTestCommand.run(RunTestCommand.java:91)
info: [debug] [UIAUTOMATOR STDOUT] at com.android.commands.uiautomator.Launcher.main(Launcher.java:83)
info: [debug] [UIAUTOMATOR STDOUT] at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
info: [debug] [UIAUTOMATOR STDOUT] at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:243)
info: [debug] [UIAUTOMATOR STDOUT] at dalvik.system.NativeStart.main(Native Method)
info: [debug] [UIAUTOMATOR STDOUT] Caused by:
info: [debug] [UIAUTOMATOR STDOUT] libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
info: [debug] [UIAUTOMATOR STDOUT] at
info: [debug] [UIAUTOMATOR STDOUT] libcore.io.Posix.open(Native Method)
info: [debug] [UIAUTOMATOR STDOUT] at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
info: [debug] [UIAUTOMATOR STDOUT] at libcore.io.IoBridge.open(IoBridge.java:393)
info: [debug] [UIAUTOMATOR STDOUT] …
info: [debug] [UIAUTOMATOR STDOUT] 25 more
info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:“Failed to Du
mp Window Hierarchy”,“status”:13}
info: [debug] Responding to client with error: {“status”:13,“value”:{“message”:“An unknown server-side error occurred while processing the command.”,“origValue”:“Failed to Dump Window Hierarchy”},“sessionId”:“f8cc46f6-9fd5-4a3d-8de6-045b1458d6b2”}
info: <-- GET /wd/hub/session/f8cc46f6-9fd5-4a3d-8de6-045b1458d6b2/source 500 17.821 ms - 200
info: --> POST /wd/hub/session/f8cc46f6-9fd5-4a3d-8de6-045b1458d6b2/appium/app/reset {“sessionId”:“f8cc46f6-9fd5-4a3d-8de6-045b1458d6b2”}
info: [debug] Resetting app mid-session
info: [debug] Running device specific reset
info: [debug] Running fast reset (stop and clear)

Still not solved by myself. Could anyone help me with this issue?

Experience the same issue. Any updates on this?

I’m also seeing the same issue.
What to do?

Encounter same issue on 1.3.4. After upgrade to 1.3.5 it works.