Post not yet marked as solved
Post marked as unsolved with 9 replies, 1,753 views
Hello everyone!
My app is getting a crash in the tableView(_:trailingSwipeActionsConfigurationForRowAt:) function.
Apparently, the app is crashing when trying to get the indexPath.section value. I am attaching the crash log.
This is not reproducible for me. I have the hunch that this might be related to some accessibility feature, but I have not been able to corroborate it yet.
I am not sure how to solve this issue or how to move forward since I still don't know what is causing the app.
Any advice or guidance is really appreciated. Thank you!
Crashed: com.apple.main-thread
EXC_BREAKPOINT 0x00000001bd99e0c8
Crashed: com.apple.main-thread
0	libswiftUIKit.dylib						0x1bd99e0c8 IndexPath.section.getter + 168
1	MyApp													0x1033697a4 TableDelegate.tableView(_:trailingSwipeActionsConfigurationForRowAt:) + 337 (TableDelegate.swift:337)
2	MyApp													0x103369e58 @objc TableDelegate.tableView(_:trailingSwipeActionsConfigurationForRowAt:) + 4316896856 (<compiler-generated>:4316896856)
3	UIKitCore											0x1ad80b9cc -[UITableView _trailingSwipeConfigurationAtIndexPath:fromRemoveButton:] + 1892
4	UIKit													0x1f0935c34 -[UITableViewCellAccessibility _privateAccessibilityCustomActions] + 540
5	UIAccessibility								0x1bd9d8854 -[NSObject(AXPrivCategory) _retrieveCustomActionsForElement:] + 68
6	UIAccessibility								0x1bd9d8b0c -[NSObject(AXPrivCategory) _accessibilityCustomActions] + 220
7	UIAccessibility								0x1bd9f990c -[NSObjectAccessibility accessibilityRespondsToUserInteraction] + 424
8	UIKit													0x1f0952f6c -[UIViewAccessibility accessibilityRespondsToUserInteraction] + 124
9	UIKit													0x1f08f3440 -[UILabelAccessibility accessibilityRespondsToUserInteraction] + 120
10 UIKit													0x1f0959678 -[UIViewAccessibility _isEligibleForFocusInteraction] + 124
11 UIKitCore											0x1ad07f4e4 _UIFocusEnvironmentIsEligibleForFocusInteraction + 64
12 UIKitCore											0x1ad0acb44 __UIFocusMapRecurseSearchForFocusSystemInEligibleContainer + 148
13 UIKitCore											0x1ad0c30f8 -[_UIFocusMapSnapshot addRegionsInContainer:] + 64
14 UIKitCore											0x1ad0c32fc -[_UIFocusMapSnapshot addRegionsInContainers:] + 196
15 UIKitCore											0x1adad78cc -[UIView _searchForFocusRegionsInContext:] + 924
16 UIKitCore											0x1ad0c3178 -[_UIFocusMapSnapshot addRegionsInContainer:] + 192
17 UIKitCore											0x1ad0c32fc -[_UIFocusMapSnapshot addRegionsInContainers:] + 196
50 UIKitCore											0x1ada9595c -[_UIAfterCACommitBlock run] + 64
51 UIKitCore											0x1ad5ff79c _runAfterCACommitDeferredBlocks + 296
52 UIKitCore											0x1ad5eeb4c _cleanUpAfterCAFlushAndRunDeferredBlocks + 200
53 UIKitCore											0x1ad620260 _afterCACommitHandler + 76
54 CoreFoundation								 0x1aad2fecc CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 32
55 CoreFoundation								 0x1aad2a5b0 __CFRunLoopDoObservers + 604
56 CoreFoundation								 0x1aad2aaf8 __CFRunLoopRun + 960
57 CoreFoundation								 0x1aad2a200 CFRunLoopRunSpecific + 572
58 GraphicsServices							 0x1c0e25598 GSEventRunModal + 160
59 UIKitCore											0x1ad5f0004 -[UIApplication _run] + 1052
60 UIKitCore											0x1ad5f55d8 UIApplicationMain + 164
61 MyApp													0x102d7d654 main + 16 (AppDelegate.swift:16)
62 libdyld.dylib									0x1aaa09598 start + 4
Full crash log - https://developer.apple.com/forums/content/attachment/4049d9cc-89db-4d2c-a4d9-d71127396799