When running a test I will sometimes get the AX Lookup problem line, which means my test will fail. Log output of a failing run:
2014-05-07 14:33:38.775 sim[97900:303] Multiple instances of launchd_sim detected, using com.apple.iphonesimulator.launchd.2a71552c instead of com.apple.iphonesimulator.launchd.3e0456a8.
2014-05-07 14:33:39.373 ScriptAgent[97900:3107] CLTilesManagerClient: initialize, sSharedTilesManagerClient
2014-05-07 14:33:39.373 ScriptAgent[97900:3107] CLTilesManagerClient: init
2014-05-07 14:33:39.373 ScriptAgent[97900:3107] CLTilesManagerClient: reconnecting, 0x10a401b50
2014-05-07 14:33:39.800 ScriptAgent[97900:3107] AX Lookup problem! 1102 com.apple.iphone.axserver:97892
2014-05-07 14:33:39.809 ScriptAgent[97900:3107] AX Lookup problem! 1102 com.apple.iphone.axserver:97892
2014-05-07 21:33:39 +0000 Debug: target.setDeviceOrientation("1")
2014-05-07 14:33:44.828 ScriptAgent[97900:3107] Log written to /Users/ncolton/Library/Application Support/iPhone Simulator/7.1-64/Library/Logs/CrashReporter/UIALogs/ScriptError-2014-05-07-143344.plist
2014-05-07 21:33:44 +0000 Error: Script threw an uncaught JavaScript error: Element 'search' was not found on 'home' on line 615 of feature.js
2014-05-07 21:33:44 +0000 Stopped: Script was stopped by the user
Instruments Trace Complete (Duration : 10.146499s; Output : /Users/ncolton/repositories/ios_acceptance_tests/instrumentscli0.trace)
Immediately after, with no changes to the code, I ran the same test again and it worked without problem:
2014-05-07 14:33:57.797 sim[98334:303] Multiple instances of launchd_sim detected, using com.apple.iphonesimulator.launchd.47f2b4a2 instead of com.apple.iphonesimulator.launchd.3e0456a8.
2014-05-07 14:33:58.403 ScriptAgent[98334:3107] CLTilesManagerClient: initialize, sSharedTilesManagerClient
2014-05-07 14:33:58.404 ScriptAgent[98334:3107] CLTilesManagerClient: init
2014-05-07 14:33:58.404 ScriptAgent[98334:3107] CLTilesManagerClient: reconnecting, 0x10a40aac0
2014-05-07 21:33:58 +0000 Debug: target.setDeviceOrientation("1")
2014-05-07 21:33:58 +0000 Debug: target.frontMostApp().elements()[0].elements()[0].elements()[2].tap()
2014-05-07 21:33:59 +0000 Debug: target.frontMostApp().elements()[0].elements()[5].tap()
2014-05-07 21:34:00 +0000 Debug: target.frontMostApp().keyboard().typeString("fish")
2014-05-07 21:34:01 +0000 Debug: target.frontMostApp().elements()[1].elements()[0].elements()[32].tap()
May 7 14:34:04 NikkBook Pro instruments[98291] <Error>: CGImageCreateWithImageProvider: invalid image size: 640 x 640.
May 7 14:34:04 NikkBook Pro instruments[98291] <Error>: CGImageCreateWithImageProvider: invalid image size: 640 x 640.
2014-05-07 21:34:01 +0000 logElementTree:
UIAWindow "(null)" {{0, 0}, {320, 568}}
elements: {
UIACollectionView "(null)" {{0, 0}, {320, 568}}
UIAStaticText "searching..." {{0, 240}, {320, 50}}
UIAActivityIndicator "In progress" {{141.5, 290}, {37, 37}}
UIAButton "Display search filter settings" {{126, 47}, {68, 23}}
elements: {
...
What the heck does "AX Lookup problem! 1102 com.apple.iphone.axserver:97892" actually mean?
How can I avoid this silliness happening?
Thank you in advance!