Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I'm seeing something similar - both while freeing a webview after loading a PDF or while loading html after loading a PDF. It appears to be rdar://10431759 (see <a href="http://openradar.appspot.com/10431759" rel="noreferrer">http://openradar.appspot.com/10431759</a> ). I don't have a way to work around it. I can reproduce it by loading a pdf and then loading the html string <code>@"&lt;div&gt;&lt;/div&gt;"</code>, so it doesn't appear to be a delegate issue.</p> <p>If you type "bt" into the gdb console, you may get the real stacktrace, including:</p> <pre><code>#0 0x37ccd1c8 in objc_exception_throw () #1 0x381817b8 in +[NSException raise:format:arguments:] () #2 0x381817b8 in +[NSException raise:format:arguments:] () #3 0x381817da in +[NSException raise:format:] () #4 0x35462628 in -[NSObject(NSKeyValueObserverRegistration) _removeObserver:forProperty:] () #5 0x35462296 in -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:] () #6 0x31fc3448 in -[UIWebPDFView _removeBackgroundImageObserverIfNeeded:] () #7 0x31fc36a8 in -[UIWebPDFView dealloc] () #8 0x37cc90c4 in _objc_rootRelease () #9 0x31dd2614 in -[UIWebPDFViewHandler clearAllViews] () #10 0x31d76708 in -[UIWebPDFViewHandler _replacePDFViewIfPresentWithWebDocView:] () #11 0x31d766a6 in -[UIWebPDFViewHandler _removePDFViewIfWebDocViewIsNotPDF:] () #12 0x31d76644 in -[UIWebBrowserView webView:didFirstVisuallyNonEmptyLayoutInFrame:] () </code></pre> <p>When debugging on the device, you can type "frame 0" and "po $r0" to see the exception message: (I think it's "po $eax" in the simulator.)</p> <pre><code>(gdb) frame 0 #0 0x37ccd1c8 in objc_exception_throw () (gdb) po $r0 Cannot remove an observer &lt;UIWebPDFView 0x4a3200&gt; for the key path "backgroundImage" from &lt;UIPDFPageView 0x4a4bf0&gt; because it is not registered as an observer. </code></pre> <p><strong>Edit:</strong> This problem only seems to occur when I have "Break on throw" turned on for Objective-C exceptions.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload