WebKit.WKMultipleSelectPicker crashes on iOS 13 & iOS 14

My app using WebView in-app, and frequently getting these crashes

WebKit-[WKMultipleSelectPicker pickerView:viewForRow:forComponent:reusingView:]

Anyone have any ideas to fix this? thanks 🙏

Crash logs:

Code Block
Crashed: com.apple.main-thread
0 WebKit 0x1b27ed8c8 -[WKMultipleSelectPicker pickerView:viewForRow:forComponent:reusingView:] + 640
1 UIKitCore 0x1aeff1ac4 -[UIPickerView tableView:cellForRowAtIndexPath:] + 556
2 UIKitCore 0x1aefe7b04 -[UIPickerColumnView tableView:cellForRowAtIndexPath:] + 164
3 UIKitCore 0x1af252b24 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 736
4 UIKitCore 0x1af220870 -[UITableView _updateVisibleCellsNow:] + 2500
5 UIKitCore 0x1af23d5d8 -[UITableView layoutSubviews] + 160
6 UIKitCore 0x1aefea8f0 35-[UIPickerTableView layoutSubviews]_block_invoke + 88
7 UIKitCore 0x1af5031cc +[UIView(Animation) performWithoutAnimation:] + 96
8 UIKitCore 0x1aefea88c -[UIPickerTableView layoutSubviews] + 88
9 UIKitCore 0x1af51085c -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2144
10 QuartzCore 0x1b1aa3724 -[CALayer layoutSublayers] + 284
11 QuartzCore 0x1b1aa987c CA::Layer::layout_if_needed(CA::Transaction*) + 468
12 QuartzCore 0x1b1ab43c0 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 140
13 QuartzCore 0x1b19fcf1c CA::Context::commit_transaction(CA::Transaction*, double) + 296
14 QuartzCore 0x1b1a268bc CA::Transaction::commit() + 676
15 QuartzCore 0x1b196358c CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 888
16 IOKit 0x1abef96d0 IODispatchCalloutFromCFMessage + 480
17 CoreFoundation 0x1aaf0ac74 CFMachPortPerform + 172
18 CoreFoundation 0x1aaf342b4 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 56
19 CoreFoundation 0x1aaf339c0 CFRunLoopDoSource1 + 444
20 CoreFoundation 0x1aaf2e774 CFRunLoopRun + 1888
21 CoreFoundation 0x1aaf2dce8 CFRunLoopRunSpecific + 424
22 GraphicsServices 0x1b507838c GSEventRunModal + 160
23 UIKitCore 0x1af05c444 UIApplicationMain + 1932
24 MyApp 0x1024e7708 main + 27 (MyApp.swift:27)
25 libdyld.dylib 0x1aadb58f0 start + 4

Replies

Hi, we'd love to fix this crash, but we need a reproducible test case. Please post a link to an online test case here, or file a bug report on bugs.webkit.org with a test case attached there. You may also use Feedback Assistant on a beta build to file a bug report (and attach a sample Xcode project).

Please post the Feedback Assistant ID or bugs.webkit.org bug ID here.

For other Apple employees viewing this post, this is tracked internally by rdar://problem/47759304.