Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web View Exception

I am loading a URL request in web View and sometimes I am getting the following warning in logs. Due to the warning, webViewDidFinishLoad never gets called.

WebKit discarded an uncaught exception in the webView:didFinishLoadForFrame: delegate: attempt to delete item 1 from section 0 which only contains 1 items before the update.

I have added web view in the collection view cell.

Any help would be highly appreciated!!

like image 952
User511 Avatar asked Jun 05 '26 10:06

User511


1 Answers

Add an exception breakpoint. This will fire when the exception is raised, which will let you see what's happening.

Debug>Breakpoints>Create Exception Breakpoint…

It is possible to encounter harmless caught exceptions that will fire this breakpoint, but they're very rare, so generally if this breakpoint fires, it's a legitimate problem. Don't confuse these exceptions with Swift throws. They're not related.

like image 140
Rob Napier Avatar answered Jun 06 '26 23:06

Rob Napier