Debug View Hierarchy: Unable to capture view hierarchy

While trying to debug my view hierarchy, I get the following error:


```

Error: Unable to capture view hierarchy.

Details: No plist data for fetching view hierarchy: error evaluating expression “(id)[(Class)objc_getClass("DBGViewDebuggerSupport_iOS") fetchViewHierarchyWithOptions:(id)[(Class)objc_getClass("NSDictionary") dictionaryWithObjects:(id)[(id)[(id)[(Class)objc_getClass("NSArray") arrayWithObject:(id)[(Class)objc_getClass("NSNumber") numberWithBool:1]] arrayByAddingObject:(id)[(id)[(Class)objc_getClass("NSArray") arrayWithObject:@"_UIVisualEffectBackdropView"] arrayByAddingObject:@"_UIBackdropEffectView"]] arrayByAddingObject:(id)[(Class)objc_getClass("NSNumber") numberWithBool:0]] forKeys:(id)[(id)[(id)[(Class)objc_getClass("NSArray") arrayWithObject:@"DBGViewDebuggerUseLayersAsSnapshots"] arrayByAddingObject:@"DBGViewDebuggerEffectViewsToSnapshotAsImage"] arrayByAddingObject:@"DBGViewDebuggerAlwaysEncodeLayers"]]]”: error: Execution was interrupted, reason: signal SIGSTOP.

The process has been returned to the state before expression evaluation.

Method: -[DBGAbstractViewDescriber handleFetchedViewInfo:fetchError:resultHandler:]

Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.

```


Anyone got a clue?


Xcode Version 8.2.1 (8C1002)

Simulator: iPhone 6 (10.2)


Thanks!

Does this issue reproduce with the latest Xcode beta? Please file a bug report at http://bugreport.apple.com and include a sample project the reproduces the issue if possible. Thank you!

Still there on Version 15.3 (15E204a) and iOS Simulator 17.2.

Unable to capture the view hierarchy Domain: DBGViewDebuggerErrorDomain Code: 0 Failure Reason: "Classic" encountered an unexpected error when processing the request for a view hierarchy snapshot. Some properties and images may not be available. User Info: { DVTErrorCreationDateKey = "2024-04-30 13:37:00 +0000"; DVTRadarComponentKey = 547420; Environment = "Xcode 15.3 (15E204a) debugging iPad Air (5th generation) iOS Simulator 17.2 (21C62)."; }

