I’m getting same issue.
My test cases are executing in certain level of loops.
Upto 7-9 loops everything works fine but after that application closes automatically but the execution wont stop, only app closes.
I’m attaching 3 command logs from appium - 258 and 259 are working fine(I suppose), problem is within Command 260
[debug] [Instruments] [INST] 2016-08-04 05:47:26 +0000 Debug: Got new command 259 from instruments: au.getElementByIndexPath(’/0/1/3’)
[debug] [UIAuto] Socket data received (39 bytes)
[debug] [UIAuto] Got result from instruments: {“status”:0,“value”:{“ELEMENT”:“60”}}
[MJSONWP] Responding to client with driver.findElement() result: {“ELEMENT”:“60”}
[HTTP] <-- POST /wd/hub/session/1ae64d99-8606-441f-b660-f607b9539636/element 200 2614 ms - 88