iOSKit PickerViewMultiline crashes app in Opening Event

When I use the following code to set up the PickerViewMultiline, the app crashes on the first line. It does this in 2021 R3.1 and 2022 R1.1

I was hoping to use this to change font sizes as the PickerView uses ginormous fonts.

Me.AddColumn(Array("One","Two","Three","Four"))

Me.Invalidate
Me.SelectedRowInColumn(0) = 1

Can you provide a crash log?

Here’s the crash log. Happens on device, and in the simulator on my M1 Mac mini.

Incident Identifier: A443E105-140E-4BF9-A4FB-6B39C1614D20
CrashReporter Key: d9a75c7fa9e10bbf39f3e70b8b94b0b70112fa69
Hardware Model: iPhone11,8
Process: DeCapper.debug [8094]
Path: /private/var/containers/Bundle/Application/AACCB9EF-CDF2-40D2-81C0-EFF7D5AE89FC/DeCapper.debug.app/DeCapper.debug
Identifier: com.sweeneygames.decapper
Version: 1.0.0 (1)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.sweeneygames.decapper [850]

Date/Time: 2022-05-25 11:47:02.3735 -0700
Launch Time: 2022-05-25 11:46:59.4399 -0700
OS Version: iPhone OS 15.5 (19F77)
Release Type: User
Baseband Version: 4.04.02
Report Version: 104

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes: 0x0000000000000001, 0x0000000000000000
VM Region Info: 0 is not in any region. Bytes before following region: 4299030528
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
—>
__TEXT 1003e0000-100788000 [ 3744K] r-x/r-x SM=COW …eCapper.debug
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [8094]

