PHPickerViewController crashes when searching with "plugin interrupted while in use"

Number:rdar://FB9006101 Date Originated:2021-02-15
Status:Open Resolved:
Product: Product Version:
Classification: Reproducible:True
Please describe the issue:

The plugin crashes when searching for a picture. This behavior is witnessed on an iPhone 12 Pro Max (MGCK3LL/A) with iOS Version 14.4 (18D52).

2021-02-15 22:04:26.182071-0800 BrokenPickerView[643:61236] [lifecycle] [u 7453D78F-7FF3-42FE-8D34-1D2746E44B24:m (null)] [] Connection to plugin interrupted while in use.
2021-02-15 22:04:26.182505-0800 BrokenPickerView[643:61236] [lifecycle] [u 7453D78F-7FF3-42FE-8D34-1D2746E44B24:m (null)] [] Connection to plugin invalidated while in use.
2021-02-15 22:04:26.194550-0800 BrokenPickerView[643:61091] [Picker] Showing picker unavailable UI (reason: crashed) with error: (null)
2021-02-15 22:04:26.203116-0800 BrokenPickerView[643:61091] viewServiceDidTerminateWithError:: Error Domain=_UIViewServiceInterfaceErrorDomain Code=3 "(null)" UserInfo={Message=Service Connection Interrupted}

Please list the steps you took to reproduce the issue:
1. Open the sample project and run on an iPhone.
2. Tap "Select Image" and tap any saved image to see it displays it normally.
3. Tap "Select Image" again, but search for something to see crash.

What did you expect to happen?
Normal search behavior for an image picker.

What actually happened?
The plugin crashed.

Sample project:


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!