A full log or error:
info: Client User-Agent string: Apache-HttpClient/4.4.1 (Java/1.7.0)
info: [debug] Didn't get app but did get Android package, will attempt to launch it on the device
info: [debug] Creating new appium session 0f7675d9-bf5c-40a2-bfc7-997cb4533996
info: Starting android appium
info: [debug] Getting Java version
info: Java version is: 1.7.0
info: [debug] Checking whether adb is present
info: [debug] Using adb from /home/kacinauskasl/SDK/android-sdk-linux/platform-tools/adb
warn: No app capability, can't parse package/activity
info: [debug] Using fast reset? true
info: [debug] Preparing device for session
info: [debug] Not checking whether app is present since we are assuming it's already on the device
info: Retrieving device
info: [debug] Trying to find a connected android device
info: [debug] Getting connected devices...
info: [debug] executing cmd: /home/kacinauskasl/SDK/android-sdk-linux/platform-tools/adb devices
info: [debug] 1 device(s) connected
info: Found device emulator-5554
info: [debug] Setting device id to emulator-5554
info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)
info: [debug] executing cmd: /home/kacinauskasl/SDK/android-sdk-linux/platform-tools/adb -s emulator-5554 wait-for-device
info: [debug] executing cmd: /home/kacinauskasl/SDK/android-sdk-linux/platform-tools/adb -s emulator-5554 shell "echo 'ready'"
info: [debug] Starting logcat capture
info: [debug] Getting device API level
info: [debug] executing cmd: /home/kacinauskasl/SDK/android-sdk-linux/platform-tools/adb -s emulator-5554 shell "getprop ro.build.version.sdk"
info: [debug] Device is at API Level 21
info: Device API level is: 21
info: [debug] Extracting strings for language: default
info: [debug] Apk doesn't exist locally
info: [debug] Could not get strings, but it looks like we had an old strings file anyway, so ignoring
info: [debug] executing cmd: /home/kacinauskasl/SDK/android-sdk-linux/platform-tools/adb -s emulator-5554 shell "rm -rf /data/local/tmp/strings.json"
info: [debug] Not uninstalling app since server not started with --full-reset
info: [debug] Skipping install since we launched with a package instead of an app path
info: [debug] Forwarding system:4724 to device:4724
info: [debug] executing cmd: /home/kacinauskasl/SDK/android-sdk-linux/platform-tools/adb -s emulator-5554 forward tcp:4724 tcp:4724
info: [debug] Pushing appium bootstrap to device...
info: [debug] executing cmd: /home/kacinauskasl/SDK/android-sdk-linux/platform-tools/adb -s emulator-5554 push "/home/kacinauskasl/.nvm/versions/node/v0.12.5/lib/node_modules/appium/build/android_bootstrap/AppiumBootstrap.jar" /data/local/tmp/
info: [debug] Pushing settings apk to device...
info: [debug] executing cmd: /home/kacinauskasl/SDK/android-sdk-linux/platform-tools/adb -s emulator-5554 install "/home/kacinauskasl/.nvm/versions/node/v0.12.5/lib/node_modules/appium/build/settings_apk/settings_apk-debug.apk"
info: [debug] Pushing unlock helper app to device...
info: [debug] executing cmd: /home/kacinauskasl/SDK/android-sdk-linux/platform-tools/adb -s emulator-5554 install "/home/kacinauskasl/.nvm/versions/node/v0.12.5/lib/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 cmd: /home/kacinauskasl/SDK/android-sdk-linux/platform-tools/adb -s emulator-5554 shell "ps 'uiautomator'"
info: [debug] No matching processes found
info: [debug] Running bootstrap
info: [debug] spawning: /home/kacinauskasl/SDK/android-sdk-linux/platform-tools/adb -s emulator-5554 shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap -e pkg My_App-e disableAndroidWatchers false
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] [BOOTSTRAP] [debug] Registered crash watchers.
info: [debug] Waking up device if it's not alive
info: [debug] Pushing command to appium work queue: ["wake",{}]
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: {"status":0,"value":true}
info: [debug] executing cmd: /home/kacinauskasl/SDK/android-sdk-linux/platform-tools/adb -s emulator-5554 shell "dumpsys window"
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] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":"\/data"}
info: [debug] dataDir set to: /data
info: [debug] Pushing command to appium work queue: ["compressedLayoutHierarchy",{"compressLayout":false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"compressedLayoutHierarchy","params":{"compressLayout":false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: compressedLayoutHierarchy
info: [debug] Getting device API level
info: [debug] executing cmd: /home/kacinauskasl/SDK/android-sdk-linux/platform-tools/adb -s emulator-5554 shell "getprop ro.build.version.sdk"
info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":false}
info: [debug] Device is at API Level 21
info: [debug] executing cmd: /home/kacinauskasl/SDK/android-sdk-linux/platform-tools/adb -s emulator-5554 shell "am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n My_App"
info: [debug] We tried to start an activity that doesn't exist, retrying with . prepended to activity
info: [debug] Getting device API level
info: [debug] executing cmd: /home/kacinauskasl/SDK/android-sdk-linux/platform-tools/adb -s emulator-5554 shell "getprop ro.build.version.sdk"
info: [debug] Device is at API Level 21
info: [debug] executing cmd: /home/kacinauskasl/SDK/android-sdk-linux/platform-tools/adb -s emulator-5554 shell "am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n My_App"
info: [debug] Waiting for pkg "My_App" and activity "My_App" to be focused
info: [debug] Getting focused package and activity
info: [debug] executing cmd: /home/kacinauskasl/SDK/android-sdk-linux/platform-tools/adb -s emulator-5554 shell "dumpsys window windows"
info: [debug] executing cmd: /home/kacinauskasl/SDK/android-sdk-linux/platform-tools/adb -s emulator-5554 shell "getprop ro.build.version.release"
info: [debug] Device is at release version 5.0.2
info: [debug] Device launched! Ready for commands
info: [debug] Setting command timeout to 60 secs
info: [debug] Appium session started with sessionId 0f7675d9-bf5c-40a2-bfc7-997cb4533996
info: <-- POST /wd/hub/session 303 4677.568 ms - 74
info: --> GET /wd/hub/session/0f7675d9-bf5c-40a2-bfc7-997cb4533996 {}
info: [debug] Responding to client with success: {"status":0,"value":{"platform":"LINUX","browserName":"Android","platformVersion":"5.0.2","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"automationName":"appium","newCommandTimeout":60,"platformVersion":"4.4.2","deviceName":"Galaxy","platformName":"Android","appActivity":"My_App","appPackage":"My_App"},"automationName":"appium","newCommandTimeout":60,"deviceName":"emulator-5554","platformName":"Android","appActivity":"My_App","appPackage":"My_App"},"sessionId":"0f7675d9-bf5c-40a2-bfc7-997cb4533996"}
info: <-- GET /wd/hub/session/0f7675d9-bf5c-40a2-bfc7-997cb4533996 200 6.193 ms - 712 {"status":0,"value":{"platform":"LINUX","browserName":"Android","platformVersion":"5.0.2","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"automationName":"appium","newCommandTimeout":60,"platformVersion":"4.4.2","deviceName":"Galaxy","platformName":"Android","appActivity":"My_App","appPackage":"My_App"},"automationName":"appium","newCommandTimeout":60,"deviceName":"emulator-5554","platformName":"Android","appActivity":"My_App","appPackage":"My_App"},"sessionId":"0f7675d9-bf5c-40a2-bfc7-997cb4533996"}
info: --> GET /wd/hub/session/0f7675d9-bf5c-40a2-bfc7-997cb4533996/contexts {}
info: [debug] Getting a list of available webviews
info: [debug] executing cmd: /home/kacinauskasl/SDK/android-sdk-linux/platform-tools/adb -s emulator-5554 shell "cat /proc/net/unix"
info: [debug] WEBVIEW_2585 mapped to pid 2585
info: [debug] Getting process name for webview
info: [debug] executing cmd: /home/kacinauskasl/SDK/android-sdk-linux/platform-tools/adb -s emulator-5554 shell "ps"
info: [debug] Parsed pid: 2585 pkg: My_App
info: [debug] from: u0_a58,2585,937,806904,127700,ffffffff,b76a18b5,S,My_App
info: [debug] returning process name: My_App
info: [debug] Available contexts:
info: [debug] ["WEBVIEW_My_App"]
info: [debug] Available contexts: NATIVE_APP,WEBVIEW_My_App
info: [debug] Responding to client with success: {"status":0,"value":["NATIVE_APP","WEBVIEW_My_App"],"sessionId":"0f7675d9-bf5c-40a2-bfc7-997cb4533996"}
info: <-- GET /wd/hub/session/0f7675d9-bf5c-40a2-bfc7-997cb4533996/contexts 200 108.904 ms - 122 {"status":0,"value":["NATIVE_APP","WEBVIEW_My_App"],"sessionId":"0f7675d9-bf5c-40a2-bfc7-997cb4533996"}
info: --> POST /wd/hub/session/0f7675d9-bf5c-40a2-bfc7-997cb4533996/context {"name":"WEBVIEW_My_App"}
info: [debug] Getting a list of available webviews
info: [debug] executing cmd: /home/kacinauskasl/SDK/android-sdk-linux/platform-tools/adb -s emulator-5554 shell "cat /proc/net/unix"
info: [debug] WEBVIEW_2585 mapped to pid 2585
info: [debug] Getting process name for webview
info: [debug] executing cmd: /home/kacinauskasl/SDK/android-sdk-linux/platform-tools/adb -s emulator-5554 shell "ps"
info: [debug] Parsed pid: 2585 pkg: My_App
info: [debug] from: u0_a58,2585,937,806904,127736,ffffffff,b76a18b5,S,My_App
info: [debug] returning process name:My_App
info: [debug] Available contexts: NATIVE_APP,WEBVIEW_My_App
info: [debug] ["WEBVIEW_My_App"]
info: [debug] Available contexts: NATIVE_APP,WEBVIEW_My_App
info: [debug] Connecting to chrome-backed webview
info: [debug] Responding to client with error: {"status":13,"value":{"message":"An unknown server-side error occurred while processing the command. (Original error: Cannot read property 'stop' of null)","origValue":"Cannot read property 'stop' of null"},"sessionId":"0f7675d9-bf5c-40a2-bfc7-997cb4533996"}
info: <-- POST /wd/hub/session/0f7675d9-bf5c-40a2-bfc7-997cb4533996/context 500 191.945 ms - 258
info: [debug] Didn't get a new command in 60 secs, shutting down..
.