appium: Appium v1.3.1, Xcode 6.1 & iOS8.1 - unable to test native iOS app - WebKit Threading Violation

MacOS 10.9.5 Xcode 6.1 Appium v1.3.1 iOS 8.1

Running test with iOS native applciation I get instruments crash continously after trying many times! Here is full log:

info: Welcome to Appium v1.3.1 (REV 1160ce02bb89c354cb99317985123acf39f0e7d3) info: Appium REST http interface listener started on 0.0.0.0:4723 info: [debug] Non-default server args: {“udid”:“20846aec46cd64589f6a2b356ef2390b2bc6bc6c”,“fullReset”:true,“defaultCommandTimeout”:3600} info: Console LogLevel: debug info: --> GET /wd/hub/status {} info: [debug] Responding to client with success: {“status”:0,“value”:{“build”:{“version”:“1.3.1”,“revision”:“1160ce02bb89c354cb99317985123acf39f0e7d3”}}} info: <-- GET /wd/hub/status 200 7.294 ms - 104 {“status”:0,“value”:{“build”:{“version”:“1.3.1”,“revision”:“1160ce02bb89c354cb99317985123acf39f0e7d3”}}} info: --> POST /wd/hub/session {“desiredCapabilities”:{“app”:“/liemdang/Applications/eclipse/WP/branch_2.0.0.34/MobileLibs/target/classes/drivers/ios/ATCShowRoom.app”,“platformName”:“iOS”,“deviceName”:“iPhone 5s.mobile testing (8.1) [20846aec46cd64589f6a2b356ef2390b2bc6bc6c]”}} info: Client User-Agent string: Apache-HttpClient/4.3.3 (java 1.5) info: [debug] Using local app from desired caps: /liemdang/Applications/eclipse/WP/branch_2.0.0.34/MobileLibs/target/classes/drivers/ios/ATCShowRoom.app info: [debug] Creating new appium session b63ee492-087a-4c22-a73c-bff1385eb640 info: [debug] Removing any remaining instruments sockets info: [debug] Cleaned up instruments socket /tmp/instruments_sock info: [debug] Setting Xcode folder info: [debug] Setting Xcode version info: [debug] Setting iOS SDK Version info: [debug] Getting sdk version from xcrun with a timeout info: [debug] iOS SDK Version set to 8.1 info: [debug] Not checking whether simulator is available since we’re on a real device info: [debug] Detecting automation tracetemplate info: [debug] Not auto-detecting udid, running on sim info: [debug] Could not parse plist file (as binary) at /liemdang/Applications/eclipse/WP/branch_2.0.0.34/MobileLibs/target/classes/drivers/ios/ATCShowRoom.app/en.lproj/Localizable.strings info: Will try to parse the plist file as XML parseFileSync() is deprecated. Use parseStringSync() instead. info: [debug] Could not parse plist file (as XML) at /liemdang/Applications/eclipse/WP/branch_2.0.0.34/MobileLibs/target/classes/drivers/ios/ATCShowRoom.app/en.lproj/Localizable.strings warn: Could not parse app Localizable.strings; assuming it doesn’t exist info: [debug] Getting bundle ID from app info: [debug] Parsed app Info.plist (as binary) info: [debug] Creating instruments info: On some xcode 6 platforms, instruments-without-delay does not work. If you experience this, you will need to re-run appium with the --native-instruments-lib flag info: [debug] Preparing uiauto bootstrap info: [debug] Dynamic bootstrap dir: /Users/admin/Library/Application Support/appium/bootstrap info: [debug] Dynamic env: {“nodePath”:“/usr/local/Cellar/node/0.10.32/bin/node”,“commandProxyClientPath”:“/usr/local/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js”,“instrumentsSock”:“/tmp/instruments_sock”,“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false} info: [debug] Dynamic bootstrap code: // This file is automatically generated. D…ot manually modify! info: [debug] Dynamic bootstrap path: /Users/admin/Library/Application Support/appium/bootstrap/bootstrap-0ca2c821373eb439.js info: [debug] Reusing dynamic bootstrap: /Users/admin/Library/Application Support/appium/bootstrap/bootstrap-0ca2c821373eb439.js info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.1”,“iOSSDKVersion”:“8.1”,“deviceName”:“iPhone 5s.mobile testing (8.1) [20846aec46cd64589f6a2b356ef2390b2bc6bc6c]”,“platformVersion”:null} info: [debug] fixDevice is on info: [debug] Final device string is: ‘iPhone 5s.mobile testing (8.1) [20846aec46cd64589f6a2b356ef2390b2bc6bc6c](8.1 Simulator)’ info: [debug] Not setting device type since we’re on a real device info: [debug] Checking whether we need to set app preferences info: [debug] Not setting iOS and app preferences since we’re on a real device info: [debug] Running ios sim reset flow info: [debug] Killing the simulator process info: [debug] Killall iOS Simulator info: [debug] Killing any other simulator daemons info: [debug] On a real device; cannot clean device state info: [debug] Not setting locale because we’re using a real device info: [debug] No iOS / app preferences to set info: [debug] Starting iOS device log capture via deviceconsole info: [debug] Not pre-launching simulator info: [debug] Creating iDevice object with udid 20846aec46cd64589f6a2b356ef2390b2bc6bc6c info: [debug] Checking app install status using: /usr/local/lib/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 20846aec46cd64589f6a2b356ef2390b2bc6bc6c --bundle com.kms.showroom.ipad info: [debug] App is not installed. Will try to install the app. info: [debug] Installing app using cmd: /usr/local/lib/node_modules/appium/build/fruitstrap/fruitstrap install --id 20846aec46cd64589f6a2b356ef2390b2bc6bc6c --bundle “/liemdang/Applications/eclipse/WP/branch_2.0.0.34/MobileLibs/target/classes/drivers/ios/ATCShowRoom.app” info: [debug] Starting command proxy. info: [debug] Instruments socket server started at /tmp/instruments_sock info: [debug] Starting instruments info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments info: Launching instruments info: [debug] Attempting to run app on real device with UDID 20846aec46cd64589f6a2b356ef2390b2bc6bc6c info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 20846aec46cd64589f6a2b356ef2390b2bc6bc6c com.kms.showroom.ipad -e UIASCRIPT “/Users/admin/Library/Application Support/appium/bootstrap/bootstrap-0ca2c821373eb439.js” -e UIARESULTSPATH /tmp/appium-instruments info: [debug] And extra without-delay env: {} info: [debug] And launch timeouts (in ms): {“global”:90000} info: [debug] [INST STDERR] 2014-10-29 15:36:27.248 instruments[1798:4b3f] WebKit Threading Violation - initial use of WebKit from a secondary thread. info: [debug] [INST STDERR] 2014-10-29 15:36:29.565 instruments[1798:4b3f] Automation Instrument ran into an exception while trying to run the script. UIAScriptAgentSignaledException info: [debug] [INST] 2014-10-29 08:36:29 +0000 Fail: An error occurred while trying to run the script. info: [debug] [INST] Instruments Trace Complete (Duration : 2.769788s; Output : /tmp/appium-instruments/instrumentscli0.trace) info: [debug] [INSTSERVER] Instruments exited with code 0 info: [debug] Killall instruments info: [debug] Instruments crashed on startup info: [debug] Attempting to retry launching instruments, this is retry #1 info: [debug] Killall iOS Simulator info: Launching instruments info: [debug] Attempting to run app on real device with UDID 20846aec46cd64589f6a2b356ef2390b2bc6bc6c info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 20846aec46cd64589f6a2b356ef2390b2bc6bc6c com.kms.showroom.ipad -e UIASCRIPT “/Users/admin/Library/Application Support/appium/bootstrap/bootstrap-0ca2c821373eb439.js” -e UIARESULTSPATH /tmp/appium-instruments info: [debug] And extra without-delay env: {} info: [debug] And launch timeouts (in ms): {“global”:90000} info: [debug] [INST STDERR] 2014-10-29 15:36:35.778 instruments[1802:1307] WebKit Threading Violation - initial use of WebKit from a secondary thread. info: [debug] [INST STDERR] 2014-10-29 15:36:36.558 instruments[1802:6007] Automation Instrument ran into an exception while trying to run the script. UIAScriptAgentSignaledException info: [debug] [INST] 2014-10-29 08:36:36 +0000 Fail: An error occurred while trying to run the script. info: [debug] [INST] Instruments Trace Complete (Duration : 1.302183s; Output : /tmp/appium-instruments/instrumentscli0.trace) info: [debug] [INSTSERVER] Instruments exited with code 0 info: [debug] Killall instruments info: [debug] Instruments crashed on startup info: [debug] Attempting to retry launching instruments, this is retry #2 info: [debug] Killall iOS Simulator info: Launching instruments info: [debug] Attempting to run app on real device with UDID 20846aec46cd64589f6a2b356ef2390b2bc6bc6c info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 20846aec46cd64589f6a2b356ef2390b2bc6bc6c com.kms.showroom.ipad -e UIASCRIPT “/Users/admin/Library/Application Support/appium/bootstrap/bootstrap-0ca2c821373eb439.js” -e UIARESULTSPATH /tmp/appium-instruments info: [debug] And extra without-delay env: {} info: [debug] And launch timeouts (in ms): {“global”:90000} info: [debug] [INST STDERR] 2014-10-29 15:36:42.854 instruments[1806:5a0b] WebKit Threading Violation - initial use of WebKit from a secondary thread. info: [debug] [INST STDERR] 2014-10-29 15:36:43.674 instruments[1806:1307] Automation Instrument ran into an exception while trying to run the script. UIAScriptAgentSignaledException info: [debug] [INST] 2014-10-29 08:36:43 +0000 Fail: An error occurred while trying to run the script. info: [debug] [INST] Instruments Trace Complete (Duration : 1.230403s; Output : /tmp/appium-instruments/instrumentscli0.trace) info: [debug] [INSTSERVER] Instruments exited with code 0 info: [debug] Killall instruments info: [debug] Instruments crashed on startup info: [debug] Attempting to retry launching instruments, this is retry #3 info: [debug] Killall iOS Simulator info: Launching instruments info: [debug] Attempting to run app on real device with UDID 20846aec46cd64589f6a2b356ef2390b2bc6bc6c info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w 20846aec46cd64589f6a2b356ef2390b2bc6bc6c com.kms.showroom.ipad -e UIASCRIPT “/Users/admin/Library/Application Support/appium/bootstrap/bootstrap-0ca2c821373eb439.js” -e UIARESULTSPATH /tmp/appium-instruments info: [debug] And extra without-delay env: {} info: [debug] And launch timeouts (in ms): {“global”:90000} info: [debug] [INST STDERR] 2014-10-29 15:36:49.964 instruments[1810:6307] WebKit Threading Violation - initial use of WebKit from a secondary thread. info: [debug] [INST STDERR] 2014-10-29 15:36:50.682 instruments[1810:1307] Automation Instrument ran into an exception while trying to run the script. UIAScriptAgentSignaledException info: [debug] [INST] 2014-10-29 08:36:50 +0000 Fail: An error occurred while trying to run the script. info: [debug] [INST] Instruments Trace Complete (Duration : 1.318306s; Output : /tmp/appium-instruments/instrumentscli0.trace) info: [debug] [INSTSERVER] Instruments exited with code 0 info: [debug] Killall instruments info: [debug] Instruments crashed on startup info: [debug] We exceeded the number of retries allowed for instruments to successfully start; failing launch info: [debug] Stopping iOS log capture info: [debug] Running ios sim reset flow info: [debug] Killing the simulator process info: [debug] Killall iOS Simulator info: [debug] Killing any other simulator daemons info: [debug] fullReset requested. Will try to uninstall the app. info: [debug] Removing app using cmd: /usr/local/lib/node_modules/appium/build/fruitstrap/fruitstrap uninstall --id 20846aec46cd64589f6a2b356ef2390b2bc6bc6c --bundle com.kms.showroom.ipad info: [debug] Removed com.kms.showroom.ipad info: [debug] Cleaning up appium session error: Failed to start an Appium session, err was: Error: Instruments crashed on startup info: [debug] Error: Instruments crashed on startup at Instruments.onInstrumentsExit (/usr/local/lib/node_modules/appium/node_modules/appium-instruments/lib/instruments.js:387:31) at null.<anonymous> (/usr/local/lib/node_modules/appium/node_modules/appium-instruments/lib/instruments.js:308:12) at ChildProcess.emit (events.js:98:17) at Process.ChildProcess._handle.onexit (child_process.js:810:12) info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Instruments crashed on startup)”,“origValue”:“Instruments crashed on startup”},“sessionId”:null} info: <-- POST /wd/hub/session 500 48725.867 ms - 182

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 24 (9 by maintainers)

Most upvoted comments