Application crashing on refresh of inspector with Appium 1.4.0 and XCode 6.3.2

Hello,

The application on which I am doing automation is built on XCode 6.3.2. Appium version i am using is 1.4.0 / 1.3.7 and iOS 8.3

Application is launching successfully.
Then I am trying to find element via inspector. However, application is crashing on some particular pages when I refresh inspector. Log generated on Appium is as below : 


info: [debug] [INST] Instruments Trace Complete (Duration : 426.625488s; Output : /tmp/appium-instruments/instrumentscli0.trace)

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

info: [debug] Cleaning up after instruments exit
info: [debug] Instruments exited unexpectedly
info: [debug] Shutting down command proxy and ignoring any errors
info: [debug] Closing socket server.
info: [debug] Instruments socket server was closed
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] On a real device; cannot clean device state
info: [debug] We were in the middle of processing a command when instruments died; responding with a generic error
info: [debug] Cleaning up appium session
info: [debug] 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":null}
info: <-- GET /wd/hub/session/a6692000-3bbb-4ad4-afe0-44ba39e73757/source 500 6016.691 ms - 230

Application Log is also there if it can help anyways to finding out solution.

<Error>: -[NSISRestrictedToZeroMarkerVariable cell]: unrecognized selector sent to instance 0x175637b20
<Error>: task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)
<Notice>: ReportCrash acting against PID 1560
ReportCrash[1563] <Notice>: Formulating crash report for process JCPenney[1560]
com.apple.xpc.launchd[1] (UIKitApplication:com.xxx.xxxenterprise[0xc3ad][1560]) <Notice>: Service exited due to signal: Abort trap: 6
SpringBoard[50] <Warning>: Unable to get short BSD proc info for 1560: No such process
ReportCrash[1563] <Notice>: Saved report to /var/mobile/Library/Logs/CrashReporter/XXX_2015-06-18-082214_XXX.ips
SpringBoard[50] <Warning>: Application 'UIKitApplication:com.xxx.xxxenterprise[0xc3ad]' crashed.
assertiond[60] <Warning>: pid_suspend failed for <BKNewProcess: 0x14462f8a0; com.xxx.xxxenterprise; pid: 1560; hostpid: -1>: Unknown error: -1, Unknown error: -1
assertiond[60] <Warning>: Could not set priority of <BKNewProcess: 0x14462f8a0; com.xxx.xxxenterprise; pid: 1560; hostpid: -1> to 2, priority: No such process
assertiond[60] <Warning>: Could not set priority of <BKNewProcess: 0x14462f8a0; com.xxx.xxxenterprise; pid: 1560; hostpid: -1> to 4096, priority: No such process
UserEventAgent[17] <Warning>: id=com.xxx.xxxenterprise pid=1560, state=0
DTMobileIS[182] <Warning>: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn
DTMobileIS[182] <Warning>: Could not create service named com.apple.instruments.server.services.launchdaemon
notification_proxy[150] <Error>: 0x100684000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!
notification_proxy[150] <Error>: 0x100684000 -[MNPLockdownConnection receiveMessage]: lockdown_receive_message error!
locationd[57] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0


It would be great if anyone can help or can suggest any solution.

Thanks,

I am facing same error.

If anyone can help

1 Like

Here is the exact crash logs if that helps

Hardware Model: iPhone6,2
Process: XYZTest [770]
Path: /private/var/mobile/Containers/Bundle/Application/C0A9A934-2746-4367-877E-C125C40A54CF/ XYZ.app/ XYZ
Identifier: com.xxx.xxx
Version: 2.4.0 (2.4)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]

Date/Time: 2015-07-28 05:13:42.199 -0500
Launch Time: 2015-07-28 05:12:52.295 -0500
OS Version: iOS 8.3 (12F70)
Report Version: 105

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0

Last Exception Backtrace:
0 CoreFoundation 0x1824382d8 _exceptionPreprocess + 132
1 libobjc.A.dylib 0x193c0c0e4 objc_exception_throw + 60
2 CoreFoundation 0x18243f3a4 -[NSObject(NSObject) doesNotRecognizeSelector:] + 220
3 CoreFoundation 0x18243c154 forwarding
+ 928
4 CoreFoundation 0x18233eccc _CF_forwarding_prep_0 + 92
5 UIKit 0x180862088 -[UICollectionViewCellAccessibilityElement accessibilityTraits] + 52
6 UIAccessibility 0x19021c254 -[NSObject(AXPrivCategory) accessibilityAttributeValue:] + 4816
7 UIAccessibility 0x19020a254 _copyAttributeValueCallback + 144
8 AXRuntime 0x187fdfd7c AXXMIGCopyAttributeValue + 148
9 AXRuntime 0x187fdb3a4 XCopyAttributeValue + 272
10 AXRuntime 0x187fe70c4 mshMIGPerform + 272
11 CoreFoundation 0x1823efa54 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION
+ 56
12 CoreFoundation 0x1823ef9b4 __CFRunLoopDoSource1 + 436
13 CoreFoundation 0x1823ed934 __CFRunLoopRun + 1640
14 CoreFoundation 0x1823192d4 CFRunLoopRunSpecific + 396
15 GraphicsServices 0x18bb376fc GSEventRunModal + 168
16 UIKit 0x186edefac UIApplicationMain + 1488
17 JCPenneyTest 0x10026e0b0 main (main.m:18)
18 libdyld.dylib 0x19428aa08 start + 4

Can anyone help here?