Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Crash after 8 min: WKErrorDomain Code 2 #66

Open
VioletteA opened this issue Jul 19, 2018 · 1 comment
Open

Crash after 8 min: WKErrorDomain Code 2 #66

VioletteA opened this issue Jul 19, 2018 · 1 comment

Comments

@VioletteA
Copy link

VioletteA commented Jul 19, 2018

Hi,

The application crashes after a few minutes (about 7-8 minutes), with the following error message:

ERROR: Evaluating jscode:
Error Domain=WKErrorDomain Code=2 "The Web Content process was terminated"
UserInfo={NSLocalizedDescription=The Web Content process was terminated}

I couldn't find where the bug came from. I tested on several pages, including https://google-ar.github.io/three.ar.js/examples/spawn-at-camera.html to see if it could come from my code or not: it happens every time.

For all tests, camera frames were enabled (SEND_CAMERA_FRAME_TO_JS=true) and arView.vrDisplay.passThroughCameraImage_.src was displayed in a div in the background.

When the error occurs, the console closes, so I can't see any particular warning or error message...

Thank you for your time

bug-webaronarkit_code2

EDIT: While consulting the device's console, I saw this notification, which happens shortly before the crash:
"10:31:10.136189 +0200 com.apple.WebKit.WebContent Got memory pressure notification (critical)"

So it seems that it is in fact a memory problem. I'm working on an ipad pro 10.5"

@Nsl42
Copy link

Nsl42 commented Sep 5, 2018

Up !
I'm facing the same problem, "com.apple.WebKit.WebContent Got memory pressure notification (critical)", and then the browser outputting so many errors i have to close it.

Anything i've tried seem to have no effect on this, errors still happening after (more or less) 6/10min of usage in normal conditions.

I'm trying to enable AR on an already existing application, but I don't think it has anything to do with the existing application, since it works very well without the AR enabled.

If someone have any idea, it would be great !
Thank you in advance,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants