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 hangs on Proxying [POST /session] with ios simulator

See original GitHub issue

The problem

Appium hangs on Proxying [POST /session] to [POST http://localhost:8100/session]. iOS emulator. While debugging the code it never passes over the step of creating the driver. If I pause the execution is shows it’s hanged on SocketInputStream.java, method socketRead0. The app opens on the emulator and is responsive.

Environment

  • Appium version (or git revision) that exhibits the issue: 1.12.1
  • Last Appium version that did not exhibit the issue (if applicable): N/A
  • Desktop OS/version used to run Appium: MacOS 10.14.4
  • xcode version: 10.2
  • Node.js version (unless using Appium.app|exe): v11.10.1
  • Npm or Yarn package manager: 6.9.0
  • Mobile platform/version under test: ios
  • Real device or emulator/simulator:emulator
  • Appium CLI or Appium.app|exe:CLI

Details

After a few minutes of hanging, on the logs it starts to show [Xcode] 2019-04-05 17:41:13.876613+0200 WebDriverAgentRunner-Runner[22867:10542398] Enqueue Failure: Failure to determine system application: Error Domain=com.apple.dt.XCTest.XCTFuture Code=1000 "Timeout waiting for fulfillment of promise for 'Fetching attributes 'XC_kAXXCAttributeSystemAppApplication' for Device system-wide element'." UserInfo={NSLocalizedDescription=Timeout waiting for fulfillment of promise for 'Fetching attributes 'XC_kAXXCAttributeSystemAppApplication' for Device system-wide element'.} /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgentRunner/UITestingUITests.m 37 1

Link to Appium logs

https://gist.github.com/jpita/d4b0f4ffe4488c0b57dd72f6bd2781ae

Code To Reproduce Issue [ Good To Have ]

The only thing I’m doing is trying to start appium with capabilities, don’t think any code is needed for this apart from the caps. If it is needed, feel free to request. The same thing happens with Appium Desktop just putting the same caps. https://imgur.com/liQYt2J

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
jpitacommented, Apr 8, 2019

waitForQuiescence set to false and wdaEventloopIdleDelay to 3 seems to do the trick. Funny how wdaEventloopIdleDelay set to 5 doesn’t work 😄

thanks!

0reactions
lock[bot]commented, Apr 15, 2020

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

Appium gets stuck before running test - Issues/Bugs
When I start test form Intellij, app will start on simulator and then Appium gets stuck on this line : [JSONWP Proxy] Proxying...
Read more >
iOS Simulator Hangs Intermittently on App Launch - Issues/Bugs
I am running the latest 1.3.1 Appium Desktop client. The Appium Server logs say: [XCUITest] Sending createSession command to WDA [JSONWP Proxy] ...
Read more >
iOS App freezes when automation is running with latest ...
iOS App freezes when automation is running with latest appium version 1.16.0 while ... [debug] [WD Proxy] Proxying [POST /session] to [POST ......
Read more >
Error when running appium on iOS simulator - Issues/Bugs
I think this issue happened when I upgraded my appium server. Downgraded it to previous version but it still happens now.
Read more >
App crashes when opened on IOS simulator through script ...
Need help to solve this issue. getting below log on appium sever [XCUITest] Sending createSession command to WDA [JSONWP Proxy] Proxying [POST / ......
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