UIPDFPageRenderOperation object overreleased while already deallocating

Originator:guillaume.algis
Number:rdar://25489061 Date Originated:01-Apr-2016 03:07 PM
Status:Open Resolved:
Product:iOS SDK Product Version:9.3
Classification:Other Bug Reproducible:Always
 
Summary:
Since iOS 9.3, loading PDF data into a UIWebView produces the following log:
"objc[1369]: UIPDFPageRenderOperation object <address> overreleased while already deallocating; break on objc_overrelease_during_dealloc_error to debug"

Steps to Reproduce:
1. Create an new iOS app with a UIWebView
2. Load a PDF content into a NSData variable
3. Use -[loadData:MIMEType:textEncodingName:baseURL:] to load the PDF data into the webview

Expected Results:
No logs appear in the debug console.

Actual Results:
The message "objc[1369]: UIPDFPageRenderOperation object <address> overreleased while already deallocating; break on objc_overrelease_during_dealloc_error to debug" appear in the console.

Regression:
Did not occur with iOS version under 9.3.

Notes:
Attached is a minimal test project presenting the issue. Just run the project and look at the logs.

Comments

Crash when we scroll really fast on PDF rendered in WKwebView

I even get a crash if I scroll really fast on the PDF rendered in the WKWebView. This crash is happens when the UIGestureRecognizers are being deallocated inside [UIPDFView dealloc ] Unable to find the original issue for this

Wish there was a way to add image to be able to provide teh exact stack trace.

08-Apr-2016 08:02 AM : Closed as duplicate of 24504039 (Open)

By guillaume.algis at June 7, 2016, 4:17 p.m. (reply...)

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!