pendo-io / pendo-mobile-sdk

Pendo captures product usage data, gathers user feedback, and lets you communicate in-app to onboard, educate, and guide users to value
https://www.pendo.io
Other
57 stars 2 forks source link

💥 Crash on ` UIView.pnd_hasAccessibilitiesNodes()` #162

Open msrutek-paylocity opened 1 month ago

msrutek-paylocity commented 1 month ago

Platform + Version

iOS 16.3.1, iPhone 11

SDK Version

3.3.1

Framework

Native, SwiftUI

Describe the bug

Crash of the app.

To Reproduce

Yet unknown.

Expected behavior

No crash.

Stack Trace

Crashed: com.apple.main-thread
0  libswiftCore.dylib             0x37445c __swift_allocate_boxed_opaque_existential_0 + 28
1  libswiftCore.dylib             0x1797d4 swift_getAtKeyPath + 100
2  SwiftUI                        0x5a6520 OUTLINED_FUNCTION_23 + 532
3  SwiftUI                        0x244114 OUTLINED_FUNCTION_651 + 88
4  SwiftUI                        0x17c394 __swift_memcpy25_8 + 2024
5  SwiftUI                        0xce172c OUTLINED_FUNCTION_12 + 1084
6  SwiftUI                        0xce19c8 OUTLINED_FUNCTION_12 + 1752
7  SwiftUI                        0x7a7538 OUTLINED_FUNCTION_28 + 3104
8  SwiftUI                        0x15dc268 OUTLINED_FUNCTION_39 + 6700
9  SwiftUI                        0x15de2ac OUTLINED_FUNCTION_39 + 14960
10 SwiftUI                        0x15de308 OUTLINED_FUNCTION_39 + 15052
11 Pendo                          0x13d5bc UIView.pnd_hasAccessibilitiesNodes() + 5364
12 Pendo                          0x13d620 @objc UIView.pnd_hasAccessibilitiesNodes() + 5464
13 Pendo                          0x137964 DumpTree.rectToViewMap(_:) + 10656
14 Pendo                          0x13b504 partial apply for closure #1 in DumpTree.accessibilityToViewRectMap(value:parentValue:) + 2108
15 Pendo                          0x134fa8 pnd_measure<A>(_:body:) + 3716
16 Pendo                          0x136824 DumpTree.accessibilityToViewRectMap(value:parentValue:) + 6240
17 Pendo                          0x13b028 partial apply for closure #1 in static DumpTree.pnd_dump(value:parentValue:name:indent:maxDepth:printingOptions:descriptionLength:pruneEnabled:allowTextCollection:) + 864
18 Pendo                          0x134fa8 pnd_measure<A>(_:body:) + 3716
19 Pendo                          0x13af84 specialized static DumpTree.pnd_dump(value:parentValue:name:indent:maxDepth:printingOptions:descriptionLength:pruneEnabled:allowTextCollection:) + 700
20 Pendo                          0x136aa0 @objc static DumpTree.pnd_dump(value:parentValue:name:indent:maxDepth:printingOptions:descriptionLength:pruneEnabled:allowTextCollection:) + 6876
21 Pendo                          0x13622c static DumpTree.pnd_dump(topMostController:rootViewController:indent:maxDepth:printingOption:descriptionLength:pruneEnabled:enableSwiftUIInsideUIKitScan:allowTextCollection:) + 4712
22 Pendo                          0x136954 @objc static DumpTree.pnd_dump(topMostController:rootViewController:indent:maxDepth:printingOption:descriptionLength:pruneEnabled:enableSwiftUIInsideUIKitScan:allowTextCollection:) + 6544
23 Pendo                          0x11d930 -[PNDScreenManager swiftUIDataAppend:fromWindow:rootViewController:] + 736
24 Pendo                          0x11d274 -[PNDScreenManager screenDataFor:] + 216
25 Pendo                          0x11cf94 -[PNDScreenManager screenChanged] + 56
26 Pendo                          0x11c970 __44-[PNDScreenManager triggerScreenScanOfType:]_block_invoke.52 + 508
27 Pendo                          0x10f3ac -[PNDDebouncer fireNow] + 36
28 Foundation                     0x83308 __NSFireTimer + 96
29 CoreFoundation                 0xce32c __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32
30 CoreFoundation                 0x8a9a8 __CFRunLoopDoTimer + 940
31 CoreFoundation                 0x2e548 __CFRunLoopDoTimers + 288
32 CoreFoundation                 0x7bfa0 __CFRunLoopRun + 1896
33 CoreFoundation                 0x80eb0 CFRunLoopRunSpecific + 612
34 GraphicsServices               0x1368 GSEventRunModal + 164
35 UIKitCore                      0x3a1668 -[UIApplication _run] + 888
36 UIKitCore                      0x3a12cc UIApplicationMain + 340
37 REDACTED                       0x58b8 main + 9 (AppDelegate.swift:9)
38 ???                            0x1ca830960 (Missing)
0xkuj commented 1 month ago

we are looking into this, while asking Apple about those OUTLINED_FUNCTION_39 is there a possibility to get a full crash log? do we know if this happened on iOS different than 16.x? we are asking specifically about iOS 16 because we've seen reports with stack like these (not directly related to Pendo) and they have all been reported on iOS 16. also, do you know how often it happens?

msrutek-paylocity commented 1 month ago

Hello @0xkuj

is there a possibility to get a full crash log?

Unfortunately, the affected users have not opt-in to sharing the crash logs.

do we know if this happened on iOS different than 16.x?

Currently, we only have records showing iOS 16.x. Will let you know if this changes.

also, do you know how often it happens?

Not that often, we have a couple of crashes.

TehilaTaub commented 1 month ago

Hello @msrutek-paylocity Do you have the full apple crash log?

msrutek-paylocity commented 1 month ago

@TehilaTaub Unfortunately, we don't