[UIWindowLayer actionForKey:] - Returning to foreground crash

Originator:roguescroll
Number:rdar://19375999 Date Originated:01-05-2015
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 8.1
Classification:Crash Reproducible:Rarely
 
Summary:
We render a HTML on a UIWebView. While the rendering is going on, the user plugs in the device to the mac and the "Trust this computer" alert shows up. This moves the app to the background and on dismissing the alert, while the app comes to the foreground, it crashes. 

However, this issue is very infrequent. I have attached both the stack trace and the thread on which the app crashed.

Steps to Reproduce:
1. Have a UIWebview in the application.
2. Load a HTML on the webview.
3. While the webview is rendering, connect the device to the mac and let the "Trust your computer" alert show up.
4. On dismissing the alert, the app crashes.

Expected Results:
The app does not crash when the "Trust your computer" alert is dismissed when the UIWebview is still rendering.

Actual Results:
The app crashed when the "Trust your computer" alert is dismissed when the UIWebview is still rendering.

Version:
iPhone OS Version 8.1 (Build 12B411)

Configuration:
iPhone 6 Plus

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!