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.

iOS App crashes after calling window().getSize() - Appium 1.6.3 - XCUITest

See original GitHub issue

The problem

I go to a screen that is our Sing Out screen. When I go by hand and perform actions app doesn’t crash, but when I call window().getSize() or any other method via appium on that screen the app crashes.

Environment

  • Appium version (or git revision) that exhibits the issue: 1.6.3
  • Last Appium version that did not exhibit the issue (if applicable):
  • Desktop OS/version used to run Appium: MacOS
  • Mobile platform/version under test: iOS 10.2
  • Real device or emulator/simulator: real and emulator

Link to Appium logs

[debug] [MJSONWP] Calling AppiumDriver.getWindowSize() with args: ["current","c0c2d84d-406d-43ea-b6c1-b370e8d23b64"]
[debug] [XCUITest] Executing command 'getWindowSize'
[debug] [JSONWP Proxy] Proxying [GET /window/current/size] to [GET http://localhost:8100/session/68D14552-77E6-4591-836E-5505D4A9D260/window/current/size] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\n  \"value\" : \"Application is not running, possibly crashed\",\n  \"sessionId\" : \"68D14552-77E6-4591-836E-5505D4A9D260\",\n  \"status\" : 10\n}"

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
mykola-mokhnachcommented, Dec 29, 2016

This looks rather like some XCTest bug and it would be better to forward the issue to the parent project https://github.com/facebook/WebDriverAgent/issues or to Apple forums.

I have doubts we can help here. 😦

0reactions
lock[bot]commented, Apr 26, 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

iOS - Test Suite run crashes half way through - Appium Discuss
I have hundreds of tests and when I run them on an iOS device over night, then next morning I check my results...
Read more >
Getting error while launching an app in Appuim 1.6.3 from ...
When I run Java code to launch any iOS App / SafariLauncher the I get the following error on ... createSession() with args:...
Read more >
Unable to open the application on IOS Simulator with Appium ...
Ran the Appium Webdriver opened successfully on simulator Application just opened and closed immediately Please find the crash log below ...
Read more >
WebDriverAgentRunner crash (Appium 1.6.0 - Xcode 8 - iOS ...
When I run the test code, it installs my MyApp.app ... Appium iOS driver, backed by Apple XCUITest . ... createSession() with args: ......
Read more >
Appium iOS Testing - Crash with invalid Element State
Problem When running my Appium tests and even when inspecting the app under test with Appium inspector, the app always crashes at the...
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