Triggered by Thread: 0

Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x1f86104ec objc_setAssociatedObject + 64
1 UIKitCore 0x1e1e8f780 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1568
2 UIKitCore 0x1e1e8f780 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1568
3 UIKitCore 0x1e236c90c -[UIPickerTableViewWrapperCell setWrappedView:] + 116
4 UIKitCore 0x1e22619fc -[UIPickerView tableView:cellForRowAtIndexPath:] + 576
5 UIKitCore 0x1e21ad0f0 -[UIPickerColumnView tableView:cellForRowAtIndexPath:] + 168
6 UIKitCore 0x1e1f8c6c4 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 1532
7 UIKitCore 0x1e2189af0 -[UITableView _updateVisibleCellsForRanges:createIfNecessary:] + 732
8 UIKitCore 0x1e1fb18bc -[UITableView _updateVisibleCellsNow:] + 1432
9 UIKitCore 0x1e1d8f324 -[UITableView _cellForRowAtIndexPath:usingPresentationValues:] + 248
10 UIKitCore 0x1e212de60 -[UITableView cellForRowAtIndexPath:] + 80
11 UIKitCore 0x1e2bf7760 __61-[UIPickerTableView selectRow:animated:notify:updateChecked:]_block_invoke.243 + 88
12 UIKitCore 0x1e1e787e0 +[UIView(Animation) performWithoutAnimation:] + 104
13 UIKitCore 0x1e21f34dc -[UIPickerTableView selectRow:animated:notify:updateChecked:] + 448
14 UIKitCore 0x1e21acc78 -[UIPickerView _resetSelectionOfTables] + 188
15 UIKitCore 0x1e214f570 __30-[UIPickerView layoutSubviews]_block_invoke + 3712
16 UIKitCore 0x1e1e787e0 +[UIView(Animation) performWithoutAnimation:] + 104
17 UIKitCore 0x1e2115ca8 -[UIPickerView layoutSubviews] + 156
18 UIKitCore 0x1e21cb874 -[UIPickerView _selectRow:inComponent:animated:notify:] + 96
19 DeCapper.debug 0x10053e958 Extensions.UIPickerViewDataSourceMultiline.=SelectedRowInColumn%%o<Extensions.UIPickerViewDataSourceMultiline>i8i8 + 344
20 DeCapper.debug 0x100538450 Extensions.PickerViewMultiline.=SelectedRowInColumn%%o<Extensions.PickerViewMultiline>i8i8 + 208
21 DeCapper.debug 0x1004f9d2c ScreenMain.ScreenMain.PickerViewMultiline1_Open%%o<ScreenMain.ScreenMain>o<Extensions.PickerViewMultiline> + 792
22 DeCapper.debug 0x100500ff8 Delegate.IM_Invoke%%o<Extensions.PickerViewMultiline> + 52
23 DeCapper.debug 0x100500d78 AddHandler.Stub.1%% + 40
24 DeCapper.debug 0x1003faedc iOSControl._FireOpenEvent%%o + 124
25 DeCapper.debug 0x100462aa0 MobileScreen.Constructor%%o + 1308
26 DeCapper.debug 0x1004d37f4 iPhoneLayout.Event__Layout%%o + 260
27 DeCapper.debug 0x10048350c iOSLayout.Constructor%%o + 124
28 DeCapper.debug 0x10054e47c _MakeDefaultScreen + 740
29 DeCapper.debug 0x10054e754 _Startup%b%p + 252
30 DeCapper.debug 0x10067b880 -[XOJAppDelegate application:didFinishLaunchingWithOptions:] + 372
31 UIKitCore 0x1e202b72c -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 340
32 UIKitCore 0x1e2212564 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 3572
33 UIKitCore 0x1e21fb118 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1180
34 UIKitCore 0x1e2058d34 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 152
35 UIKitCore 0x1e1eb33b4 _UIScenePerformActionsWithLifecycleActionMask + 104
36 UIKitCore 0x1e1fddd90 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 216
37 UIKitCore 0x1e20fdaa0 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 248
38 UIKitCore 0x1e233c764 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 772
39 UIKitCore 0x1e22c7d14 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 340
40 UIKitCore 0x1e1eb41a0 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 196
41 UIKitCore 0x1e1f740d8 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 892
42 UIKitCore 0x1e1eb60a4 _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 276
43 UIKitCore 0x1e1fa0244 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 384
44 UIKitCore 0x1e2424e60 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.615 + 776
45 UIKitCore 0x1e1ee4484 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 256
46 UIKitCore 0x1e1f27cc4 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 288
47 UIKitCore 0x1e205db38 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 584
48 UIKitCore 0x1e1f9e508 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 388
49 FrontBoardServices 0x1f1b2f294 -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 440
50 FrontBoardServices 0x1f1b55090 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.215 + 128
51 FrontBoardServices 0x1f1b10308 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 240
52 FrontBoardServices 0x1f1b11958 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 372
53 libdispatch.dylib 0x1df58ca30 _dispatch_client_callout + 20
54 libdispatch.dylib 0x1df5904e0 _dispatch_block_invoke_direct + 264
55 FrontBoardServices 0x1f1b11c70 FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 48
56 FrontBoardServices 0x1f1b11040 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220
57 FrontBoardServices 0x1f1b15700 -[FBSSerialQueue _performNextFromRunLoopSource] + 28
58 CoreFoundation 0x1df947414 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28
59 CoreFoundation 0x1df9581a0 __CFRunLoopDoSource0 + 208
60 CoreFoundation 0x1df8916f8 __CFRunLoopDoSources0 + 368
61 CoreFoundation 0x1df89705c __CFRunLoopRun + 828
62 CoreFoundation 0x1df8aabc8 CFRunLoopRunSpecific + 600
63 GraphicsServices 0x1fb9de374 GSEventRunModal + 164
64 UIKitCore 0x1e221a648 -[UIApplication _run] + 1100
65 UIKitCore 0x1e1f9bd90 UIApplicationMain + 364
66 DeCapper.debug 0x10067c278 runIOSMainLoop() + 112
67 DeCapper.debug 0x1004093d4 Xojo._RuntimeRun + 36
68 DeCapper.debug 0x10054ea78 _Main + 676
69 DeCapper.debug 0x10054dd78 main + 36
70 dyld 0x100a8dce4 start + 520