The operation couldn’t be completed. Log Title: Data source expression execution failure. Log Details: error evaluating expression “(BO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5jb2RlZFByZXNlbnRhdGlvbkxheWVyIiwiZW5jb2RlZFByZXNlbnRhdGlvblNjZW5lIiwiZGJnRm9ybWF0dGVkRGlzcGxheU5hbWUiLCJzbmFwc2hvdEltYWdlIiwic25hcHNob3RJbWFnZVJlbmRlcmVkVXNpbmdEcmF3SGllcmFyY2h5SW5SZWN0IiwidmlzdWFsUmVwcmVzZW50YXRpb24iLCJkYmdTdWJ2aWV3SGllcmFyY2h5Il0sImV4YWN0VHlwZXNBcmVFeGNsdXNpdmUiOmZhbHNlLCJvcHRpb25zQ29tcGFyaXNvblN0eWxlIjowLCJleGFjdFR5cGVzIjpudWxsLCJ0eXBlc0FyZUV4Y2x1c2l2ZSI6ZmFsc2UsInZpc2liaWxpdHkiOjE1LCJ0eXBlcyI6bnVsbCwib2JqZWN0SWRlbnRpZmllcnNBcmVFeGNsdXNpdmUiOmZhbHNlLCJhY3Rpb25DbGFzcyI6IkRlYnVnSGllcmFyY2h5UHJvcGVydHlBY3Rpb25MZWdhY3lWMSIsInByb3BlcnR5TmFtZXNBcmVFeGNsdXNpdmUiOnRydWV9XSwiREJHSGllcmFyY2h5UmVxdWVzdElkZW50aWZpZXIiOiI2QjZGNTNGRC0zRDRGLTRGQkYtODYxRS0xRERFMUVBMzI3NjIiLCJEQkdIaWVyYXJjaHlSZXF1ZXN0VHJhbnNwb3J0Q29tcHJlc3Npb24iOnRydWV9"]”: error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x20). The process has been left at the point where it was interrupted, use "thread return -x" to return to the state before expression evaluation.

Thread status: * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x20) frame #0: 0x0000000180059c54 libobjc.A.dylibobjc_retain + 16 libobjc.A.dylibobjc_retain: -> 0x180059c54 <+16>: ldr x17, [x17, #0x20] 0x180059c58 <+20>: tbz w17, #0x2, 0x180059c00 ; ___lldb_unnamed_symbol1345 0x180059c5c <+24>: tbz w16, #0x0, 0x180059c2c ; ___lldb_unnamed_symbol1345 + 44 0x180059c60 <+28>: lsr x17, x16, #55 frame #1: 0x00000001e3ebfdd8 libViewDebuggerSupport.dylib+[NSLayoutConstraint(DebugHierarchyAdditionsFallback) fallback_debugHierarchyValueForPropertyWithName:onObject:outOptions:outError:] + 288 frame #2: 0x00000001cbe32a20 DebugHierarchyFoundation+[DebugHierarchyObjectProtocolHelper debugHierarchyValueForPropertyWithName:onObject:vendingClass:outOptions:outError:] + 184 frame #3: 0x00000001cbe3d628 DebugHierarchyFoundation+[DebugHierarchyObjectInterface valueForProperty:withOutOptions:onObject:inContext:error:] + 444 frame #4: 0x00000001cbe3d1bc DebugHierarchyFoundation+[DebugHierarchyObjectInterface valueAndOptionsForProperty:onObject:inContext:] + 100 frame #5: 0x00000001cbe3c844 DebugHierarchyFoundation-[DebugHierarchyPropertyAction _fetchValuesForPropertiesWithNames:onObject:inContext:] + 336 frame #6: 0x00000001cbe3c110 DebugHierarchyFoundation-[DebugHierarchyPropertyAction performInContext:withObject:] + 736 frame #7: 0x00000001cbe3f998 DebugHierarchyFoundation+[DebugHierarchyRequestActionExecutor _executeObjectActions:withObject:inContext:] + 172 frame #8: 0x00000001cbe3f7d0 DebugHierarchyFoundation-[DebugHierarchyRequestActionExecutor executeActionsWithObject:] + 92 frame #9: 0x00000001cbe3b528 DebugHierarchyFoundation-[DebugHierarchyRequestExecutor _executeRequestActionsWithKnownObjects] + 480 frame #10: 0x00000001cbe3a00c DebugHierarchyFoundation-[DebugHierarchyRequestExecutor runWithError:] + 788 frame #11: 0x00000001cbe41670 DebugHierarchyFoundation__48-[DebugHierarchyTargetHub performRequest:error:]_block_invoke + 60 frame #12: 0x00000001cbe414ec DebugHierarchyFoundation-[DebugHierarchyTargetHub performRequest:error:] + 340 frame #13: 0x00000001cbe41320 DebugHierarchyFoundation-[DebugHierarchyTargetHub performRequestWithRequestInBase64:] + 140 frame #14: 0x00000001cbe416c8 DebugHierarchyFoundation-[DebugHierarchyTargetHub performRequestInPlaceWithRequestInBase64:] + 20 frame #15: 0x000000010ff18aa8 frame #16: 0x0000000100e086b4 Classiclazy protocol witness table accessor for type FIRRemoteConfigSource and conformance FIRRemoteConfigSource at <compiler-generated>:0 frame #17: 0x0000000102cd1798 libsystem_kernel.dylibmach_msg_overwrite + 532 frame #18: 0x0000000102cc98e8 libsystem_kernel.dylibmach_msg + 20 frame #19: 0x00000001803f1754 CoreFoundation__CFRunLoopServiceMachPort + 156 frame #20: 0x00000001803ebe34 CoreFoundation__CFRunLoopRun + 1148 frame #21: 0x00000001803eb5a4 CoreFoundationCFRunLoopRunSpecific + 572 frame #22: 0x000000018e9fbae4 GraphicsServicesGSEventRunModal + 160 frame #23: 0x00000001852f02e4 UIKitCore-[UIApplication _run] + 868 frame #24: 0x00000001852f3f5c UIKitCoreUIApplicationMain + 124 frame #25: 0x0000000100e0881c Classicmain at main.swift:21:6 frame #26: 0x000000010224d544 dyld_simstart_sim + 20 frame #27: 0x0000000101c4e0e0 dyldstart + 2360

...

macOS Version 14.4.1 (Build 23E224) Xcode 15.3 (22618) (Build 15E204a) Timestamp: 2024-04-30T09:37:00-04:00

Debug View Hierarchy: Unable to capture view hierarchy
 
 
Q