appium: Error: The instrumentation process cannot be initialized.

The problem

I’m have this error in appium version 1.11 upper, in version 1.10.1 works very well, the same error in windows, linux and mac.

Error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.

An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output. (Selenium::WebDriver::Error::UnknownError) UnknownError: An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output. at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:826:9) at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:447:37) at <anonymous>

Briefly describe the issue you are experiencing (or the feature you want to see added to Appium). Tell us what you were trying to do and what happened instead. Remember, this is not a place to ask questions. For that, go to http://discuss.appium.io!

Environment

  • Appium version (or git revision) that exhibits the issue: 1.12.1, 1.13.0
  • Last Appium version that did not exhibit the issue (if applicable): 1.10.1
  • Desktop OS/version used to run Appium: Appium console only
  • Node.js version (unless using Appium.app|exe): 8.10
  • Npm or Yarn package manager: 3.5.2
  • Mobile platform/version under test: Name: Nexus_5_API_27 CPU/ABI: Google Play Intel Atom (x86) Path: /home/reinaldorossetti/.android/avd/Nexus_5_API_27.avd Target: google_apis_playstore [Google Play] (API level 27) Android SDK 26.1.1 Skin: nexus_5
  • Real device or emulator/simulator: Emulator
  • Appium CLI or Appium.app|exe: appium node

Java: openjdk version “1.8.0_191” OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12) OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

Details

If necessary, describe the problem you have been experiencing in more detail.

Link to Appium logs

https://gist.github.com/reinaldorossetti/a8c75b679ac613571bb3b5d5ec9b0ae0

Code To Reproduce Issue [ Good To Have ]

Please remember that with sample code it’s easier to reproduce the bug and it’s much faster to fix it.

Please git clone https://github.com/appium/appium and from the sample-code directory, use one of your favourite languages and sample apps to reproduce the issue.

In case a similar scenario is missing in sample-code, please submit a PR with one of the sample apps provided.

** Appium started as sudo and adb uninstall io.appium.uiautomator2.server as Success reinaldorossetti@reinaldorossetti-Notebook:~$ adb uninstall io.appium.uiautomator2.server.test Success

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 24 (2 by maintainers)

Most upvoted comments

I got the same error when using physical device and switching between different appium servers (on different computer). The solution that I got is to uninstall the Appium Settings app from the device and restart the appium process again.