App is terminated when you disconnect the phone when CPAlertTemplate is presented

Number:rdar://46931249 Date Originated:December 24 2018
Status:Open Resolved:DUPLICATE OF 47220458
Product:iOS + SDK: CarPlay Product Version:iOS 12.1.1
Classification:Crash Reproducible:Always

As the title says an app is terminated with "Terminated due to signal 9" when you disconnect a phone and CPAlertTemplate is presented.

Steps to Reproduce:
On example project attached:
1. Start the app.
2. Connect to a head unit on the phone or open CarPlay external display on a simulator.
3. Select "Alert" item in the navigation bar on CarPlay.
4. Wait till an alert screen is presented.
5. Disconnect from the head unit or close CarPlay external display on the simulator.

Expected Results:
The app on the phone is disconnect from the head unit but continues working.

Actual Results:
The app crashes with "Terminated due to signal 9" log.

iOS 12.1.1

iPhone Xs iOS 12.1.1 + Head Unit: Pioneer avic w8400nex - Reproducible on simulator as well.


Reply form Apple "Engineering has determined that your bug report (46931249) is a duplicate of 47220458 and will be closed. "

By eugene.andreiev at Feb. 8, 2019, 9:42 a.m. (reply...)

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!