Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why I get the console warning: [Process] kill() returned unexpected error 1 when I load a WKWebView in iOS13.2?

Since I installed the iOS 13.2 beta, I have been getting a debug console error message. It happens every time I load a ViewController with a WKWebView object in the storyboard.

Then the following message is shown continuously while the web view is visible ...

2019-10-10 12:10:47.867830+0200 (...) [Process] kill() returned unexpected error 1   2019-10-10 12:10:47.908698+0200 (...) [Process] kill() returned unexpected error 1   2019-10-10 12:10:47.908814+0200 (...) [Process] kill() returned unexpected error 1   2019-10-10 12:10:47.934169+0200 (...) [Process] kill() returned unexpected error 1   2019-10-10 12:10:47.947668+0200 (...) [Process] kill() returned unexpected error 1   2019-10-10 12:10:47.964375+0200 (...) [Process] kill() returned unexpected error 1   2019-10-10 12:10:48.193556+0200 (...) [Process] kill() returned unexpected error 1   2019-10-10 12:10:48.193723+0200 (...) [Process] kill() returned unexpected error 1   2019-10-10 12:10:48.193941+0200 (...) [Process] kill() returned unexpected error 1   2019-10-10 12:10:48.194012+0200 (...) [Process] kill() returned unexpected error 1   2019-10-10 12:10:48.195679+0200 (...) [Process] kill() returned unexpected error 1   2019-10-10 12:10:48.200432+0200 (...) [Process] kill() returned unexpected error 1   2019-10-10 12:10:48.207225+0200 (...) [Process] kill() returned unexpected error 1   2019-10-10 12:10:48.207298+0200 (...) [Process] kill() returned unexpected error 1  

At the moment I close the view I get the following message:

2019-10-10 12:32:41.577505+0200 (...)[ProcessSuspension] 0x1051e50b0 - ProcessAssertion::processAssertionWasInvalidated()  

Sometimes I get the following message in the middle while the web view is loaded: (I can't say when it happens)

2019-10-10 12:33:11.453528+0200 (...) Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service 2019-10-10 12:33:11.459713+0200 (...) Could not signal service com.apple.WebKit.Networking: 113: Could not find specified service 

And the if I touch the screen it starts again

    2019-10-10 12:10:48.200432+0200 (...) [Process] kill() returned unexpected error 1       2019-10-10 12:10:48.207225+0200 (...) [Process] kill() returned unexpected error 1       2019-10-10 12:10:48.207298+0200 (...) [Process] kill() returned unexpected error 1  ... 

I have checked that this is happening in all of the view controllers with WKWebViews of my app, so it doesn't seem to be a code error.

This doesn't crash the app, but I would like to know why this is happening, and if someone else is having the same issue.

like image 574
L33MUR Avatar asked Oct 10 '19 10:10

L33MUR


2 Answers

It's a bug in WebKit (or the underlying OS itself). And no, it was not fixed in 13.[2,3] release.

see:

  • https://bugs.webkit.org/show_bug.cgi?id=202173
  • https://www.mail-archive.com/[email protected]/msg146193.html

Update:

It's fixed in 13.4 release.

like image 181
LET'S DISMANTLE NATO Avatar answered Oct 06 '22 13:10

LET'S DISMANTLE NATO


As in the accepted answer, this is a WebKit bug and it seems that it has been fixed but not released up until the latest iOS release 13.2.2 (at the time of writing this answer) has been fixed in iOS 13.4.

As a workaround, however, you can disable/hide the logs temporarily as mentioned in an answer by @iDevzilla:

1- From Xcode menu open: Product > Scheme > Edit Scheme

2- On your Environment Variables set OS_ACTIVITY_MODE = disable

enter image description here

This will ONLY hide the logs so you can continue developing and testing on iOS. As some indicated, this problem crashes their apps no matter what (for me it is not until now). Also, be careful using this method as it might hide important error messages!

like image 20
TuaimiAA Avatar answered Oct 06 '22 13:10

TuaimiAA