question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Appium or WDA server hang when creating new session

See original GitHub issue

The problem

Appium server/WDA hang when creating a new session. This is happening extremely often now. Used to be rare occurrence. Happens either directly after appInstalled or when posting to /session

Environment

  • Appium version (or git revision) that exhibits the issue: 1.8.0
  • Last Appium version that did not exhibit the issue (if applicable): 1.7.2 (not as much as least)
  • Desktop OS/version used to run Appium: Mac OSX High Sierra
  • Node.js version (unless using Appium.app|exe): v8.11.1 (tried upgrading/downgrading but didn’t seem to matter)
  • Mobile platform/version under test: iOS 11.3
  • Real device or emulator/simulator: Both
  • Appium CLI or Appium.app|exe: CLI

Details

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

Link to Appium logs

Hanging when posting to /session Will stay like this for 10 minutes until reporting NoHttpResponseException at 0.0.0.0:4723 https://gist.github.com/jamesvanhorn/219b5ad49f3c98c366462bff0260163a On the device/sim we are just looking at the Springboard waiting for the app to launch. I’ve even tried implementing a block of code before this to launch the same session with the same capabilities, but turning on useNewWDA to force a reinstall. This block does work most of the time, but then this following session gets stuck still. Sometimes the block of code to start/stop a session with useNewWDA does not work either, with the same logs as the above gist, just hanging after the line 20:38:45 [debug] [BaseDriver] Event 'appInstalled' logged at 1526071125194 (16:38:45 GMT-0400 (EDT)) instead of going any further.

What precautions can we take for a real device or sim? Shutting down the simulator doesnt seem to help. I dont even know how to fix this. It just seems to stop after a little while of restarting the device/sim, manually removing WDA app, etc etc. Ends up breaking again shortly though. This is really hurting our nightly test results where we want to run a larger number of tests. Any tips or workarounds would be awesome.

Thanks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
mykola-mokhnachcommented, May 14, 2018

There are too many changes between WDA bundled with Appium 1.7.2 and 1.8.0 to figure out which one affects your particular case. Also, it is not possible to downgrade it, since many Appium features depend on the new functionality.

0reactions
lock[bot]commented, May 14, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to create WDA session - Issues/Bugs - Appium Discuss
Hi All, When I run Appium on my real iOS device, I get the error like below. How can I overcome this problem?...
Read more >
[XCUITest] Failed to create WDA session. Retrying - Issues/Bugs
Hi Appium Developer team, I'm running appium 1.6.4, appium GUI 1.5.3 xcode 8.3.1, ios 10.12.4 but I can not launch iOs app from...
Read more >
Nothing happens after app installation - Appium Discuss
I am trying to run the test but nothing happens after app installation. App flash screen appear 2-3 times and test cases are...
Read more >
Troubleshooting - Appium
Make sure developer mode is on · Make sure command prompt is Admin · Check that the URL Appium server is listening to...
Read more >
Unable to start WebDriverAgent session because of ...
[debug] [XCUITest] Failed to create WDA session. Retrying… ... d not proxy command to remote server. Original error: Error: connect ECONNREFUSED ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found