WebViewAnimation Crash- [UIWindowLayer actionForKey:]

Originator:aniruddha.shukla.1486
Number:rdar://23840014 Date Originated:12/10/2015
Status:Open Resolved:
Product:iOS Product Version:9.1
Classification: Reproducible:Unable
 
From the crash logs it looks like the WebView tried to perform animation from the background thread and crashed.

Attached is part of the crash Log
"StackTrace" : [
        "#0  Ambulatory                          0X0016ABC3 +[Logging signalHandler:]",
        "#1  Ambulatory                          0X001472C9 -[NSURL portByScheme]",
        "#2  libsystem_platform.dylib            0X37FCE077 _sigtramp()",
        "#3  UIKit                               0X29C36865 -[UIWindowLayer actionForKey:]",
        "#4  QuartzCore                          0X294FD007 -[CALayer layoutSublayers]",
        "#5  QuartzCore                          0X294F86C5 <redacted>()",
        "#6  QuartzCore                          0X294F8559 <redacted>()",
        "#7  QuartzCore                          0X294F7A79 <redacted>()",
        "#8  QuartzCore                          0X294F772B <redacted>()",
        "#9  QuartzCore                          0X294F0EEB <redacted>()",
        "#10 CoreFoundation                      0X25B074C9 <redacted>()",
        "#11 CoreFoundation                      0X25B057CD <redacted>()",
        "#12 CoreFoundation                      0X25A59139 CFRunLoopRunSpecific()",
        "#13 CoreFoundation                      0X25A58F05 CFRunLoopRunInMode()",
        "#14 WebCore                             0X34E82E5F <redacted>()",
        "#15 libsystem_pthread.dylib             0X37FD385B <redacted>()",
        "#16 libsystem_pthread.dylib             0X37FD37CF _pthread_start()",
        "#17 libsystem_pthread.dylib             0X37FD1724 thread_start()"
      ]
    },

Summary:
From the crash logs it looks like the WebView tried to perform animation from the background thread and crashed.

Steps to Reproduce:
From the crash log here are the steps to reproduce.

1) A UIWebView that was refreshed.
2) The UIWebView has multiple freeTextFields which were tapped in and the keyboard is brought up multiple times
3) The user then brings up the UIActionSheet after tapping on a UIWebview element. 
4) After the ActionSheet gets dismissed the app crashes.

Expected Results:
App should not crash.

Actual Results:
App crashes.

Version:
iOS 9.1

Notes:
These crashes have happened in the past in iOS7.x iOS 8.x but with different workflow but due to the same reason trying to animate the webView from the background thread.

Configuration:
iPad 2, WIFI

Attachments:

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!