App freezes when automated

@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:

  1. Run the app until it get frozen, then open activity monitor to print the sample of the app process.
  2. You can find the waiting thread in there, and track back to the code which called to that.
  3. Try to disable that called function and try with the app again to see if it solves the problem.

Although I can have a workaround here but there are still 3 questions that I cannot answer:

  1. Why the app run well with xcode?
  2. Why the app run well with command line ( exactly the same command line as Appium)?
  3. Why the app run well with ios 7.1 on Appium?

I’ll investigate this when I have time. Good luck :slight_smile:

5 Likes