Thread 1 name: Dispatch queue: com.apple.root.default-qos
Thread 1:
0 libsystem_kernel.dylib 0x21735c138 __ulock_wait + 8
1 libdispatch.dylib 0x1df58d420 _dlock_wait + 56
2 libdispatch.dylib 0x1df58d1d4 _dispatch_thread_event_wait_slow + 56
3 libdispatch.dylib 0x1df59bf70 DISPATCH_WAIT_FOR_QUEUE + 356
4 libdispatch.dylib 0x1df59bb28 _dispatch_sync_f_slow + 144
5 AXCoreUtilities 0x1f5afb320 AXPerformBlockSynchronouslyOnMainThread + 108
6 libdispatch.dylib 0x1df58ae6c _dispatch_call_block_and_release + 32
7 libdispatch.dylib 0x1df58ca30 _dispatch_client_callout + 20
8 libdispatch.dylib 0x1df58fb44 _dispatch_queue_override_invoke + 784
9 libdispatch.dylib 0x1df59e164 _dispatch_root_queue_drain + 396
10 libdispatch.dylib 0x1df59e96c _dispatch_worker_thread2 + 164
11 libsystem_pthread.dylib 0x250a8c080 _pthread_wqthread + 228
12 libsystem_pthread.dylib 0x250a8be5c start_wqthread + 8

Thread 2 name: com.apple.NSURLConnectionLoader
Thread 2:
0 libsystem_kernel.dylib 0x21735b4a0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x21735bae4 mach_msg + 76
2 CoreFoundation 0x1df892d30 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0x1df8971bc __CFRunLoopRun + 1180
4 CoreFoundation 0x1df8aabc8 CFRunLoopRunSpecific + 600
5 CFNetwork 0x1e032323c 0x1e00ab000 + 2589244
6 Foundation 0x1e10e943c NSThread__start + 808
7 libsystem_pthread.dylib 0x250a8c9ac _pthread_start + 148
8 libsystem_pthread.dylib 0x250a8be68 thread_start + 8

Thread 3:
0 libsystem_pthread.dylib 0x250a8be54 start_wqthread + 0

Thread 4 name: com.apple.CFSocket.private
Thread 4:
0 libsystem_kernel.dylib 0x21735c164 __select + 8
1 CoreFoundation 0x1df936b68 __CFSocketManager + 644
2 libsystem_pthread.dylib 0x250a8c9ac _pthread_start + 148
3 libsystem_pthread.dylib 0x250a8be68 thread_start + 8

Thread 5:
0 libsystem_pthread.dylib 0x250a8be54 start_wqthread + 0

Thread 6 name: com.apple.uikit.eventfetch-thread
Thread 6:
0 libsystem_kernel.dylib 0x21735b4a0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x21735bae4 mach_msg + 76
2 CoreFoundation 0x1df892d30 __CFRunLoopServiceMachPort + 372
3 CoreFoundation 0x1df8971bc __CFRunLoopRun + 1180
4 CoreFoundation 0x1df8aabc8 CFRunLoopRunSpecific + 600
5 Foundation 0x1e1099464 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236
6 Foundation 0x1e10dae2c -[NSRunLoop(NSRunLoop) runUntilDate:] + 92
7 UIKitCore 0x1e2194770 -[UIEventFetcher threadMain] + 524
8 Foundation 0x1e10e943c NSThread__start + 808
9 libsystem_pthread.dylib 0x250a8c9ac _pthread_start + 148
10 libsystem_pthread.dylib 0x250a8be68 thread_start + 8

Thread 7 name: Dispatch queue: com.apple.UIKit.KeyboardManagement
Thread 7:
0 libsystem_kernel.dylib 0x21735c138 __ulock_wait + 8
1 libdispatch.dylib 0x1df58d420 _dlock_wait + 56
2 libdispatch.dylib 0x1df58d1d4 _dispatch_thread_event_wait_slow + 56
3 libdispatch.dylib 0x1df59bf70 DISPATCH_WAIT_FOR_QUEUE + 356
4 libdispatch.dylib 0x1df59bb28 _dispatch_sync_f_slow + 144
5 UIKitCore 0x1e20745ac __37-[_UIRemoteKeyboards startConnection]block_invoke_3 + 136
6 CoreFoundation 0x1df8adb24 invoking
+ 148
7 CoreFoundation 0x1df8cb610 -[NSInvocation invoke] + 468
8 Foundation 0x1e10b5938 NSXPCCONNECTION_IS_CALLING_OUT_TO_REPLY_BLOCK + 24
9 Foundation 0x1e10d6f74 -[NSXPCConnection _decodeAndInvokeReplyBlockWithEvent:sequence:replyInfo:] + 572
10 Foundation 0x1e10b1480 __88-[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:]_block_invoke_3 + 212
11 libxpc.dylib 0x250ac16ac _xpc_connection_reply_callout + 124
12 libxpc.dylib 0x250ab4bcc _xpc_connection_call_reply_async + 88
13 libdispatch.dylib 0x1df58cab0 _dispatch_client_callout3 + 20
14 libdispatch.dylib 0x1df5aa214 _dispatch_mach_msg_async_reply_invoke + 340
15 libdispatch.dylib 0x1df594000 _dispatch_lane_serial_drain + 376
16 libdispatch.dylib 0x1df594cb4 _dispatch_lane_invoke + 444
17 libdispatch.dylib 0x1df59f500 _dispatch_workloop_worker_thread + 648
18 libsystem_pthread.dylib 0x250a8c0bc _pthread_wqthread + 288
19 libsystem_pthread.dylib 0x250a8be5c start_wqthread + 8

