Failed to launch simulator with [MJSONWP] Encountered internal error running command: Error: Condition unmet after xxxx ms. Timing out.
See original GitHub issueThe problem
Failed to launch simulator in ios sim reset flow.
Environment
- Appium version (or git revision) that exhibits the issue:
- Appium 1.5.2
- Last Appium version that did not exhibit the issue (if applicable):
- Appium 1.4.16
- Desktop OS/version used to run Appium:
- Mac OS X 10.11.4
- Node.js version (unless using Appium.app|exe):
- v4.2.4
- Mobile platform/version under test:
- iOS SDK 9.2
- Xcode 7.2
- Real device or emulator/simulator:
- simulator
- Appium CLI or Appium.app|exe:
- Appium CLI
And
- use ruby_lib 8.0.2
Details
- When I tried to start and launch test, then ios simulator never launch and repeated timeout error.
[MJSONWP] Encountered internal error running command: Error: Condition unmet after 60239 ms. Timing out.
- Once restart Machine(Mac OS X 10.11), then some times fixed it and could run test. But after some running tests, this issue happened again.
- According to stackoverflow here, this issue is fixed sometimes if I re-install Xcode and its commandline tools. But this issue reproduced again.
- According to the following error log, I attached as Appium log, this problem may start to reproduce after failed to set locale with 500 error.
Link to Appium logs
- Debug log
- log of
[driver_start_with]
is https://github.com/KazuCocoa/scenarioForAppiumIssue5920/blob/master/lib/c_appium/driver.rb#L19, which is my log.
Code To Reproduce Issue [ Good To Have ]
- You may be able to reproduce any apps such as https://github.com/KazuCocoa/scenarioForAppiumIssue5920/
- Once reproduce this issue, I never launch ios simulator until reboot machine.
Issue Analytics
- State:
- Created 7 years ago
- Comments:20 (11 by maintainers)
Top Results From Across the Web
How to solve [MJSONWP] Encountered internal Could not ...
[MJSONWP] Encountered internal error running command: Error: Could not connect to a valid app after 20 tries. at Object.wrappedLogger.
Read more >An unknown server-side error occurred while processing the ...
Unable to launch iOS application when trying to inspect element using appium desktop ... Original error: Failed to receive any data within the...
Read more >VS for Mac 2022 Preview 7 can't launch iOS app in debug mode
When try to run my app on iphone simulator 15.4 i get “error HE0042: Could not launch the app 'xxx' on the device...
Read more >appium/appium - Gitter
I am trying to get Appium desktop up and running to test an Ionic/cordova mobile application. When is set autoWebview = true, the...
Read more >Simulator ARM64 Support for Static Libraries in M1 Machines
When we run in M1 Macbooks we are unable to run on arm64 simulators and get the following error: building for iOS Simulator,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@KazuCocoa I solve the similar problew by reinstalling ideviceinstaller and libimobiledevice. You need the latest libimobiledevice, in the Appium 1.5.3 version. Open the Terminal, type the commands below:
It may work for you.
Refer to Michael Gallacher: [(http://stackoverflow.com/questions/38609898/ideviceinstaller-l-wont-show-the-app-list-on-the-iphone)]
@KazuCocoa Sorry, this slipped through my notice.
The issue is with the devices that are
disconnected
orunavailable
. The system is waiting for everything to beshutdown
. I am going to look at whether it is possible to expand this a little.