WKWebview crashes in _addUpdateVisibleContentRectPreCommitHandler method

Hello,


I'm having a rare webkit related crash in my app, happens in 0.01% of all sessions last week but represents 30% of all crashes my app is getting.


Unfortunately all I have for investigating the issue is data from hockeyapp crash reporting, I can't reproduce it locally.


My app uses webviews to display content but also includes Google Admob and mediation partners which AFAIK use webviews for running some JS.


Would appreciate any advice on what I could do to track down this crash.


The crash has the following stacktrace.


It only happens on iOS 11 from what I can tell.


objc_msgSend() selector name: _isValid


Thread 0 Crashed:

1 libobjc.A.dylib objc_msgSend + 16

2 WebKit __57-[WKWebView _addUpdateVisibleContentRectPreCommitHandler]_block_invoke + 28

3 QuartzCore CA::Transaction::run_commit_handlers(CATransactionPhase) + 60

4 QuartzCore CA::Context::commit_transaction(CA::Transaction*) + 1336

5 QuartzCore CA::Transaction::commit() + 536

6 QuartzCore CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 88

7 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 28

8 CoreFoundation __CFRunLoopDoObservers + 408

9 CoreFoundation __CFRunLoopRun + 1288

10 CoreFoundation CFRunLoopRunSpecific + 432

11 GraphicsServices GSEventRunModal + 96

12 UIKit UIApplicationMain + 204

13 <Redacted> (AppDelegate.swift:18)

14 libdyld.dylib start + 0

Replies

I have the same issue. This would seem to be an easy fix for Apple. Have you raised a bug report?


Winston.

Same to us.