Scheduling a large number of notifications in the past crashes the SpringBoard

Originator:michaelhochs
Number:rdar://24056370 Date Originated:05-Jan-2016 04:36 PM
Status:Open Resolved:
Product:iOS Product Version:9.2
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
When scheduling a large number of local notification with a fire date in the past (e.g. due to a bug), not only does the app that does this crash but also the SpringBoard. This results in the white Apple logo showing while SpringBoard is restarting.

Sometimes also an Apple Watch that is attached to the device does crash as well.

Steps to Reproduce:
- Open the attached sample project and run on an iPhone
- Respond to the question if the app can show local notifications with ‘allow’
- Wait 30 seconds

Expected Results:
- Nothing happens or maybe the app itself crashes

Actual Results:
- The white Apple Logo is shown and SpringBoard restarts

Regression:


Notes:
Sample Project: https://github.com/michaelochs/radars/tree/master/24056370%20-%20SpringBoardCrash

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com 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!