Skip to content

Instantly share code, notes, and snippets.

@jmoody
Created November 18, 2014 00:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmoody/2a06789f112421b9cc52 to your computer and use it in GitHub Desktop.
Save jmoody/2a06789f112421b9cc52 to your computer and use it in GitHub Desktop.
Xcode 6.1.1 GM ScriptAgent crashes when calling UIAApplication preferencesValueForKey:
  • Mavericks 10.9.5
  • calabash-ios 0.11.4
  • run-loop 1.1.1.pre3
  • calabash-ios-server 0.11.4
Process:         ScriptAgent [66861]
Path:            /Xcode/*/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Developer/Library/Daemons/PlugIns/UIAutomation.bundle/ScriptAgent
Identifier:      ScriptAgent
Version:         323
Code Type:       X86-64 (Native)
Parent Process:  ??? [1]
Responsible:     ScriptAgent [66861]
User ID:         502

Date/Time:       2014-11-18 01:20:51.582 +0100
OS Version:      Mac OS X 10.9.5 (13F34)
Report Version:  11
Anonymous UUID:  85DF8F01-C036-BABB-C01A-14EB25054544


Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000

Application Specific Information:
*** CFEqual() called with NULL first argument ***
CoreSimulator 110.4 - Device: iPhone 5 - Runtime: iOS 8.1 (12B411) - DeviceType: iPhone 5

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   CoreFoundation                	0x0000000109e6efab CFEqual + 475
1   CoreFoundation                	0x0000000109e8a4d5 _CFPrefsGetCacheStringForBundleID + 37
2   CoreFoundation                	0x0000000109e8fffe +[CFPrefsSource withSourceForIdentifier:user:byHost:container:perform:] + 606
3   CoreFoundation                	0x0000000109f7cb68 _CFPreferencesSynchronizeWithContainer + 216
4   UIAutomation                  	0x000000010b868b90 -[UIAApplication preferencesValueForKey:] + 61
5   CoreFoundation                	0x0000000109e89c8c __invoking___ + 140
6   CoreFoundation                	0x0000000109e89ae2 -[NSInvocation invoke] + 290
7   ScriptProcessor               	0x0000000109366de7 ObjCBridgeFunctionCallback + 3411
8   JavaScriptCore                	0x000000010b30f665 long long JSC::APICallbackFunction::call<JSC::JSCallbackFunction>(JSC::ExecState*) + 517
9   JavaScriptCore                	0x000000010b3d5ee6 JSC::LLInt::setUpCall(JSC::ExecState*, JSC::Instruction*, JSC::CodeSpecializationKind, JSC::JSValue, JSC::LLIntCallLinkInfo*) + 454
10  JavaScriptCore                	0x000000010b3dcf33 llint_entry + 22733
11  JavaScriptCore                	0x000000010b3d7441 callToJavaScript + 311
12  JavaScriptCore                	0x000000010b2bbd93 JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*) + 35
13  JavaScriptCore                	0x000000010b29de43 JSC::Interpreter::execute(JSC::ProgramExecutable*, JSC::ExecState*, JSC::JSObject*) + 8035
14  JavaScriptCore                	0x000000010b10c8dc JSC::evaluate(JSC::ExecState*, JSC::SourceCode const&, JSC::JSValue, JSC::JSValue*) + 508
15  JavaScriptCore                	0x000000010b30dce7 JSEvaluateScript + 391
16  ScriptProcessor               	0x000000010935c538 -[ScriptAgent startScript:] + 1651
17  Foundation                    	0x0000000108ec7212 __NSThreadPerformPerform + 299
18  CoreFoundation                	0x0000000109ec7551 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
19  CoreFoundation                	0x0000000109ebd41d __CFRunLoopDoSources0 + 269
20  CoreFoundation                	0x0000000109ebca54 __CFRunLoopRun + 868
21  CoreFoundation                	0x0000000109ebc486 CFRunLoopRunSpecific + 470
22  Foundation                    	0x0000000108ecbb42 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 275
23  Foundation                    	0x0000000108f57b10 -[NSRunLoop(NSRunLoop) run] + 74
24  ScriptAgent                   	0x0000000108dfb330 0x108dfa000 + 4912
25  libdyld.dylib                 	0x000000010abed145 start + 1
@shams-ahmed
Copy link

@jmoody i get the same issue when running calabash? do you happen to know why to error occurs?

@kvnknowles
Copy link

@jmoody, was there any update or further investigation of this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment