Open saim80 opened 5 years ago
I'm in the process of verifying but using appium 1.8.2 beta solved the issue.
It somehow worked for few instances, but it came back again... does anyone have a clue on this?
Avoiding visibility check improved the situation significantly. I'm trying to continue writing tests without visibility checks.
We are experiencing the same issue with 1.9.1. CPU cranks up to 100% for the Appium process. It's random. Some times I can get a dozen or so tests to run without incident. I've yet to get through all of our tests without a freeze.
I am also facing this issue with latest version of appium 1.9.1 for android . Scripts are randomly failing when run in suite mode .Not able to run all scripts at one instance.Did not face this issue with the previous version.
The problem
While running tests, the app process consumes near 100% CPU, it becomes unresponsive. The tests are randomly failing because of this.
Environment
Details
I’m currently trying to make Appium test working locally on my laptop. I observed that the test gets slower over time within single session. Element/displayed query takes 7-10 seconds according to the server app’s log. The slowdown is significant and noticeable by just watching the test. I also observed that once the test starts the target app process uses around 100% CPU, sometimes it goes above 100%. I also observed that sometimes the process gets paused for a while before resuming.
I’m using Rspec and Ruby to write tests for iOS simulators. Where should I start to solve this problem? Any helps appreciated.
I took a video of what I’m observing. https://d.pr/v/YuhGEp
It looks like Android had a similar issue, then disableAndroidWathers was added to lower cpu consumption. I cannot seem to find anything in iOS side to just give a try. I’m just guessing around to figure this out though.https://github.com/appium/appium/issues/4698
This issue was created at appium repo previously, and I was instructed to create an issue here. https://github.com/appium/appium/issues/11145