Unable to capture User Interface

Originator:maxkattner
Number:rdar://32614709 Date Originated:2017-06-07
Status:Open Resolved:No
Product:Xcode Product Version:9.0 beta (9M136h)
Classification:Serious Bug Reproducible:Always
 
Summary:
Trying to capture the User Interface while debugging an app in Xcode 9.0 beta (9M136h) always results in an error.
In the console, you can see the following message:

Error:    Unable to capture view hierarchy.
Details:  Log Title: Data source expression execution failure.
Log Details: error evaluating expression “(id)[[DBGTargetHub sharedHub] performRequestWithRequestInBase64:@"YnBsaXN0MDDUAQIDBAUGRkdYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3ASAAGGoK8QFwcIGxwdHh8gISIuLzAxMjM0Nz1BQkNEVSRudWxs0wkKCwwTGldOUy5rZXlzWk5TLm9iamVjdHNWJGNsYXNzpg0ODxAREoACgAOABIAFgAaAB6YUFRYXGBmACIAJgBOAD4AUgBWAFl8QG0RCR0hpZXJhcmNoeVJlcXVlc3RQcmlvcml0eV8QHERCR0hpZXJhcmNoeVJlcXVlc3RQcmVkaWNhdGVfEBdEQkdIaWVyYXJjaHlSZXF1ZXN0TmFtZV8QHkRCR0hpZXJhcmNoeVJlcXVlc3RTcGluUnVubG9vcF8QHURCR0hpZXJhcmNoeVJlcXVlc3RJZGVudGlmaWVyXxAXREJHSGllcmFyY2h5UmVxdWVzdFR5cGUQANMJCgsjKC2kJCUmJ4AKgAuADIANpCkXKyuADoAPgBCAEIASXxATc3RyaWN0ZXN0VmlzaWJpbGl0eV8QEWluY2x1ZGVMYXp5VmFsdWVzXxATZW51bVByb3ZpZGVyQ2xhc3Nlc18QFm9wdGlvbnNQcm92aWRlckNsYXNzZXMQAwjSCgs1NqCAEdI4OTo7WiRjbGFzc25hbWVYJGNsYXNzZXNXTlNBcnJheaI6PFhOU09iamVjdNI4OT4/XxATTlNNdXRhYmxlRGljdGlvbmFyeaM+QDxcTlNEaWN0aW9uYXJ5XxAPSW5pdGlhbCByZXF1ZXN0XxAkMUY0RTBFQjEtNUFBNi00NTY1LTk5NTEtRTlCRUU2MTAwQ0U3EAHSODlARaJAPF8QD05TS2V5ZWRBcmNoaXZlctFISVRyb290gAEACAARABoAIwAtADIANwBRAFcAXgBmAHEAeAB/AIEAgwCFAIcAiQCLAJIAlACWAJgAmgCcAJ4AoAC+AN0A9wEYATgBUgFUAVsBYAFiAWQBZgFoAW0BbwFxAXMBdQF3AY0BoQG3AdAB0gHTAdgB2QHbAeAB6wH0AfwB/wIIAg0CIwInAjQCRgJtAm8CdAJ3AokCjAKRAAAAAAAAAgEAAAAAAAAASgAAAAAAAAAAAAAAAAAAApM="]”: error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x0).
The process has been returned to the state before expression evaluation.


Log Method: -[DBGDataSourceConnectionLibViewDebugger executeLLDBExpression:forRequest:]_block_invoke_2
Method:   -[DBGViewDebugger updateDebugHierarchy]_block_invoke_2
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.

Steps to Reproduce:
1. Run your app via Xcode
2. When it is running, click on the “Debug View Hierarchy” button in the Debug Area
3. Observe main view and console

Expected Results:
View hierarchy should appear in the main view.

Observed Results:
Empty “Unable to capture view hierarchy” view appears in the main view.

Version:
Xcode 9.0 beta (9M136h), macOS Sierra 10.12.6 Beta (16G8c)

Notes:


Configuration:
Issue occurs using iOS 11 simulators or devices, previous versions not tested.

Comments

Still happening in production

Xcode: Version 9.2 (9C40b)

By eugen.spinu at March 28, 2018, 1:11 p.m. (reply...)

Faced with the same issue.

Still happening in production

Thought I'd chime in. This is still an issue in production with the latest release of iOS 11.0 (15A372), unfortunately.

By edwinfinch8 at Sept. 20, 2017, 9:14 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!