Sending UIA command
uia.tapOffset('{:x 165, :y 100}')
Result
{"status"=>"success", "value"=>true, "index"=>0}
Sending UIA command
uia.typeString('ios.test.automation.sell1', '')
JSON::ParserError: A JSON text must at least contain two octets!res = http({:method => :post, :path => 'uia'}, {:command => command}.merge(options))
command = "uia.typeString('ios.test.automation.sell1', '')"
options = ''
Application Specific Information:
iPhone Simulator 463.9.41, iPhone OS 7.1 (iPad Retina/11D167)
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x071d5286 __kill + 10
1 libsystem_kernel.dylib 0x071d35ec kill$UNIX2003 + 32
2 libsystem_sim_c.dylib 0x06eda35b raise + 26
3 eBay 0x0155988c CLSSignalHandler + 246
4 libsystem_platform.dylib 0x070a9deb _sigtramp + 43
5 CoreFoundation 0x06a7523e CFStringCreateWithFormat + 46
6 CoreFoundation 0x06b8df2f couldNotInstantiate + 63
7 UIKit 0x05bb9741 -[UIView(AdditionalLayoutSupport) _edgeExpressionInContainer:vertical:max:] + 45
8 UIKit 0x05bbaa47 -[UIView(AdditionalLayoutSupport) nsli_lowerAttribute:intoExpression:withCoefficient:forConstraint:] + 900
9 Foundation 0x02bb1edd lower_1_attribute + 159
10 Foundation 0x02bb1c3c -[NSLayoutConstraint _lowerIntoExpression:reportingConstantIsRounded:] + 165
11 Foundation 0x02a2e4fb -[NSLayoutConstraint _addToEngine:integralizationAdjustment:mutuallyExclusiveConstraints:] + 97
12 Foundation 0x02a319ad -[NSLayoutConstraint _addToEngine:] + 56
13 UIKit 0x05bb7974 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 515
14 Foundation 0x02ba868c -[NSISEngine withBehaviors:performModifications:] + 107
15 Foundation 0x02a383c5 -[NSISEngine withAutomaticOptimizationDisabled:] + 48
16 UIKit 0x05bb7e40 -[UIView(AdditionalLayoutSupport) _withAutomaticEngineOptimizationDisabledIfEngineExists:] + 63
17 UIKit 0x05bb7754 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 476
18 UIKit 0x05bb7e48 -[UIView(AdditionalLayoutSupport) _withAutomaticEngineOptimizationDisabledIfEngineExists:] + 71
19 UIKit 0x05bb754f -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 223
20 UIKit 0x0557c24d __40-[UIView(Hierarchy) layoutBelowIfNeeded]_block_invoke + 416
21 Foundation 0x02ba868c -[NSISEngine withBehaviors:performModifications:] + 107
22 Foundation 0x02a383c5 -[NSISEngine withAutomaticOptimizationDisabled:] + 48
23 UIKit 0x0557bf1a -[UIView(Hierarchy) layoutBelowIfNeeded] + 327
24 UIKit 0x0557bdcd -[UIView(Hierarchy) layoutIfNeeded] + 74
25 eBay 0x0056d9a9 -[EBUCollectionsSectionController collectionView:cellForItemAtIndexPath:] + 1273 (EBUCollectionsSectionController.m:117)
26 eBay 0x000c225a -[EBUContentController collectionView:cellForItemAtIndexPath:] + 202 (EBUContentController.m:368)
27 UIKit 0x05b60b30 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:] + 257
28 UIKit 0x05b62775 -[UICollectionView _updateVisibleCellsNow:] + 4730
29 UIKit 0x15a0d058 __90-[UICollectionViewAccessibility(SafeCategory) accessibilityCreatePrepareCellForIndexPath:]_block_invoke145 + 44
30 AccessibilityUtilities 0x14113476 AXPerformSafeBlock + 26
31 UIKit 0x15a0cd3b -[UICollectionViewAccessibility(SafeCategory) accessibilityCreatePrepareCellForIndexPath:] + 387
32 UIKit 0x15a0d4ed -[UICollectionViewAccessibility(SafeCategory) accessibilityCellForRowAtIndexPath:] + 301
33 UIKit 0x15a35d28 -[UICollectionViewCellAccessibilityElement cell] + 1209
34 UIKit 0x15a35f47 -[UICollectionViewCellAccessibilityElement accessibilityFrame] + 34
35 UIAccessibility 0x140c0fd5 -[NSObject(AXPrivCategory) accessibilityAttributeValue:] + 1789
36 UIAccessibility 0x140b4b95 _copyAttributeValueCallback + 151
37 AXRuntime 0x14073404 _AXXMIGCopyAttributeValue + 139
38 AXRuntime 0x1406e0c0 _XCopyAttributeValue + 322
39 AXRuntime 0x140796b4 mshMIGPerform + 256
40 CoreFoundation 0x06a6cca5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
41 CoreFoundation 0x06a6c9db __CFRunLoopDoSource1 + 523
42 CoreFoundation 0x06a9768c __CFRunLoopRun + 2156
43 CoreFoundation 0x06a969d3 CFRunLoopRunSpecific + 467
44 CoreFoundation 0x06a967eb CFRunLoopRunInMode + 123
45 GraphicsServices 0x0755d5ee GSEventRunModal + 192
46 GraphicsServices 0x0755d42b GSEventRun + 104
47 UIKit 0x0551af9b UIApplicationMain + 1225
48 eBay 0x00200bfc main + 76 (main.m:23)
49 libdyld.dylib 0x0709f701 start + 1...26 eBay 0x000c225a -[EBUContentController collectionView:cellForItemAtIndexPath:] +<span style="color: #000;" class="styled-by-pre
Issac and Aaron,
Are you using a Gemfile and bundler?
If not, can you try? I want to try to isolate this as much a possible. Ping me with a private message if you want instructions.
Also, are you using rbenv, rvm, or the Apple system ruby?
+1000 for a clear, concise, and formatted bug report.
Are both of those reports from the same crash?
This http method is returning 'nil' which is then failing the JSON parser. The app also crashes.
It is actually the other way around. The app crashes, which causes the embedded server to crash and the http response from the server is invalid json (usually "" or nil).
The crash is occurring when your custom EBUContentController is being asked for a cell. Can you log the arguments to that selector? Can you describe, which screenshots, the cell you are trying to touch? Does it appear at the edge of the screen?
26 eBay 0x000c225a -[EBUContentController collectionView:cellForItemAtIndexPath:]+ 202 (EBUContentController.m:368)
27 UIKit 0x05b60b30 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:] + 257
28 UIKit 0x05b62775 -[UICollectionView _updateVisibleCellsNow:] + 4730
29 UIKit 0x15a0d058 __90-[UICollectionViewAccessibility(SafeCategory)accessibilityCreatePrepareCellForIndexPath:]_block_invoke145 + 44
30 AccessibilityUtilities 0x14113476 AXPerformSafeBlock + 26
31 UIKit 0x15a0cd3b -[UICollectionViewAccessibility(SafeCategory)accessibilityCreatePrepareCellForIndexPath:] + 387
32 UIKit 0x15a0d4ed -[UICollectionViewAccessibility(SafeCategory)accessibilityCellForRowAtIndexPath:] + 301
33 UIKit 0x15a35d28 -[UICollectionViewCellAccessibilityElement cell] + 1209
34 UIKit 0x15a35f47 -[UICollectionViewCellAccessibilityElement accessibilityFrame] +34
35 UIAccessibility 0x140c0fd5 -[NSObject(AXPrivCategory) accessibilityAttributeValue:] + 1789From the stack trace, I see only UIA calls which might indicate a bug in UIAutomation.