Thread 8:
0 libsystem_pthread.dylib 0x250a8be54 start_wqthread + 0

Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000238b11c53 x2: 0x0000000101847400 x3: 0x0000000000000001
x4: 0x0000000000000010 x5: 0x0000000000000000 x6: 0x0000000000000400 x7: 0x0000000229761760
x8: 0x0000000101847400 x9: 0x0000000229aafcda x10: 0x00000001109fa36a x11: 0x00ff000101870c00
x12: 0x0000000000000023 x13: 0x0000000101870e20 x14: 0x00000001df538000 x15: 0x0000000238b253b0
x16: 0x00000001f86104ac x17: 0xf622aa81e363ccec x18: 0x0000000000000000 x19: 0x0000000000000000
x20: 0x0000000000000001 x21: 0x0000000000000000 x22: 0x0000000101847400 x23: 0x0000000000000068
x24: 0x0000000229a5d036 x25: 0x000000022a26a472 x26: 0x0000000000000000 x27: 0x0000000229f7c000
x28: 0x0000000000000028 fp: 0x000000016fa1bdd0 lr: 0x01072e81e1e8f780
sp: 0x000000016fa1bd50 pc: 0x00000001f86104ec cpsr: 0x80000000
far: 0x0000000000000000 esr: 0x92000006 (Data Abort) byte read Translation fault

Binary Images:
0x1f8609000 - 0x1f8645fff libobjc.A.dylib arm64e /usr/lib/libobjc.A.dylib
0x1e1d06000 - 0x1e35a1fff UIKitCore arm64e <3ed35565456d33cbb5546c567fa81585> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
0x1003e0000 - 0x100787fff DeCapper.debug arm64 /private/var/containers/Bundle/Application/AACCB9EF-CDF2-40D2-81C0-EFF7D5AE89FC/DeCapper.debug.app/DeCapper.debug
0x1f1b06000 - 0x1f1bb2fff FrontBoardServices arm64e <8d4d34db2d963e20b4199e756760d079> /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices
0x1df589000 - 0x1df5cefff libdispatch.dylib arm64e <355accf439173730bc55ef7003887abe> /usr/lib/system/libdispatch.dylib
0x1df88c000 - 0x1dfce1fff CoreFoundation arm64e <5198fb5756453b34a49ff32b52256cf3> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x1fb9dd000 - 0x1fb9e5fff GraphicsServices arm64e <260f066ec5de3844967e483985448f21> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x100a74000 - 0x100acbfff dyld arm64e <7c9c7851823738a7b1eb9cd2deb4b746> /usr/lib/dyld
0x21735a000 - 0x21738ffff libsystem_kernel.dylib arm64e <1db00c916ad8384085030c6fbffa8e0b> /usr/lib/system/libsystem_kernel.dylib
0x1f5af9000 - 0x1f5b11fff AXCoreUtilities arm64e <18307395ddff3ef4b16f41112fba3bbd> /System/Library/PrivateFrameworks/AXCoreUtilities.framework/AXCoreUtilities
0x250a8b000 - 0x250a96fff libsystem_pthread.dylib arm64e <1026e3a4d3c03b0da552f185d6772a29> /usr/lib/system/libsystem_pthread.dylib
0x1e00ab000 - 0x1e056cfff CFNetwork arm64e <7072273c58d23dc29e98a6ed768544d8> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x1e1080000 - 0x1e138afff Foundation arm64e /System/Library/Frameworks/Foundation.framework/Foundation
0x250aa6000 - 0x250ae2fff libxpc.dylib arm64e <267da60eb413307fbf47c71b78244a25> /usr/lib/system/libxpc.dylib

EOF