no, my app does not introduce any sort of that.
I can run the test well with xcode6 and iso 7.1 but when I pointed it to ios 8.0 it just freezes that way. I have no clue of where the problem is
no, my app does not introduce any sort of that.
I can run the test well with xcode6 and iso 7.1 but when I pointed it to ios 8.0 it just freezes that way. I have no clue of where the problem is
Ah, thatās interesting. Our app presents a couple of pop-ups before freezing which we dismiss with taps. We make 2 other taps after tapping the pop-ups, which causes the app to hang.
Right now, weāre glad that weāre not the only ones with the problem.
I have the same as yours, if i shut down the debug switch in my app code, it will ok, but open the debug switch
@vigossjjj, how are you shutting down the debug switch? I always understood that apps can not be automated if they are not built in debug mode.
@awang, I finally have a workaround for this issue, it turned out the app got frozen because the dev guy logged all the received json data. and somehow the app ran to racing condition with that logging. If I turn the log off then everything is ok.
I guess probably your app has faced the same issue too, here are steps that I made to figured it out:
Although I can have a workaround here but there are still 3 questions that I cannot answer:
Iāll investigate this when I have time. Good luck
Hi @tbao,
I just tested out what you said with a sample app by adding in a big log line. Amazingly, the app did freeze after adding in the giant log statement. We created a build of our actual app with the logging commented out, and we are very relieved to see automation running on it without the app freezing.
Thank you for your excellent analysis, @tbao! Definitely glad to have learned something new from you!
Oh wow, thatās a very good issue to be aware of. Iām sure other users will run into it again. Thanks for posting @tbao
This is not all about 3-4 taps. We observed Appium(1.3.1) itself freezes after some hours of script run. So to stop/restart appium we had to force quit it (As Stop button goes unresponsive ). In last 3-4 attempts a complete test suite which was taking around 7 hours with iOS 6, now it is getting freeze just after 30-40% of tests run. Also 30-40% tests of the test suite is now consuming around 9 hours.
Environment:
Appium 1.3.1
Xcode 6
iOS 8.1
Yosemite
Hi Abhishek!
I tried that out with the sample application, and it seems that Appium gets slower and slower as it sends commands. I added in a counter to my test script, and it seems that Appium can send several hundred taps before its performance comes to a crawl. I would recommend posting this as a separate issue.
Hi Awang
I have filed this issue here:
Hi All,
Somehow we are abled to overcome Appium server freezing issue (which also helps improving execution time to some extent).
Here is my blog on the same :
http://www.qaautomationsimplified.com/android/restarting-appium-server-improve-various-server-freezing-issues-may-improve-execution-time/
I still have the same issue that freeze my app at the beginning or after 2-3 clicks.
Appium 1.3.5
Robot Framework 2.8.6 (Python 2.7.6 on darwin)
IOS 8.1
Does anybody have the the same issue lately?
Thanks,
Denny
@denny_home, did you try to take a look at the sample of the app process when itās frozen?
There you can find the information of what process is blocking the app, and make some twist in the appās source code to eliminate that blocking code.
@tbao, thanks for you comments. They are clear and handy. Could you give me some clues how to recognise which process is blocking my app? Iām analyzing my app process sample and looking some info in Call Graph section.
Iām having same issue with my 8.1 iOS sim. Itās very probably thats issue is also caused by loging json data
@stefan, I donāt think there is a general way to recognize if a thread is blocking, but this is what I did when looking into the Call Graph:
While automating our app, strangely few pages failed to load as the loader kept on running without displaying anything on page.
@tbao Thanks to this post I was finally able to run my code on IOS8.
It was happening due to API NSlogs being printed. So I just commented the line out & app started working fine.
Thanks @tbao logging of json data causing the problem, after removing everything works fine to me.
Thank YOU. Thank You. Thank you.
Hi,
My application freezes every time when I open with inspector. But it is working good in simulator.
And also if I run through eclipse, tap is working but not navigating to next screen. Application is freezing.
Iām using Appium version - 1.4.13
OS - Mac Osx Yosimite
Can someone please help out to solve this issue?
Thanks in advance