UncaughtException: Cannot read property 'ELEMENT' of undefined, at [object Object].<anonymous> (/appium/lib/devices/ios/ios.js:1658:53

I am testing a website on Safari browser using iPhone 6
Simulator and getting this exception after Safari browser is launched. I
tried running appium from GUI console and also from source but same
exception thrown. Would you please suggest me to solve this problem??.

Please find below full appium log.
info: Welcome to Appium v1.4.8 (REV b6cfeec)

info: Appium REST http interface listener started on 0.0.0.0:4723

info: [debug] Non-default server args: {“noReset”:true}

info: Console LogLevel: debug

info: --> POST /wd/hub/session
{“desiredCapabilities”:{“platformVersion”:“8.3”,“deviceName”:"iPhone
6",“platformName”:“iOS”,“browserName”:“safari”,“launchTimeout”:300000,“version”:“8.3”}}

info: Client User-Agent string: Apache-HttpClient/4.3.4 (java 1.5)

info: [debug] The following desired capabilities were provided, but not
recognized by appium. They will be passed on to any other services
running on this server. : version

info: [debug] Configuring Safari session

info: [debug] We’re on iOS8+ so not copying mobile safari app

info: [debug] Creating new appium session e7ad332a-d488-4802-a9bd-78d536e9a046

info: [debug] Removing any remaining instruments sockets

info: [debug] Cleaned up instruments socket /tmp/instruments_sock

info: [debug] Setting Xcode version

info: [debug] Xcode version set to 6.3.2

info: [debug] Setting iOS SDK Version

info: [debug] iOS SDK Version set to 8.3

info: [debug] Checking whether instruments supports our device string

info: [debug] Getting list of devices instruments supports

info: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments

info: [debug] Getting device string from opts:
{“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.3.2”,“iOSSDKVersion”:“8.3”,“deviceName”:"iPhone
6",“platformVersion”:“8.3”}

info: [debug] fixDevice is on

info: [debug] Final device string is: ‘iPhone 6 (8.3 Simulator)’

info: [debug] iOS sim UDID is AE825334-63F3-448D-AA86-76793F4D1EEC

info: [debug] Auto-detecting iOS udid…

info: [debug] Not auto-detecting udid, running on sim

info: [debug] Localizable.strings is not currently supported when using real devices.

info: [debug] Creating instruments

info: [debug] Preparing uiauto bootstrap

info: [debug] Dynamic bootstrap dir: /Users/mmithu/Library/Application Support/appium/bootstrap

info: [debug] Dynamic env:
{“nodePath”:"/usr/local/Cellar/node/0.12.0/bin/node",“commandProxyClientPath”:"/Users/mmithu/appium/node_modules/appium-uiauto/bin/command-proxy-client.js",“instrumentsSock”:"/tmp/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false,“autoDismissAlerts”:false,“sendKeyStrategy”:“oneByOne”}

info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modif…

info: [debug] Dynamic bootstrap path: /Users/mmithu/Library/Application Support/appium/bootstrap/bootstrap-6e2781cc7a8d41a3.js

info: [debug] Reusing dynamic bootstrap:
/Users/mmithu/Library/Application
Support/appium/bootstrap/bootstrap-6e2781cc7a8d41a3.js

info: [debug] Getting device string from opts:
{“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.3.2”,“iOSSDKVersion”:“8.3”,“deviceName”:"iPhone
6",“platformVersion”:“8.3”}

info: [debug] fixDevice is on

info: [debug] Final device string is: ‘iPhone 6 (8.3 Simulator)’

info: [debug] Not setting device type since we’re using bundle ID and assuming app is already installed

info: [debug] Checking whether we need to set app preferences

info: [debug] Reset not set, not ending sim or cleaning up app state

info: [debug] Not setting locale

info: [debug] No iOS / app preferences to set

info: [debug] Starting iOS 8. simulator log capture*

info: [debug] Not pre-launching simulator

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 iPhone 6 (8.3 Simulator)

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 "iPhone 6 (8.3
Simulator)" com.apple.mobilesafari -e UIASCRIPT
"/Users/mmithu/Library/Application
Support/appium/bootstrap/bootstrap-6e2781cc7a8d41a3.js" -e
UIARESULTSPATH /tmp/appium-instruments

info: [debug] And extra without-delay env:
{“DYLD_INSERT_LIBRARIES”:"/Users/mmithu/appium/node_modules/appium-instruments/thirdparty/iwd6/InstrumentsShim.dylib",“LIB_PATH”:"/Users/mmithu/appium/node_modules/appium-instruments/thirdparty/iwd6"}

info: [debug] And launch timeouts (in ms): {“global”:300000}

info: [debug] [INST] Waiting for device to boot…

info: Instruments is ready to receive commands

info: [debug] Instruments launched. Starting poll loop for new commands.

info: [debug] Setting bootstrap config keys/values

info: [debug] Pushing command to appium work queue: “target = $.target();\nau = $;\n$.isVerbose = true;\n”

info: [debug] Socket data received (2 bytes)

info: [debug] Socket data being routed.

info: [debug] Sending command to instruments: target = $.target();

au = $;

$.isVerbose = true;

info: [debug] Socket data received (27 bytes)

info: [debug] Socket data being routed.

info: [debug] Got result from instruments: {“status”:0,“value”:true}

info: [debug] Setting initial orientation to PORTRAIT

info: [debug] Pushing command to appium work queue: “au.setScreenOrientation(‘PORTRAIT’)”

info: [debug] Sending command to instruments: au.setScreenOrientation(‘PORTRAIT’)

info: [debug] Socket data received (33 bytes)

info: [debug] Socket data being routed.

info: [debug] Got result from instruments: {“status”:0,“value”:“PORTRAIT”}

info: [debug] Waiting for app source to contain elements

info: [debug] Pushing command to appium work queue: “au.mainApp().getTreeForXML()”

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

info: [debug] [INST] 2015-08-03 10:18:04 +0000 Debug: evaluation finished

info: [debug] [INST] 2015-08-03 10:18:04 +0000 Debug: responding with:

info: [debug] [INST] 2015-08-03 10:18:04 +0000 Debug: Running system command #1:
/usr/local/Cellar/node/0.12.0/bin/node
/Users/mmithu/appium/node_modules/appium-uiauto/bin/command-proxy-client.js
/tmp/instruments_sock 2,{“status”:0,“value”:true}…

info: [debug] [INST] 2015-08-03 10:18:05 +0000 Debug: Got new command 1 from instruments: au.setScreenOrientation(‘PORTRAIT’)

info: [debug] [INST] 2015-08-03 10:18:05 +0000 Debug: evaluating au.setScreenOrientation(‘PORTRAIT’)

info: [debug] [INST] 2015-08-03 10:18:05 +0000 Debug: target.setDeviceOrientation(“1”)

info: [debug] [INST] 2015-08-03 10:18:05 +0000 Debug: evaluation finished

info: [debug] [INST] 2015-08-03 10:18:05 +0000 Debug: responding with:

info: [debug] [INST] 2015-08-03 10:18:05 +0000 Debug: Running system command #2:
/usr/local/Cellar/node/0.12.0/bin/node
/Users/mmithu/appium/node_modules/appium-uiauto/bin/command-proxy-client.js
/tmp/instruments_sock 2,{“status”:0,“value”:“PORTRAIT”}…

info: [debug] [INST] 2015-08-03 10:18:06 +0000 Debug: Got new command 2 from instruments: au.mainApp().getTreeForXML()

info: [debug] [INST] 2015-08-03 10:18:06 +0000 Debug: evaluating au.mainApp().getTreeForXML()

info: [debug] [INST] 2015-08-03 10:18:08 +0000 Debug: evaluation finished

info: [debug] [INST] 2015-08-03 10:18:08 +0000 Debug: responding
with:d":true,“visible”:false,“hint”:null,“path”:"/0/0",“x”:0,“y”:0,“width”:375,“height”:667},">":[]}},{“UIAWindow”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/1",“x”:0,“y”:0,“width”:375,“height”:667},">":[{“UIAButton”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:false,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/0",“x”:0,“y”:0,“width”:375,“height”:64.5},">":[]}},{“UIAButton”:{"@":{“name”:“URL”,“label”:“Address”,“value”:"Search
or enter website
name",“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:"Double
tap to show
controls",“path”:"/0/1/1",“x”:9.5,“y”:24.5,“width”:356,“height”:29},">":[{“UIAElement”:{"@":{“name”:“URL”,“label”:"Search
or enter website
name",“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:"Double
tap to show
controls",“path”:"/0/1/1/0",“x”:11.5,“y”:24.5,“width”:352,“height”:29},">":[]}}]}},{“UIAButton”:{"@":{“name”:“Cancel”,“label”:“Cancel”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/2",“x”:379.5,“y”:24.5,“width”:56,“height”:29},">":[]}},{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/3",“x”:0,“y”:61.5,“width”:375,“height”:2.5},">":[]}},{“UIATableView”:{"@":{“name”:"Empty
list",“label”:“Empty
list",“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/4",“x”:0,“y”:0,“width”:375,“height”:667},">":[]}},{“UIAScrollView”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/1/5",“x”:0,“y”:64,“width”:375,“height”:603},">":[{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/5/0",“x”:372.5,“y”:28,“width”:2.5,“height”:36},">":[]}},{“UIAButton”:{"@":{“name”:“Apple”,“label”:“Apple”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:"Double-tap
and hold, then drag to
reorder",“path”:"/0/1/5/1",“x”:27,“y”:75,“width”:60,“height”:105},">":[]}},{“UIAStaticText”:{"@":{“name”:"FREQUENTLY
VISITED”,“label”:“FREQUENTLY VISITED”,“value”:“FREQUENTLY
VISITED",“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/5/2",“x”:27,“y”:185.5,“width”:321,“height”:14.5},">":[]}},{“UIAButton”:{"@":{“name”:"emutrip
Traveller Login”,“label”:“emutrip Traveller
Login",“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:"Double-tap
and hold, then drag to
reorder",“path”:"/0/1/5/3",“x”:27,“y”:210,“width”:60,“height”:105},">":[]}},{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/5/4",“x”:-36,“y”:664.5,“width”:36,“height”:2.5},">":[]}}]}},{“UIAToolbar”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/6",“x”:0,“y”:667,“width”:375,“height”:44},">":[{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/6/0",“x”:0,“y”:666.5,“width”:375,“height”:0.5},">":[]}},{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/6/1",“x”:0,“y”:667,“width”:375,“height”:44},">":[]}}]}},{“UIAScrollView”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/1/7",“x”:0,“y”:20,“width”:375,“height”:647},">":[{“UIAScrollView”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/1/7/0",“x”:0,“y”:0,“width”:375,“height”:667},">":[{“UIAWebView”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/1/7/0/0",“x”:0,“y”:64,“width”:375,“height”:559.0561224489795},">":[]}},{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/7/0/1",“x”:372.5,“y”:616,“width”:2.5,“height”:7},">":[]}},{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/7/0/2",“x”:368,“y”:728.5,“width”:7,“height”:2.5},">":[]}}]}}]}},{“UIAToolbar”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/1/8",“x”:0,“y”:623,“width”:375,“height”:44},">":[{“UIAImage”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/1/8/0",“x”:0,“y”:623,“width”:375,“height”:44},">":[]}},{“UIAButton”:{"@":{“name”:“Back”,“label”:“Back”,“value”:null,“dom”:null,“enabled”:false,“valid”:true,“visible”:true,“hint”:"Double
tap and hold to open
history",“path”:"/0/1/8/1",“x”:0.5,“y”:625,“width”:42,“height”:40},">":[]}},{“UIAButton”:{"@":{“name”:“Forward”,“label”:“Forward”,“value”:null,“dom”:null,“enabled”:false,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/1/8/2",“x”:85,“y”:625,“width”:42,“height”:40},">":[]}},{“UIAButton”:{"@":{“name”:“Share”,“label”:“Share”,“value”:null,“dom”:null,“enabled”:false,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/1/8/3",“x”:161.5,“y”:624,“width”:51,“height”:40},">":[]}},{“UIAButton”:{"@":{“name”:"Show
Bookmarks”,“label”:"Show
Bookmarks",“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/1/8/4",“x”:239,“y”:625,“width”:57,“height”:40},">":[]}},{“UIAButton”:{"@":{“name”:“Pages”,“label”:“Pages”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/1/8/5",“x”:318.5,“y”:625,“width”:57,“height”:40},">":[]}}]}}]}},{“UIAWindow”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:false,“hint”:null,“path”:"/0/2",“x”:0,“y”:0,“width”:375,“height”:667},">":[]}},{“UIAWindow”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/3",“x”:0,“y”:0,“width”:375,“height”:667},">":[{“UIAStatusBar”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0/3/0",“x”:0,“y”:0,“width”:375,“height”:20},">":[{“UIAElement”:{"@":{“name”:"Swipe
down with three fingers to reveal the notification center., Swipe up
with three fingers to reveal the control center, Double-tap to scroll to

top",“label”:null,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:"Swipe
down with three fingers to reveal the notification center., Swipe up
with three fingers to reveal the control center, Double-tap to scroll to

top",“path”:"/0/3/0/0",“x”:6,“y”:0,“width”:38,“height”:20},">":[]}},{“UIAElement”:{"@":{“name”:"3
of 3 Wi-Fi bars",“label”:"3 of 3 Wi-Fi
bars",“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:"Swipe
down with three fingers to reveal the notification center., Swipe up
with three fingers to reveal the control center, Double-tap to scroll to

top",“path”:"/0/3/0/1",“x”:49,“y”:0,“width”:13,“height”:20},">":[]}},{“UIAElement”:{"@":{“name”:"3:48
PM",“label”:"3:48
PM",“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:"Swipe
down with three fingers to reveal the notification center., Swipe up
with three fingers to reveal the control center, Double-tap to scroll to

top",“path”:"/0/3/0/2",“x”:164,“y”:0,“width”:47,“height”:20},">":[]}},{“UIAElement”:{"@":{“name”:"100%
battery power",“label”:"100% battery
power",“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:"Swipe
down with three fingers to reveal the notification center., Swipe up
with three fingers to reveal the control center, Double-tap to scroll to

top",“path”:"/0/3/0/3",“x”:345,“y”:0,“width”:25,“height”:20},">":[]}}]}}]}}]}}}

info: [debug] [INST] 2015-08-03 10:18:08 +0000 Debug: Running system command #3:
/usr/local/Cellar/node/0.12.0/bin/node
/Users/mmithu/appium/node_modules/appium-uiauto/bin/command-proxy-client.js
/tmp/instruments_sock
2,{“status”:0,“value”:{“UIAApplication”:{"@":{“name”:“Safari”,“label”:“Safari”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,"path…

info: [debug] Socket data received (8192 bytes)

info: [debug] Socket data received (80 bytes)

info: [debug] Socket data being routed.

info: [debug] Got result from instruments:
{“status”:0,“value”:{“UIAApplication”:{"@":{“name”:“Safari”,“label”:“Safari”,“value”:null,“dom”:null,“enabled”:true,“valid”:true,“visible”:true,“hint”:null,“path”:"/0",“x”:0,“y”:20,“width”:375,“height”:647},">":[{“UIAWindow”:{"@":{“name”:null,“label”:null,“value”:null,“dom”:null,“enabled”:true,"vali

warn: [DEPRECATED] The name locator strategy has been deprecated and
will be removed. Please use the accessibility id locator strategy
instead.

info: [debug] Waiting up to 7000ms for condition

info: [debug] Pushing command to appium work queue: “au.getElementByName(‘URL’)”

info: [debug] Sending command to instruments: au.getElementByName(‘URL’)

info: [debug] [INST] 2015-08-03 10:18:09 +0000 Debug: Got new command 3 from instruments: au.getElementByName(‘URL’)

info: [debug] [INST] 2015-08-03 10:18:09 +0000 Debug: evaluating au.getElementByName(‘URL’)

info: [debug] [INST] 2015-08-03 10:18:09 +0000 Debug: evaluation finished

info: [debug] [INST] 2015-08-03 10:18:09 +0000 Debug: Lookup returned [object UIAButton] with the name “URL” (id: 0).

info: [debug] [INST] 2015-08-03 10:18:09 +0000 Debug: responding with:

info: [debug] [INST] 2015-08-03 10:18:09 +0000 Debug: Running system command #4:
/usr/local/Cellar/node/0.12.0/bin/node
/Users/mmithu/appium/node_modules/appium-uiauto/bin/command-proxy-client.js
/tmp/instruments_sock 2,{“status”:0,“value”:{“ELEMENT”:“0”}}…

info: [debug] Socket data received (38 bytes)

info: [debug] Socket data being routed.

info: [debug] Got result from instruments: {“status”:0,“value”:{“ELEMENT”:“0”}}

info: [debug] Pushing command to appium work queue: “au.tapById(‘0’)”

info: [debug] Sending command to instruments: au.tapById(‘0’)

info: [debug] [INST] 2015-08-03 10:18:10 +0000 Debug: Got new command 4 from instruments: au.tapById(‘0’)

info: [debug] [INST] 2015-08-03 10:18:10 +0000 Debug: evaluating au.tapById(‘0’)

info: [debug] [INST] 2015-08-03 10:18:10 +0000 Debug: UIAButton.tap()

info: [debug] [INST] 2015-08-03 10:18:10 +0000 Debug: evaluation finished

info: [debug] [INST] 2015-08-03 10:18:10 +0000 Debug: responding with:

info: [debug] [INST] 2015-08-03 10:18:10 +0000 Debug: Running system command #5:
/usr/local/Cellar/node/0.12.0/bin/node
/Users/mmithu/appium/node_modules/appium-uiauto/bin/command-proxy-client.js
/tmp/instruments_sock 2,{“status”:0,“value”:""}…

info: [debug] Socket data received (25 bytes)
strong text
info: [debug] Socket data being routed.

info: [debug] Got result from instruments: {“status”:0,“value”:""}

info: [debug] Waiting up to 0ms for condition

info: [debug] Pushing command to appium work queue: “au.getElementsByName(‘Address’)”

info: [debug] Sending command to instruments: au.getElementsByName(‘Address’)

info: [debug] [INST] 2015-08-03 10:18:12 +0000 Debug: Got new command 5 from instruments: au.getElementsByName(‘Address’)

info: [debug] [INST] 2015-08-03 10:18:12 +0000 Debug: evaluating au.getElementsByName(‘Address’)

info: [debug] [INST] 2015-08-03 10:18:15 +0000 Debug: evaluation finished

info: [debug] [INST] 2015-08-03 10:18:15 +0000 Debug: responding with:

info: [debug] [INST] 2015-08-03 10:18:15 +0000 Debug: Running system command #6:
/usr/local/Cellar/node/0.12.0/bin/node
/Users/mmithu/appium/node_modules/appium-uiauto/bin/command-proxy-client.js
/tmp/instruments_sock 2,{“status”:0,“value”:[]}…

info: [debug] Socket data received (25 bytes)

info: [debug] Socket data being routed.

info: [debug] Got result from instruments: {“status”:0,“value”:[]}

info: [debug] Condition unmet after 7936ms. Timing out.

error: uncaughtException: Cannot read property ‘ELEMENT’ of undefined
date=Mon Aug 03 2015 15:48:20 GMT+0530 (IST), pid=12209, uid=627432960,
gid=461641192, cwd=/Users/mmithu/appium,
execPath=/usr/local/Cellar/node/0.12.0/bin/node, version=v0.12.0,
argv=[node, /Users/mmithu/appium, --no-reset], rss=116592640,
heapTotal=95784192, heapUsed=68413344, loadavg=[1.91748046875,
1.822265625, 1.58740234375], uptime=22894, trace=[column=53,
file=/Users/mmithu/appium/lib/devices/ios/ios.js, function=, line=1658,
method=null, native=false, column=34,
file=/Users/mmithu/appium/node_modules/async/lib/async.js, function=fn,
line=638, method=null, native=false, column=34,
file=/Users/mmithu/appium/node_modules/async/lib/async.js,
function=Immediate._onImmediate, line=554, method=_onImmediate,
native=false, column=17, file=timers.js, function=processImmediate [as
_immediateCallback], line=358, method=null, native=false],
stack=[TypeError: Cannot read property ‘ELEMENT’ of undefined, at
[object Object]. (/Users/mmithu/appium/lib/devices/ios/ios.js:1658:53),
at fn (/Users/mmithu/appium/node_modules/async/lib/async.js:638:34),
at Immediate._onImmediate
(/Users/mmithu/appium/node_modules/async/lib/async.js:554:34), at
processImmediate as _immediateCallback]

Thanks in advance.

What are you trying to do when this happens?

This looks like a null pointer issue.