Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

On iOS 10, GLTF-WebGL app crashes, Application is build using WKWebView

I am working on 3D model in javascript & using GLTF webGL to render 3D model in iOS. I am loading this model using WKWebView in Ipad Air/Ipad Air 2.

This configuration/application works perfect in IOS9, But after upgrading OS to IOS 10 my application get crashed. I am trying to debug same on Xcode then showing following error message :

Error Message:  "#WK: Unable to acquire assertion for process 0".

We have tried same thing using UIWebView in IOS10 it is working but performance is low (application working slow).

Additional information :

  1. GLTF-WEBGL link to open 3D model https://github.com/montagejs/glTF-webgl-viewer.git.
  2. When I changed offsetHeight to scrollHeight, able to view the 3D model, but crashed after some time.

Any body have any cue to debug WebGL issues on iOS 10 ?

like image 272
user3587692 Avatar asked Oct 03 '16 11:10

user3587692


1 Answers

Please check the log in console whether you can find anything. I had the same error "Error Message: "#WK: Unable to acquire assertion for process 0".", and I found it was because I used css property -webkit-overflow-scrolling, this property consumed a lot memory, and last WebKit process crashed.

like image 71
Robert Avatar answered Oct 20 '22 04:10

Robert