Hi,
Appium is getting crashed for the following reason:
-> The app which i’m testing has PDF,IMAGE,DOC,EXCEL and any other valid files.
-> If the app has more documents like 500+ on the login then its getting crashed.
-> If i move to different tabs in the same APP, then it works fine.
-> Issue only when i navigate to the tab which has 500+ files.
Deleted all the 500+ files and tested with minimal number of files then it wont crash on that particular tab.
I believe the reason for the crash is FILE SIZE. Files could be up of size to 65MB.
Appium Log:
info: [INST] 2014-10-27 21:06:49 +0000 Error: Script threw an uncaught JavaScript error: Error getting next command, shutting down on line 79 of bootstrap.js
info: [INST] 2014-10-27 21:06:49 +0000 Stopped: Script was stopped by the user
debug: [IOS_SYSLOG_ROW ] Oct 27 16:06:49 — last message repeated 1 time —
debug: [IOS_SYSLOG_ROW ] Oct 27 16:06:49 Mac-A backboardd[90801] : Application ‘UIKitApplication:com.appname[0x8d9e]’ exited abnormally with signal 9: Killed: 9
info: [INST] Instruments Trace Complete (Duration : 116.328262s; Output : /Applications/Appium.app/Contents/Resources/node_modules/appium/instrumentscli0.trace)
info: [INSTSERVER] Instruments exited with code 0
info: Cleaning up after instruments exit
info: Instruments exited unexpectedly
info: Responding to client with error: {“status”:13,“value”:{“message”:“Instruments died while responding to command, please check appium logs”,“name”:“UnknownError”,“origValue”:“Instruments died while responding to command, please check appium logs”},“sessionId”:“85f0430b-247c-4a9e-94fb-24f7fbe06904”}
debug: 127.0.0.1 - - “GET /wd/hub/session/85f0430b-247c-4a9e-94fb-24f7fbe06904/source HTTP/1.1” 500 298 “-” “Appium (unknown version) CFNetwork/596.6 Darwin/12.5.0 (x86_64) (iMac13%2C2)”
GET /wd/hub/session/85f0430b-247c-4a9e-94fb-24f7fbe06904/source 500 27218ms - 298b
info: Pushing command to appium work queue: “au.capture(‘screenshot83098b35-0049-4856-8759-04555f191ff6’)”
debug: Appium request initiated at /wd/hub/session/85f0430b-247c-4a9e-94fb-24f7fbe06904/screenshot
debug: Request received with params: {}
info: Deleted tracedir we heard about from instruments (/Applications/Appium.app/Contents/Resources/node_modules/appium/instrumentscli0.trace)
info: Stopping iOS log capture
info: Killing the simulator process
info: Killing any other simulator daemons
info: Cleaning app state.
info: Deleted /Users/U0129650/Library/Application Support/iPhone Simulator/7.1-64/Applications
info: Deleted /Users/U0129650/Library/Application Support/iPhone Simulator/7.1-64/Library/TCC
info: Deleted /Users/U0129650/Library/Application Support/iPhone Simulator/7.1-64/Library/Caches/locationd
info: Deleted /Users/U0129650/Library/Application Support/iPhone Simulator/7.1-64/Media
info: Deleted /Users/U0129650/Library/Application Support/iPhone Simulator/7.1-64/Library/Keychains
info: Cleaning up appium session
error: uncaughtException: undefined is not a function date=Mon Oct 27 2014 16:06:55 GMT-0500 (CDT), pid=90750, uid=502, gid=20, cwd=/Applications/Appium.app/Contents/Resources/node_modules/appium, execPath=/Applications/Appium.app/Contents/Resources/node/bin/node, version=v0.10.28, argv=[/Applications/Appium.app/Contents/Resources/node/bin/node, /Applications/Appium.app/Contents/Resources/node_modules/appium/lib/server/main.js, --port, 4723, --command-timeout, 7200, --session-override, --pre-launch, --log, /tmp/appium.log, --app, /Users/U0129650/Desktop/TestBuild/New.app, --show-sim-log, --device-name, iPad], rss=59289600, heapTotal=56160000, heapUsed=32082104, loadavg=[1.4814453125, 0.97265625, 0.78271484375], uptime=361929, trace=[column=11, file=/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios-controller.js, function=null, line=1060, method=null, native=false, column=28, file=/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js, function=null, line=709, method=null, native=false, column=24, file=/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios-controller.js, function=null, line=1050, method=null, native=false, column=20, file=fs.js, function=null, line=207, method=null, native=false, column=5, file=/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/md5calculator/node_modules/unzip/node_modules/fstream/node_modules/graceful-fs/graceful-fs.js, function=OpenReq.Req.done, line=143, method=Req.done, native=false, column=22, file=/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/md5calculator/node_modules/unzip/node_modules/fstream/node_modules/graceful-fs/graceful-fs.js, function=OpenReq.done, line=63, method=done, native=false, column=15, file=fs.js, function=Object.oncomplete, line=107, method=oncomplete, native=false], stack=[TypeError: undefined is not a function, at /Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios-controller.js:1060:11, at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/async/lib/async.js:709:28, at /Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios-controller.js:1050:24, at fs.js:207:20, at OpenReq.Req.done (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/md5calculator/node_modules/unzip/node_modules/fstream/node_modules/graceful-fs/graceful-fs.js:143:5), at OpenReq.done (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/md5calculator/node_modules/unzip/node_modules/fstream/node_modules/graceful-fs/graceful-fs.js:63:22), at Object.oncomplete (fs.js:107:15)]
Tried with all the versions but still the same issue.
Thanks,
Jeevan