iOS - au.mainApp().getTreeForXML() is extremely slow

Hi there

I’ve search high and low for a solution to this but with no luck - what I’m facing is this.

I have an iOS app running on an emulator, started from java code using appium.
every time appium executes the au.mainApp().getTreeForXML() method, instruments does not return the xml until after 10 minutes when the session is closed and new one is started.
Same thing happens if I use the inspector. It really seems like the instruments part has a hard time returning the quite big xml but is somehow triggered when the session times out.

Using the same code with a much simpler app with only a few elements and input fields works fine.

I use xcode (and instruments) 6.4 and Appium 1.4.8

So basically this is what happens in the log:


info: [debug] Sending command to instruments: au.mainApp().getTreeForXML()

info: [debug] [INST] 2015-08-07 07:37:40 +0000 Debug: Got new command 2 from instruments: au.mainApp().getTreeForXML()

info: [debug] [INST] 2015-08-07 07:37:40 +0000 Debug: evaluating au.mainApp().getTreeForXML()





info: Client User-Agent string: Apache-HttpClient/4.4.1 (Java/1.8.0_25)
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: **** NEW SESSION ***
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: *************************************
info: Found an existing session to clobber, shutting it down first…
info: Shutting down appium session
info: [debug] Stopping ios
info: [debug] Closing socket server.
info: [debug] Instruments socket server was closed
info: [debug] Sending sigterm to instruments
info: [debug] [INST] 2015-08-07 07:47:33 +0000 Stopped: Script was stopped by the user

info: [debug] [INST STDERR] 2015-08-07 09:47:33.906 instruments[26267:819013] Attempting to set event horizon when core is not engaged, request ignored

info: [debug] [INST STDERR] 2015-08-07 09:47:33.906 instruments[26267:818372] Attempting to set event horizon when core is not engaged, request ignored

