"Can't stop process; it's not currently running"

Can you help me to relove this error? I use Appium + java for my automation framework. I am running tests on Andorid emulator and here is the capabilities

cap.setCapability("deviceName", "Nexus_5X_API_28");
        cap.setCapability("udid", "emulator-5554");
        cap.setCapability("platformName", "Android");
        cap.setCapability("platformVersion", "9");
        cap.setCapability("chromedriverExecutable","C:\\Users\\xxx\\eclipse-new-workspace\\xxxProject\\resources\\chromedriver.exe");
        cap.setCapability(CapabilityType.BROWSER_NAME,"Chrome");
        cap.setCapability("appium:chromeOptions", ImmutableMap.of("w3c", false));

I am getting this error when run the tests.

Encountered internal error running command: Error: Can’t stop process; it’s not currently running (cmd: ‘C:\Users\xxxx\chromedriver.exe --url-base=wd/hub --port=8000 --adb-port=5037 --verbose’)

Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'AAD-85BQ573', ip: '192.168.1.78', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '15.0.2'
Driver info: driver.version: AndroidDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Can't stop process; it's not currently running (cmd: 'C:\\Users\\xxx\\eclipse-new-workspace\\xxx\\resources\\chromedriver.exe --url-base\=wd/hub --port\=8000 --adb-port\=5037 --verbose')
    at getResponseForW3CError (C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:804:9)
    at asyncHandler (C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\protocol\protocol.js:392:37)
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'AAD-85BQ573', ip: '192.168.1.78', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '15.0.2'
Driver info: driver.version: AndroidDriver
    at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:208)
    at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217)
    at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
    at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:41)
    at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
    at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
    at io.appium.java_client.AppiumDriver.startSession(AppiumDriver.java:336)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
    at io.appium.java_client.DefaultGenericMobileDriver.<init>(DefaultGenericMobileDriver.java:37)
    at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:88)
    at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:98)
    at io.appium.java_client.android.AndroidDriver.<init>(AndroidDriver.java:94)
    at pages.BaseSetUp.driverSetUp(BaseSetUp.java:187)
    at steps.CommonSteps.i_am_on_home_page(CommonSteps.java:27)
    at ✽.I am on home page(file:///C:/Users/xxx/eclipse-new-workspace/xxx/src/test/java/features/SignUp_And_SignIn/login.feature:5)
Caused by: java.lang.reflect.InvocationTargetException

This is now resolved. This is due to following corrupted chrome executables in https://chromedriver.storage.googleapis.com/index.html?path=95.0.4638.69/ (windows). I have given version 95.0.4638.54 and all working fine.

1 Like

Thanks for giving the solution. I had looked into this but did not find much info. Hopefully this will help someone else with the same problem.