Appium server returns "Error : Closed" with Code 1 - appium

I am starting to use Appium Desktop for Mobile Testing.
After the preliminary setup where I set the path and environment variables and defining the desired capabilities, clicking on "Start Session" button result in this message:
"An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: 'Command 'C\:\\Users\\test-PC\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 shell pm list packages com.mol.molwallet' exited with code 1'; Stderr: 'error: closed'; Code: '1'.
Is there any way to find out what causes the "Closure" ? I am using Bluestack as the emulator.

Related

Get an adbExec error after trying to create session in Appium Inspector

I am a newbie in the Appium, and I get such error while trying to start a session through the Appium Inspector:
Failed to create a session.
An unknown server-side error occurred while processing the command.
Original error: Error executing adbExec.
Original error: 'Command 'C:\\Users\\xukin\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe -P 5037 -s emulator-5554 install -g C:\\Windows\\system32\\node_modules\\appium-uiautomator2-driver\\node_modules\\io.appium.settings\\apks\\settings_apk-debug.apk' exited with code 1';
Command output:
adb: failed to stat C:\Windows\system32\node_modules\appium-uiautomator2-driver\node_modules\io.appium.settings\apks\settings_apk-debug.apk: No such file or directory
Capabilities:
{
"platformName": "Android",
"appium:platformVersion": "12",
"appium:deviceName": "Pixel XL",
"appium:app": "C:/Users/xukin/OneDrive/Документы/app-release.apk",
"appium:automationName": "UIAutomator2",
"appium:udid": "emulator-5554"
}
I looked at this path, and the file was there. Someone knows what's the problem?

Getting error while running Appium on Mac

Getting below error while running Appium
Encountered internal error running command: Error: Cannot verify the signature of '/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.24.0.apk'. Original error: The JAVA_HOME location '$(/usr/libexec/java_home)' must exist
Had the same error a while ago, try using this on terminal.
xattr -cr "/Applications/Appium Server GUI.app"
codesign --deep --sign - /Applications/Appium\ Server\ GUI.app
it should solve the error, it did for me.

Appium Client app problem for start inspection or start testing

Here's the steps of problem I am facing:
**Predefined: My Android SDK path and JDK path has been given in config section. Also "Session override" is checked **
I'm opening the Appium Client.
Starting the server.
Starting"Inspector session" Choosing the previously saved device with capatalities.
Choosing automatic server.
Trying to start thesession.
After sometime, I'm ending seeing this message:
Error
An unknown server-side error occurred while processing the command. Original error: zipAlignApk failed. Original error: spawn EPERM. Stdout: 'undefined'; Stderr: 'undefined'
The capabilites I've provided:
{
"deviceName": "",
"platformName": "",
"platformVersion": "",
"appPackage": "",
"appActivity": ""
}
Note: I have used appium desktop in same pc before... But somehow seeing this message now... In between, I've done several Android Studio installation.
enter image description here

Instruments CLI error: Failed to load template

I'm getting an error when trying to use the File Activity template with Instruments. I do:
instruments -t "File Activity" -D ./traces -p $my_pid &
and I get the following error:
instruments[33281]: [error] Failed to load template 'file:///Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Instruments/PlugIns/templates/File%20Activity.tracetemplate':
There is a missing instrument in this document that can't be recovered.
Has anyone else has luck with this template? Is it possibly no longer supported?

symbol lookup error when running the MoveIt! GUI

I am running Kubuntu 12.04.4 LTS and ROS Hydro.
When trying to complete the MoveIt! Setup Assistant Tutorial here
http://docs.ros.org/hydro/api/moveit_setup_assistant/html/doc/tutorial.html
everything is working fine until I try Step 4. When I click the "Add Group" button, the MoveIt! Setup Assistant GUI closes and I get the following error:
/opt/ros/hydro/lib/moveit_setup_assistant/moveit_setup_assistant: symbol lookup error: /opt/ros/hydro/lib/libmoveit_setup_assistant_widgets.so: undefined symbol: _ZN3ros7package10getPluginsERKSsS2_RSt6vectorISsSaISsEEb
================================================================================REQUIRED process [moveit_setup_assistant-2] has died!
process has died [pid 14775, exit code 127, cmd /opt/ros/hydro/lib/moveit_setup_assistant/moveit_setup_assistant __name:=moveit_setup_assistant __log:=/home/scratch/.ros/log/a83de36e-06f4-11e4-bcc4-001fd081bf4b/moveit_setup_assistant-2.log].
log file: /home/scratch/.ros/log/a83de36e-06f4-11e4-bcc4-001fd081bf4b/moveit_setup_assistant-2*.log
Initiating shutdown!
================================================================================
[moveit_setup_assistant-2] killing on exit
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
Does anyone know what's going on? Thanks

Resources