info: [debug] [INST] 2015-08-07 07:47:33 +0000 Debug: evaluation finished
info: [debug] [INST] 2015-08-07 07:47:33 +0000 Debug: responding with:":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/0",“x”:0,“y”:0,“width”:568.0000139876443,“height”:320.0000248280692},">":[{“UIAImage”:{"@":{“name”:“dispersion_plot_background_high.png”,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/0/0",“x”:0,“y”:0.000012414034756602632,“width”:284.00001398764454,“height”:320.0000124140344},">":[]}},{“UIAStaticText”:{"@":{“name”:“320 yds”,“label”:“320 yds”,“value”:“320 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/1",“x”:132.96746922892976,“y”:-703.9599817737703,“width”:18.065000260519867,“height”:5.960000789646301},">":[]}},{“UIAStaticText”:{"@":{“name”:“300 yds”,“label”:“300 yds”,“value”:“300 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/2",“x”:132.96747255099538,“y”:-627.9599817737704,“width”:18.065000260519895,“height”:5.960000789646301},">":[]}},{“UIAStaticText”:{"@":{“name”:“280 yds”,“label”:“280 yds”,“value”:“280 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/3",“x”:132.96747582934964,“y”:-552.9599817737704,“width”:18.065000260519867,“height”:5.960000789646301},">":[]}},{“UIAStaticText”:{"@":{“name”:“260 yds”,“label”:“260 yds”,“value”:“260 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/4",“x”:132.96747915141526,“y”:-476.95998177377055,“width”:18.065000260519895,“height”:5.960000789646301},">":[]}},{“UIAStaticText”:{"@":{“name”:“240 yds”,“label”:“240 yds”,“value”:“240 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/5",“x”:132.96748242976952,“y”:-401.95998177377066,“width”:18.065000260519895,“height”:5.960000789646301},">":[]}},{“UIAStaticText”:{"@":{“name”:“220 yds”,“label”:“220 yds”,“value”:“220 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/6",“x”:132.96748570812377,“y”:-326.95998177377066,“width”:18.065000260519895,“height”:5.960000789646301},">":[]}},{“UIAStaticText”:{"@":{“name”:“200 yds”,“label”:“200 yds”,“value”:“200 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/7",“x”:132.96748903018943,“y”:-250.95998177377078,“width”:18.065000260519867,“height”:5.960000789646301},">":[]}},{“UIAStaticText”:{"@":{“name”:“180 yds”,“label”:“180 yds”,“value”:“180 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/8",“x”:132.96749230854365,“y”:-175.95998177377078,“width”:18.065000260519895,“height”:5.9600007896461875},">":[]}},{“UIAStaticText”:{"@":{“name”:“160 yds”,“label”:“160 yds”,“value”:“160 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/9",“x”:132.9674956306093,“y”:-99.95998177377095,“width”:18.065000260519895,“height”:5.960000789646244},">":[]}},{“UIAStaticText”:{"@":{“name”:“140 yds”,“label”:“140 yds”,“value”:“140 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/10",“x”:132.96749890896356,“y”:-24.95998177377095,“width”:18.065000260519867,“height”:5.9600007896461875},">":[]}},{“UIAStaticText”:{"@":{“name”:“240 yds”,“label”:“240 yds”,“value”:“240 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/11",“x”:-785.5000004808245,“y”:-10.999943240760103,“width”:55.000001748455475,“height”:40.000002404126406},">":[]}},{“UIAStaticText”:{"@":{“name”:“220 yds”,“label”:“220 yds”,“value”:“220 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/12",“x”:-709.5000004808246,“y”:-10.999946562825755,“width”:55.00000174845559,“height”:40.000002404126406},">":[]}},{“UIAStaticText”:{"@":{“name”:“200 yds”,“label”:“200 yds”,“value”:“200 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/13",“x”:-634.5000004808246,“y”:-10.999949841179955,“width”:5
5.000001748455475,“height”:40.00000240412635},">":[]}},{“UIAStaticText”:{"@":{“name”:“180 yds”,“label”:“180 yds”,“value”:“180 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/14",“x”:-558.5000004808247,“y”:-10.999953163245607,“width”:55.00000174845559,“height”:40.000002404126406},">":[]}},{“UIAStaticText”:{"@":{“name”:“160 yds”,“label”:“160 yds”,“value”:“160 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/15",“x”:-483.50000048082484,“y”:-10.999956441599863,“width”:55.000001748455645,“height”:40.000002404126406},">":[]}},{“UIAStaticText”:{"@":{“name”:“140 yds”,“label”:“140 yds”,“value”:“140 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/16",“x”:-408.5000004808249,“y”:-10.99995971995412,“width”:55.00000174845559,“height”:40.000002404126406},">":[]}},{“UIAStaticText”:{"@":{“name”:“120 yds”,“label”:“120 yds”,“value”:“120 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/17",“x”:-332.50000048082495,“y”:-10.999963042019772,“width”:55.00000174845559,“height”:40.000002404126406},">":[]}},{“UIAStaticText”:{"@":{“name”:“100 yds”,“label”:“100 yds”,“value”:“100 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/18",“x”:-257.500000480825,“y”:-10.999966320374028,“width”:55.0000017484555,“height”:40.000002404126406},">":[]}},{“UIAStaticText”:{"@":{“name”:“80 yds”,“label”:“80 yds”,“value”:“80 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/19",“x”:-182.50000048082512,“y”:-10.999969598728285,“width”:55.00000174845556,“height”:40.000002404126406},">":[]}},{“UIAStaticText”:{"@":{“name”:“60 yds”,“label”:“60 yds”,“value”:“60 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/20",“x”:-106.50000048082518,“y”:-10.99997292079388,“width”:55.00000174845554,“height”:40.00000240412635},">":[]}},{“UIAStaticText”:{"@":{“name”:“40 yds”,“label”:“40 yds”,“value”:“40 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/0/21",“x”:-31.50000048082526,“y”:-10.999976199148136,“width”:55.000001748455546,“height”:40.000002404126406},">":[]}},{“UIAStaticText”:{"@":{“name”:“20 yds”,“label”:“20 yds”,“value”:“20 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/0/22",“x”:44.499999519174665,“y”:-10.999979521213788,“width”:55.000001748455546,“height”:40.000002404126406},">":[]}},{“UIAStaticText”:{"@":{“name”:“20 yds”,“label”:“20 yds”,“value”:“20 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/0/23",“x”:194.4999995191745,“y”:-10.999986077922301,“width”:55.00000174845553,“height”:40.000002404126406},">":[]}},{“UIAStaticText”:{"@":{“name”:“40 yds”,“label”:“40 yds”,“value”:“40 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/24",“x”:270.4999995191744,“y”:-10.999989399987953,“width”:55.00000174845559,“height”:40.000002404126406},">":[]}},{“UIAStaticText”:{"@":{“name”:“60 yds”,“label”:“60 yds”,“value”:“60 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/25",“x”:345.49999951917437,“y”:-10.99999267834221,“width”:55.00000174845559,“height”:40.000002404126406},">":[]}},{“UIAStaticText”:{"@":{“name”:“80 yds”,“label”:“80 yds”,“value”:“80 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/26",“x”:421.4999995191743,“y”:-10.999996000407805,“width”:55.00000174845559,“height”:40.00000240412635},">":[]}},{“UIAStaticText”:{"@":{“name”:“100 yds”,“label”:“100 yds”,“value”:“100 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/27",“x”:496.4999995191742,“y”:-10.999999278762061,“width”:55.00000174845553,“height”:40.000002404126406},">":[]}},{“UIAStaticText”:{"@":{“name”:“120 yds”,“label”:“120 yds”,“value”:“120 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/28",“x”:571.4999995191741,“y”:-11.000002557116318,“width”:55.000001748455475,“height”:40.000002404126406},">":[]}},{“UIASt
aticText”:{"@":{“name”:“140 yds”,“label”:“140 yds”,“value”:“140 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”
info: [debug] [INST] :null,“path”:"/0/0/29",“x”:647.499999519174,“y”:-11.00000587918197,“width”:55.00000174845559,“height”:40.000002404126406},">":[]}},{“UIAStaticText”:{"@":{“name”:“160 yds”,“label”:“160 yds”,“value”:“160 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/30",“x”:722.499999519174,“y”:-11.000009157536226,“width”:55.000001748455475,“height”:40.000002404126406},">":[]}},{“UIAStaticText”:{"@":{“name”:“180 yds”,“label”:“180 yds”,“value”:“180 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/31",“x”:797.4999995191739,“y”:-11.000012435890483,“width”:55.00000174845559,“height”:40.000002404126406},">":[]}},{“UIAStaticText”:{"@":{“name”:“200 yds”,“label”:“200 yds”,“value”:“200 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/32",“x”:873.4999995191738,“y”:-11.000015757956078,“width”:55.00000174845559,“height”:40.00000240412635},">":[]}},{“UIAStaticText”:{"@":{“name”:“220 yds”,“label”:“220 yds”,“value”:“220 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/33",“x”:948.4999995191738,“y”:-11.000019036310334,“width”:55.000001748455475,“height”:40.00000240412635},">":[]}},{“UIAStaticText”:{"@":{“name”:“120 yds”,“label”:“120 yds”,“value”:“120 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/0/34",“x”:132.96750218731782,“y”:50.040018226228995,“width”:18.065000260519867,“height”:5.9600007896461875},">":[]}},{“UIAStaticText”:{"@":{“name”:“100 yds”,“label”:“100 yds”,“value”:“100 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/0/35",“x”:132.96750550938344,“y”:126.04001822622888,“width”:18.065000260519895,“height”:5.960000789646244},">":[]}},{“UIAStaticText”:{"@":{“name”:“80 yds”,“label”:“80 yds”,“value”:“80 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/0/36",“x”:134.3575087877377,“y”:201.04001828698762,“width”:15.285000260519865,“height”:5.9600006681286},">":[]}},{“UIAStaticText”:{"@":{“name”:“60 yds”,“label”:“60 yds”,“value”:“60 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/0/37",“x”:134.3575121098033,“y”:277.0400182869875,“width”:15.285000260519894,“height”:5.960000668128544},">":[]}},{“UIAStaticText”:{"@":{“name”:“40 yds”,“label”:“40 yds”,“value”:“40 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/38",“x”:134.35751538815757,“y”:352.04001828698745,“width”:15.285000260519894,“height”:5.960000668128544},">":[]}},{“UIAStaticText”:{"@":{“name”:“20 yds”,“label”:“20 yds”,“value”:“20 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/39",“x”:134.35751866651182,“y”:427.04001828698733,“width”:15.285000260519894,“height”:5.9600006681286},">":[]}},{“UIAStaticText”:{"@":{“name”:“0 yds”,“label”:“0 yds”,“value”:“0 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/40",“x”:135.7475219885775,“y”:503.0400183477461,“width”:12.505000260519864,“height”:5.9600005466109},">":[]}},{“UIAStaticText”:{"@":{“name”:“20 yds”,“label”:“20 yds”,“value”:“20 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/41",“x”:134.3575252669317,“y”:578.0400182869871,“width”:15.285000260519894,“height”:5.960000668128714},">":[]}},{“UIAStaticText”:{"@":{“name”:“40 yds”,“label”:“40 yds”,“value”:“40 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/42",“x”:134.35752854528596,“y”:653.0400182869871,“width”:15.285000260519894,“height”:5.960000668128714},">":[]}},{“UIAStaticText”:{"@":{“name”:“60 yds”,“label”:“60 yds”,“value”:“60 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/43",“x”:134.3575318673516,“y”:729.0400182869871,“width”:15.285000260519865,“height”:5.9600006681286},">":[]}},{“UIAStaticText”:{"@":{“name”:“80 yds”,“label”:“80 yds”,“value
“:“80 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:”/0/0/44”,“x”:134.35753514570587,“y”:804.0400182869869,“width”:15.285000260519865,“height”:5.960000668128714},">":[]}},{“UIAStaticText”:{"@":{“name”:“100 yds”,“label”:“100 yds”,“value”:“100 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/45",“x”:132.9675384677715,“y”:880.0400182262281,“width”:18.065000260519895,“height”:5.960000789646301},">":[]}},{“UIAStaticText”:{"@":{“name”:“120 yds”,“label”:“120 yds”,“value”:“120 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/46",“x”:132.96754174612576,“y”:955.040018226228,“width”:18.065000260519867,“height”:5.960000789646301},">":[]}},{“UIAStaticText”:{"@":{“name”:“140 yds”,“label”:“140 yds”,“value”:“140 yds”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/47",“x”:132.96754502448002,“y”:1030.0400182262279,“width”:18.065000260519867,“height”:5.960000789646529},">":[]}},{“UIAButton”:{"@":{“name”:“pane legend button”,“label”:“pane legend button”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/48",“x”:10.00001171465251,“y”:268.0000227736339,“width”:37.00000161732139,“height”:37.0000016173214},">":[{“UIAImage”:{"@":{“name”:“pane_legend_button.png”,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/48/0",“x”:10.00001171465251,“y”:268.0000227736339,“width”:37.00000161732139,“height”:37.0000016173214},">":[]}}]}},{“UIAActivityIndicator”:{"@":{“name”:“Progress halted”,“label”:“Progress halted”,“value”:“0”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/49",“x”:254.00001267630284,“y”:290.0000128511483,“width”:20.000000874227794,“height”:20.000000874227794},">":[{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/49/0",“x”:254.00001267630284,“y”:290.0000128511483,“width”:20.000000874227794,“height”:20.000000874227794},">":[]}}]}},{“UIAButton”:{"@":{“name”:“pane close button”,“label”:“pane close button”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/50",“x”:10.00001267630309,“y”:290.00002338559335,“width”:23.00000100536194,“height”:23.000001005361923},">":[{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/50/0",“x”:-28.499989006585388,“y”:251.50002170270486,“width”:100.00000437113891,“height”:100.00000437113889},">":[]}},{“UIAImage”:{"@":{“name”:“pane_close_button.png”,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/50/1",“x”:10.00001267630309,“y”:290.00002338559335,“width”:23.00000100536194,“height”:23.000001005361923},">":[]}}]}},{“UIATableView”:{"@":{“name”:“Empty list”,“label”:“Empty list”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/51",“x”:20.000013113416976,“y”:300.0000239538414,“width”:0,“height”:0},">":[]}},{“UIAStaticText”:{"@":{“name”:“Maximum number of shots loaded for this view. Deselect some shots to view more specific data.”,“label”:“Maximum number of shots loaded for this view. Deselect some shots to view more specific data.”,“value”:“Maximum number of shots loaded for this view. Deselect some shots to view more specific data.”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/52",“x”:65.00001442475863,“y”:330.0000152552748,“width”:154.0000019670124,“height”:45.00000673155398},">":[]}},{“UIAButton”:{"@":{“name”:“full screen button”,“label”:“full screen button”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/0/53",“x”:237.00000043711367,“y”:10.000012851148597,“width”:37.0000016173214,“height”:37.0000016173214},">":[]}},{“UIAButton”:{"@":{“name”:“pane selection button”,“label”:“pane selection button”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:nul
l,“path”:"/0/0/54",“x”:237.000002491549,“y”:57.0000128511486,“width”:37.000001617321374,“height”:37.000001617321374},">":[]}},{“UIAButton”:{"@":{“name”:“pane settings butto
info: [debug] [INST] n”,“label”:“pane settings button”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/0/55",“x”:237.00000454598432,“y”:104.00001285114854,“width”:37.0000016173214,“height”:37.000001617321374},">":[]}},{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/0/56",“x”:281.9999999999997,“y”:0.000012326611965818302,“width”:4.00001398764482,“height”:320.00000017484524},">":[]}},{“UIACollectionView”:{"@":{“name”:null,“label”:null,“value”:“page 1 of 2”,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/0/57",“x”:283.9999999999997,“y”:0,“width”:284.00001398764454,“height”:320.0000124140344},">":[{“UIAElement”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/0/57/0",“x”:0.000013987644800595972,“y”:320.0000248280692,“width”:0,“height”:0},">":[]}},{“UIAElement”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/0/57/1",“x”:0.000013987644800595972,“y”:320.0000248280692,“width”:0,“height”:0},">":[]}},{“UIAElement”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/0/57/2",“x”:0.000013987644800595972,“y”:320.0000248280692,“width”:0,“height”:0},">":[]}},{“UIAElement”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/0/57/3",“x”:0.000013987644800595972,“y”:320.0000248280692,“width”:0,“height”:0},">":[]}},{“UIAElement”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/0/57/4",“x”:0.000013987644800595972,“y”:320.0000248280692,“width”:0,“height”:0},">":[]}},{“UIAElement”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/0/57/5",“x”:0.000013987644800595972,“y”:320.0000248280692,“width”:0,“height”:0},">":[]}},{“UIAElement”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/0/57/6",“x”:0.000013987644800595972,“y”:320.0000248280692,“width”:0,“height”:0},">":[]}},{“UIAElement”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/0/57/7",“x”:0.000013987644800595972,“y”:320.0000248280692,“width”:0,“height”:0},">":[]}},{“UIAElement”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/0/57/8",“x”:0.000013987644800595972,“y”:320.0000248280692,“width”:0,“height”:0},">":[]}},{“UIAElement”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/0/57/9",“x”:0.000013987644800595972,“y”:320.0000248280692,“width”:0,“height”:0},">":[]}}]}},{“UIAButton”:{"@":{“name”:“full screen button”,“label”:“full screen button”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/0/58",“x”:521.0000004371134,“y”:10.00000043711384,“width”:37.000001617321345,“height”:37.0000016173214},">":[]}},{“UIAButton”:{"@":{“name”:“pane selection button”,“label”:“pane selection button”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/0/59",“x”:521.0000024915487,“y”:57.00000043711384,“width”:37.00000161732146,“height”:37.000001617321374},">":[]}},{“UIAButton”:{"@":{“name”:“pane settings button”,“label”:“pane settings button”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/0/60",“x”:521.000004545984,“y”:104.00000043711378,“width”:37.00000161732146,“height”:37.000001617321374},">":[]}},{“UIANavigationBar”:{"@"
:{“name”:“UniversalGame”,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/61",“x”:-0.0000013987644800595963,“y”:-32,“width”:568.0000013987639,“height”:32.00002482806951},">":[{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/61/0",“x”:-0.0000013987644800595963,“y”:-32,“width”:568.0000013987639,“height”:32.00002482806951},">":[{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/61/0/0",“x”:0,“y”:0,“width”:568.0000000218552,“height”:0.5000248280695132},">":[]}}]}},{“UIAButton”:{"@":{“name”:“Back”,“label”:“Back”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/61/1",“x”:7.999998754225377,“y”:-28.499976439560783,“width”:21.00000091793917,“height”:21.00000091793919},">":[]}},{“UIAButton”:{"@":{“name”:“Recordings”,“label”:“Recordings”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/61/2",“x”:15.999998732369674,“y”:-28.99997971791504,“width”:88.00000104907328,“height”:24.00000384660234},">":[{“UIAStaticText”:{"@":{“name”:“Recordings”,“label”:“Recordings”,“value”:“Recordings”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/61/2/0",“x”:16.49999881979245,“y”:-26.99997971791504,“width”:87.50000089608342,“height”:20.500003824746614},">":[]}}]}}]}},{“UIAImage”:{"@":{“name”:“Default-Landscape.png”,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/0/62",“x”:0,“y”:0,“width”:568.0000139876443,“height”:320.0000248280692},">":[]}},{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/0/63",“x”:0,“y”:0.00002220538613073586,“width”:60.00000262268334,“height”:60.000002622683326},">":[]}},{“UIATableView”:{"@":{“name”:null,“label”:null,“value”:“rows 1 to 6 of 11”,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/0/64",“x”:0.000002622683400111745,“y”:60.00001171465243,“width”:300.00001136496115,“height”:260.00001311341674},">":[{“UIATableCell”:{"@":{“name”:“Start”,“label”:null,“value”:"",“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/0/64/0",“x”:0.000002622683400111745,“y”:60.00001171465243,“width”:300.00000262268316,“height”:60.00001311341694},">":[{“UIAStaticText”:{"@":{“name”:“Start”,“label”:“Start”,“value”:“Start”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/64/0/0",“x”:60.00000349691114,“y”:80.00002056620886,“width”:37.50000093979485,“height”:21.50000163917713},">":[]}}]}},{“UIATableCell”:{"@":{“name”:“Combine”,“label”:null,“value”:"",“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/0/64/1",“x”:0.00000524536680022349,“y”:120.00001171465237,“width”:300.0000026226831,“height”:60.00001311341694},">":[{“UIAStaticText”:{"@":{“name”:“Combine”,“label”:“Combine”,“value”:“Combine”,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/0/64/1/0",“x”:60.000006119594545,“y”:140.00001912373295,“width”:70.50000093979479,“height”:21.500003081652977},">":[]}}]}},{“UIATableCell”:{"@":{“name”:null,“label”:null,“value”:0,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/0/64/2",“x”:0.000013987644800595972,“y”:320.0000248280692,“width”:0,“height”:0},">":[]}},{“UIATableCell”:{"@":{“name”:null,“label”:null,“value”:0,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/0/64/3",“x”:0.000013987644800595972,“y”:320.0000248280692,“width”:0,“height”:0},">":[]}},{“UIATableCell”:{"@":{“name”:null,“label”:null,“value”:0,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/0/64/4",“x”:0.000013987644800595972,“y”:320.0000248280692,“width”:0,“height”:0},">":[]}},{“UIATableCell”:{"@":{“name”:null,“label”:null,“value”:0,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”
:null,“path”:"/0/0/64/5",“x”:0.000013987644800595972,“y”:320.0000248280692,“width”:0,“height”:0},">":[]}},{“UIATableCell”:{"@":{“name”:null,“label”:null,“value”:0,“dom”:null,“enabled”:false,“valid”:false,“visible”:
info: [debug] [INST] false,“hint”:null,“path”:"/0/0/64/6",“x”:0.000013987644800595972,“y”:320.0000248280692,“width”:0,“height”:0},">":[]}},{“UIATableCell”:{"@":{“name”:null,“label”:null,“value”:0,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/0/64/7",“x”:0.000013987644800595972,“y”:320.0000248280692,“width”:0,“height”:0},">":[]}},{“UIATableCell”:{"@":{“name”:null,“label”:null,“value”:0,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/0/64/8",“x”:0.000013987644800595972,“y”:320.0000248280692,“width”:0,“height”:0},">":[]}},{“UIATableCell”:{"@":{“name”:null,“label”:null,“value”:0,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/0/64/9",“x”:0.000013987644800595972,“y”:320.0000248280692,“width”:0,“height”:0},">":[]}},{“UIATableCell”:{"@":{“name”:null,“label”:null,“value”:0,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/0/64/10",“x”:0.000013987644800595972,“y”:320.0000248280692,“width”:0,“height”:0},">":[]}}]}},{“UIAStaticText”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/0/65",“x”:0.000013987644800595972,“y”:320.0000248280692,“width”:0,“height”:0},">":[]}},{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/0/66",“x”:0.000013987644800595972,“y”:320.0000248280692,“width”:0,“height”:0},">":[]}},{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/0/67",“x”:0.000013987644800595972,“y”:320.0000248280692,“width”:0,“height”:0},">":[]}}]}},{“UIAWindow”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/1",“x”:0.000013987644800595972,“y”:320.0000248280692,“width”:0,“height”:0},">":[]}},{“UIAWindow”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:false,“visible”:false,“hint”:null,“path”:"/0/2",“x”:0.000013987644800595972,“y”:320.0000248280692,“width”:0,“height”:0},">":[]}}]}}}
2015-08-07 07:47:33 +0000 Debug: Running system command #3: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{“status”:0,“value”:{“UIAApplication”:{"@":{“name”:“TrackMan”,“label”:“TrackMan”,“value”:null,“dom”…
info: [debug] [INST] Instruments Trace Complete (Duration : 601.592346s; Output : /tmp/appium-instruments/instrumentscli0.trace)

info: [debug] [INSTSERVER] Instruments exited with code 0

info: [debug] Cleaning up after instruments exit
info: [debug] Stopping iOS log capture
info: [debug] Reset not set, not ending sim or cleaning up app state
info: [debug] Cleaning up appium session
info: Old session shut down OK, proceeding to new session

I too am experiencing this…have you found a solution. Downgrading, etc.?

I see a similar problem: evaluating au.mainApp().getTreeForXML() timing out attempting to load xml equivalent of a calendar for a scheduling app. Any ideas?

@jonahss

My colleagues are having same issue. So will just bump it, to see if anybody as a solution

We didn’t find a solution but used a work-around. We limited the calendar to current +/- 2 months static load and dynamically loading future months when scrolled. We made sure we weren’t using any X-Paths. Not recommended as it will make tests slow, long-running and flaky but newCommandTimeout server flag can be set as required so Appium will wait longer for a new command from the client before assuming the client quit and ending the session.