[info] [HTTP] Waiting until the server is closed [info] [HTTP] Received server close event [info] [Appium] Welcome to Appium v1.20.2 [info] [Appium] Non-default server args: [info] [Appium] address: localhost [info] [Appium] relaxedSecurityEnabled: true [info] [Appium] allowInsecure: { [info] [Appium] } [info] [Appium] denyInsecure: { [info] [Appium] } [info] [Appium] Appium REST http interface listener started on localhost:4723[info] [HTTP] --> POST /wd/hub/session [info] [HTTP] {"desiredCapabilities":{"platformName":"Android","platformVersion":"11.0","deviceName":"emulator-5554","newCommandTimeout":300,"shouldUseCompactResponses":false,"elementResponseAttributes":"rect","autoWebview":false,"automationName":"UiAutomator2","nativeWebScreenshot":true,"app":"https://uipathtestappsto.blob.core.windows.net/testapps/TheApp.apk"},"capabilities":{"firstMatch":[{"platformName":"Android"}]}} [debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","platformVersion":"11.0","deviceName":"emulator-5554","newCommandTimeout":300,"shouldUseCompactResponses":false,"elementResponseAttributes":"rect","autoWebview":false,"automationName":"UiAutomator2","nativeWebScreenshot":true,"app":"https://uipathtestappsto.blob.core.windows.net/testapps/TheApp.apk"},null,{"firstMatch":[{"platformName":"Android"}]}] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1618836217340 (18:13:37 GMT+0530 (India Standard Time)) [info] [Appium] The following capabilities were provided in the JSONWP desired capabilities that are missing in W3C capabilities: ["platformVersion","deviceName","newCommandTimeout","shouldUseCompactResponses","elementResponseAttributes","autoWebview","automationName","nativeWebScreenshot","app"] [info] [Appium] Trying to fix W3C capabilities by merging them with JSONWP caps [warn] [BaseDriver] The following capabilities are not standard capabilities and should have an extension prefix: [warn] [BaseDriver] platformVersion [warn] [BaseDriver] deviceName [warn] [BaseDriver] newCommandTimeout [warn] [BaseDriver] shouldUseCompactResponses [warn] [BaseDriver] elementResponseAttributes [warn] [BaseDriver] autoWebview [warn] [BaseDriver] automationName [warn] [BaseDriver] nativeWebScreenshot [warn] [BaseDriver] app [info] [Appium] Appium v1.20.2 creating new AndroidUiautomator2Driver (v1.61.2) session [info] [Appium] Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure [debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided [debug] [BaseDriver] Creating session with W3C capabilities: { [debug] [BaseDriver] "alwaysMatch": { [debug] [BaseDriver] "appium:platformVersion": "11.0", [debug] [BaseDriver] "appium:deviceName": "emulator-5554", [debug] [BaseDriver] "appium:newCommandTimeout": 300, [debug] [BaseDriver] "appium:shouldUseCompactResponses": false, [debug] [BaseDriver] "appium:elementResponseAttributes": "rect", [debug] [BaseDriver] "appium:autoWebview": false, [debug] [BaseDriver] "appium:automationName": "UiAutomator2", [debug] [BaseDriver] "appium:nativeWebScreenshot": true, [debug] [BaseDriver] "appium:app": "https://uipathtestappsto.blob.core.windows.net/testapps/TheApp.apk", [debug] [BaseDriver] "platformName": "Android" [debug] [BaseDriver] }, [debug] [BaseDriver] "firstMatch": [ [debug] [BaseDriver] {} [debug] [BaseDriver] ] [debug] [BaseDriver] } [warn] [BaseDriver] The following capabilities were provided, but are not recognized by Appium: [warn] [BaseDriver] shouldUseCompactResponses [warn] [BaseDriver] elementResponseAttributes [info] [BaseDriver] Session created with session id: c005050a-3ff4-4b32-bb1d-ade9a65c1b18 [info] [BaseDriver] Using downloadable app 'https://uipathtestappsto.blob.core.windows.net/testapps/TheApp.apk'[debug] [BaseDriver] Last-Modified: Mon, 27 Jan 2020 15:13:48 GMT [debug] [BaseDriver] Cache-Control: undefined [debug] [BaseDriver] The application at https://uipathtestappsto.blob.core.windows.net/testapps/TheApp.apk has not been modified since Mon Jan 27 2020 20:43:48 GMT+0530 (India Standard Time) [info] [BaseDriver] Reusing previously downloaded application at 'C:\Users\RRAYVE~1\AppData\Local\Temp\2021319-15396-j5vfsl.rorht\TheApp.apk' [debug] [UiAutomator2] Checking whether app is actually present [info] [ADB] Using 'adb.exe' from 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe' [debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 start-server'[info] [AndroidDriver] Retrieving device list [debug] [ADB] Trying to find a connected android device [debug] [ADB] Getting connected devices[debug] [ADB] Connected devices: [{"udid":"emulator-5554","state":"device"}] [info] [AndroidDriver] Looking for a device with Android '11.0.0' [debug] [ADB] Setting device id to emulator-5554 [info] [ADB] Getting device platform version [debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.release'[debug] [ADB] Current device property 'ro.build.version.release': 11 [info] [AndroidDriver] Using device: emulator-5554 [info] [ADB] Using 'adb.exe' from 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe' [debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 start-server' [debug] [ADB] Setting device id to emulator-5554 [debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk'[debug] [ADB] Current device property 'ro.build.version.sdk': 30 [info] [ADB] Getting device platform version [debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.release'[debug] [ADB] Current device property 'ro.build.version.release': 11 [debug] [ADB] Device API level: 30 [info] [UiAutomator2] Relaxing hidden api policy [debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1''[debug] [AndroidDriver] Parsing package and activity from app manifest [info] [ADB] Package name: 'io.cloudgrey.the_app' [info] [ADB] Main activity name: 'io.cloudgrey.the_app.MainActivity' [debug] [AndroidDriver] Parsed package and activity are: io.cloudgrey.the_app/io.cloudgrey.the_app.MainActivity [debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 wait-for-device'[debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell echo ping'[debug] [AndroidDriver] Pushing settings apk to device... [debug] [ADB] Getting install status for io.appium.settings [debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings'[debug] [ADB] 'io.appium.settings' is installed [debug] [ADB] Getting package info for 'io.appium.settings' [debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings'[debug] [ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('3.2.1' >= '3.2.1') [debug] [ADB] There is no need to install/upgrade 'C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk' [debug] [ADB] Getting IDs of all 'io.appium.settings' processes [debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell 'pgrep --help; echo $?''[debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)'[debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions. [debug] [Logcat] Starting logs capture with command: C:\\Users\\rrayverma\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 logcat -v threadtime[debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to local port 8200 [debug] [ADB] Forwarding system: 8200 to device: 6790 [debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 forward tcp:8200 tcp:6790'[info] [UiAutomator2] Server package at 'C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.17.4.apk' is not writeable. Will copy it into the temporary location at 'C:\Users\RRAYVE~1\AppData\Local\Temp\2021319-15396-bi3q7.mu6xtm' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup. [info] [UiAutomator2] Server package at 'C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' is not writeable. Will copy it into the temporary location at 'C:\Users\RRAYVE~1\AppData\Local\Temp\2021319-15396-bi3q7.mu6xtm' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup. [debug] [ADB] Getting install status for io.appium.uiautomator2.server [debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server'[debug] [ADB] 'io.appium.uiautomator2.server' is installed [debug] [ADB] Getting package info for 'io.appium.uiautomator2.server' [debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server'[debug] [ADB] The version name of the installed 'io.appium.uiautomator2.server' is greater or equal to the application version name ('4.17.4' >= '4.17.4') [debug] [UiAutomator2] io.appium.uiautomator2.server installation state: sameVersionInstalled [debug] [ADB] Checking app cert for C:\Users\RRAYVE~1\AppData\Local\Temp\2021319-15396-bi3q7.mu6xtm\appium-uiautomator2-server-v4.17.4.apk [info] [ADB] Using 'apksigner.jar' from 'C:\Users\rrayverma\AppData\Local\Android\Sdk\build-tools\30.0.3\lib\apksigner.jar' [debug] [ADB] Starting apksigner: 'C:\\Program Files\\Java\\jdk1.8.0_251\\bin\\java.exe' -Xmx1024M -Xss1m -jar C:\\Users\\rrayverma\\AppData\\Local\\Android\\Sdk\\build-tools\\30.0.3\\lib\\apksigner.jar verify --print-certs C:\\Users\\RRAYVE~1\\AppData\\Local\\Temp\\2021319-15396-bi3q7.mu6xtm\\appium-uiautomator2-server-v4.17.4.apk[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [ADB] [debug] [ADB] sha256 hash did match for 'appium-uiautomator2-server-v4.17.4.apk' [info] [ADB] 'C:\Users\RRAYVE~1\AppData\Local\Temp\2021319-15396-bi3q7.mu6xtm\appium-uiautomator2-server-v4.17.4.apk' is signed with the default certificate [debug] [ADB] Getting install status for io.appium.uiautomator2.server.test [debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server.test'[debug] [ADB] 'io.appium.uiautomator2.server.test' is installed [debug] [ADB] Checking app cert for C:\Users\RRAYVE~1\AppData\Local\Temp\2021319-15396-bi3q7.mu6xtm\appium-uiautomator2-server-debug-androidTest.apk [debug] [ADB] Starting apksigner: 'C:\\Program Files\\Java\\jdk1.8.0_251\\bin\\java.exe' -Xmx1024M -Xss1m -jar C:\\Users\\rrayverma\\AppData\\Local\\Android\\Sdk\\build-tools\\30.0.3\\lib\\apksigner.jar verify --print-certs C:\\Users\\RRAYVE~1\\AppData\\Local\\Temp\\2021319-15396-bi3q7.mu6xtm\\appium-uiautomator2-server-debug-androidTest.apk[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [ADB] [debug] [ADB] sha256 hash did match for 'appium-uiautomator2-server-debug-androidTest.apk' [info] [ADB] 'C:\Users\RRAYVE~1\AppData\Local\Temp\2021319-15396-bi3q7.mu6xtm\appium-uiautomator2-server-debug-androidTest.apk' is signed with the default certificate [info] [UiAutomator2] Server packages are not going to be (re)installed [debug] [UiAutomator2] Waiting up to 30000ms for services to be available [debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pm list instrumentation'[debug] [UiAutomator2] Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available [info] [ADB] Adding packages ["io.appium.settings","io.appium.uiautomator2.server","io.appium.uiautomator2.server.test"] to Doze whitelist [debug] [ADB] Got the following command chunks to execute: [["dumpsys","deviceidle","whitelist","+io.appium.settings",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server.test",";"]] [debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys deviceidle whitelist +io.appium.settings ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server.test ;'[debug] [ADB] Checking app cert for C:\Users\RRAYVE~1\AppData\Local\Temp\2021319-15396-j5vfsl.rorht\TheApp.apk [debug] [ADB] Starting apksigner: 'C:\\Program Files\\Java\\jdk1.8.0_251\\bin\\java.exe' -Xmx1024M -Xss1m -jar C:\\Users\\rrayverma\\AppData\\Local\\Android\\Sdk\\build-tools\\30.0.3\\lib\\apksigner.jar verify --print-certs C:\\Users\\RRAYVE~1\\AppData\\Local\\Temp\\2021319-15396-j5vfsl.rorht\\TheApp.apk[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81 [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87 [debug] [ADB] [debug] [ADB] sha256 hash did match for 'TheApp.apk' [info] [ADB] 'C:\Users\RRAYVE~1\AppData\Local\Temp\2021319-15396-j5vfsl.rorht\TheApp.apk' is signed with the default certificate [debug] [ADB] Getting install status for io.cloudgrey.the_app [debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package io.cloudgrey.the_app'[debug] [ADB] 'io.cloudgrey.the_app' is installed [debug] [ADB] Getting package info for 'io.cloudgrey.the_app' [debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package io.cloudgrey.the_app'[debug] [ADB] The version name of the installed 'io.cloudgrey.the_app' is greater or equal to the application version name ('1.10.0' >= '1.10.0') [debug] [ADB] There is no need to install/upgrade 'C:\Users\RRAYVE~1\AppData\Local\Temp\2021319-15396-j5vfsl.rorht\TheApp.apk' [info] [AndroidDriver] Performing fast reset on 'io.cloudgrey.the_app' [debug] [ADB] Getting install status for io.cloudgrey.the_app [debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package io.cloudgrey.the_app'[debug] [ADB] 'io.cloudgrey.the_app' is installed [debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am force-stop io.cloudgrey.the_app'[debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pm clear io.cloudgrey.the_app'[debug] [AndroidDriver] Performed fast reset on the installed 'io.cloudgrey.the_app' application (stop and clear) [debug] [UiAutomator2] Performing shallow cleanup of automation leftovers [debug] [UiAutomator2] No obsolete sessions have been detected [debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am force-stop io.appium.uiautomator2.server.test'[info] [UiAutomator2] Starting UIAutomator2 server 4.17.4 [info] [UiAutomator2] Using UIAutomator2 server from 'C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v4.17.4.apk' and test from 'C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' [info] [UiAutomator2] Waiting up to 30000ms for UiAutomator2 to be online... [debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","emulator-5554","shell","am","instrument","-w","io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner"] [debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body [debug] [WD Proxy] Got response with status 200: {"sessionId":"None","value":{"message":"UiAutomator2 Server is ready to accept commands","ready":true}} [debug] [UiAutomator2] The initialization of the instrumentation process took 36ms [debug] [WD Proxy] Matched '/session' to command name 'createSession' [debug] [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8200/wd/hub/session] with body: {"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","platformVersion":"11.0","deviceName":"emulator-5554","newCommandTimeout":300,"shouldUseCompactResponses":false,"elementResponseAttributes":"rect","autoWebview":false,"automationName":"UiAutomator2","nativeWebScreenshot":true,"app":"https://uipathtestappsto.blob.core.windows.net/testapps/TheApp.apk"},"platformName":"Android","platformVersion":"11.0","deviceName":"emulator-5554","newCommandTimeout":300,"shouldUseCompactResponses":false,"elementResponseAttributes":"rect","autoWebview":false,"automationName":"UiAutomator2","nativeWebScreenshot":true,"app":"https://uipathtestappsto.blob.core.windows.net/testapps/TheApp.apk","deviceUDID":"emulator-5554","appPackage":"io.cloudgrey.the_app"}],"alwaysMatch":{}}} [info] [WD Proxy] Got response with status 500: {"sessionId":null,"value":{"error":"session not created","message":"io.appium.uiautomator2.common.exceptions.NoSuchDriverException: A session is either terminated or not started","stacktrace":"io.appium.uiautomator2.common.exceptions.SessionNotCreatedException: io.appium.uiautomator2.common.exceptions.NoSuchDriverException: A session is either terminated or not started\n\tat io.appium.uiautomator2.handler.NewSession.safeHandle(NewSession.java:57)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:41)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:261)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:255)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:68)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerCont... [debug] [W3C] Matched W3C error code 'session not created' to SessionNotCreatedError [debug] [UiAutomator2] Deleting UiAutomator2 session [debug] [UiAutomator2] Deleting UiAutomator2 server session [debug] [WD Proxy] Matched '/' to command name 'deleteSession' [warn] [UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: An unknown server-side error occurred while processing the command. Original error: Trying to proxy a session command without session id [debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am force-stop io.cloudgrey.the_app'[debug] [Logcat] Stopping logcat capture [debug] [ADB] Removing forwarded port socket connection: 8200 [debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 forward --remove tcp:8200'[info] [UiAutomator2] Restoring hidden api policy to the device default configuration [debug] [ADB] Running 'C:\Users\rrayverma\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy''[debug] [BaseDriver] Event 'newSessionStarted' logged at 1618836230693 (18:13:50 GMT+0530 (India Standard Time)) [debug] [W3C] Encountered internal error running command: A new session could not be created. Details: io.appium.uiautomator2.common.exceptions.NoSuchDriverException: A session is either terminated or not started [debug] [W3C] io.appium.uiautomator2.common.exceptions.SessionNotCreatedException: io.appium.uiautomator2.common.exceptions.NoSuchDriverException: A session is either terminated or not started [debug] [W3C] at io.appium.uiautomator2.handler.NewSession.safeHandle(NewSession.java:57) [debug] [W3C] at io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:41) [debug] [W3C] at io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:261) [debug] [W3C] at io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:255) [debug] [W3C] at io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:68) [debug] [W3C] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366) [debug] [W3C] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352) [debug] [W3C] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345) [debug] [W3C] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102) [debug] [W3C] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366) [debug] [W3C] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352) [debug] [W3C] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345) [debug] [W3C] at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:435) [debug] [W3C] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293) [debug] [W3C] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267) [debug] [W3C] at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:250) [debug] [W3C] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366) [debug] [W3C] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352) [debug] [W3C] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345) [debug] [W3C] at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:266) [debug] [W3C] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366) [debug] [W3C] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352) [debug] [W3C] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345) [debug] [W3C] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1294) [debug] [W3C] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366) [debug] [W3C] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352) [debug] [W3C] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911) [debug] [W3C] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131) [debug] [W3C] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:611) [debug] [W3C] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:552) [debug] [W3C] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:466) [debug] [W3C] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:438) [debug] [W3C] at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140) [debug] [W3C] at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144) [debug] [W3C] at java.lang.Thread.run(Thread.java:923) [debug] [W3C] Caused by: io.appium.uiautomator2.common.exceptions.NoSuchDriverException: A session is either terminated or not started [debug] [W3C] at io.appium.uiautomator2.model.AppiumUIA2Driver.getSessionOrThrow(AppiumUIA2Driver.java:55) [debug] [W3C] at io.appium.uiautomator2.model.settings.ShouldUseCompactResponses.getValue(ShouldUseCompactResponses.java:33) [debug] [W3C] at io.appium.uiautomator2.model.settings.ShouldUseCompactResponses.getValue(ShouldUseCompactResponses.java:21) [debug] [W3C] at io.appium.uiautomator2.model.Session.(Session.java:49) [debug] [W3C] at io.appium.uiautomator2.model.AppiumUIA2Driver.initializeSession(AppiumUIA2Driver.java:42) [debug] [W3C] at io.appium.uiautomator2.handler.NewSession.safeHandle(NewSession.java:50) [debug] [W3C] ... 34 more [debug] [W3C] [info] [HTTP] <-- POST /wd/hub/session 500 13358 ms - 4592 [info] [HTTP] [debug] [Instrumentation] INSTRUMENTATION_RESULT: shortMsg=Process crashed. [debug] [Instrumentation] INSTRUMENTATION_CODE: 0[debug] [Instrumentation] The process has exited with code 0[debug] [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server: