Safari, WKWebview Crash in iOS 15 Beta2

We are servicing html5 games. I got a report from a user, and I heard that it will be whited out shortly after entering the game lobby in ios 15 beta. It was not a problem in iOS 14, but in iOS 15 beta2, it is forcibly terminated shortly after entering the lobby. Safari and WKWebview are all the same, and the same problem occurs regardless of the device. The devices I tested were ipad mini4, iphone 11, iphone 12.

Seeing that it does not crash when the light effect tween is turned off, I think that the amount of memory available to the GPU for rendering has decreased.

Does anyone have similar symptoms related to html5 games?

Answered by adrianli in 684348022

try to disable option "GPU Process: Canvas Rendering". we don't know why it's on by default on beta 4 and 5.

yes, we have experienced Safari performance problem on ios 15 too.

even worse on beta 5, using a game from https://www.pixijs.com/gallery https://tooncup.cartoonnetwork.co.uk/home/

it gets stuck at the entering game, while there is no problem on ios 14.

Accepted Answer

try to disable option "GPU Process: Canvas Rendering". we don't know why it's on by default on beta 4 and 5.

  1. If there is a large amount of JavaScript to be parsed at once, the JavaScript engine seems to be very slow.
  2. Create a Graphics object using a path with many points and use it as a mask, and if you move it, memory leak occurs and the webview dies. ( in Cavas mode )
  3. If you do not disable GPU Process:Canvas Rendering when rendering in WebGL mode, it may become stuck when moving the scene. (tested in safari)

How can we fix this from code in WKWebKit?

It seems the trigger is unicode string. We made a demo app and it worked in iOS15. After we put a unicode string it started to crash.

How can we fix this from code in WKWebKit?

I get the problem that video only sound but no picture,in wkwebview iOS 15, both in our app and safari with device ipad 6, ipad mini 5 and iphone 8p i disable option "GPU Process: Media", and in safari it get right. so how can we fix this from code in WKWebKit?

This new feature completely broke my app - which is a WKWebView with a large canvas. Performance is incredibly slow and renders the app useless. Worked great in iOS 14..

How can we disable this setting in a WKWebView?

Why would it be that that canvases performed better on the CPU but Apple dropped that as the default and switched to GPU processing? Wouldn't the switch be to increase performance?

Really concerned about the future of my app if we can't disable this 'feature'. Will the setting eventually go away and this will be the default?

We have the same problem. Our iOS and iPad app is built with WKWebView technologies and on iOS 15 and iPadOS 15 we now have huge problems with performance and stability because of this GPU option by default (on the previous iOS/iPadOS versions it's fine).

And we couldn't find a way how to turn this GPU option off in the app. Apple team, we need your help with this, a lot of users struggle.

I reported it to apple, but this issue still keeps ignored. Monopoly companies are always willful, what can you do

same problem. Using canvas. Background the page then come back and everything is almost, but not quite, frozen. Users will have no clue how to fix this themselves.

We have the same issue, bug reported - FB9687881, please take a look

We have similar issue. Our app using xTerm.js in WKWebview encounters character disappear and frequently crash.

It is all good on Safari on all devices and Simulators, and also on SFSafariViewController. It just happens in WKWebview on iPadOS 15.1 and iPhone Simulator with iOS 15.0 according to our test.

So we guess some features in WKWebview (possibly Canvas) have different behavior but we don't know what are they.

Any updates? Canvas in WKWebView are unusable.

Same issue occurred on both Safari & WKWebview of iOS 16.0.3 in Oct 2022.

On speicific iPhone models (tested on iPhone 12/13/SE 2020), when "GPU Process DOM Rendering" (previously GPU Process: Canvas Rendering), under [Settings] > [Safari] > [Advanced] > [Experimental Features] is ON, my website ran extremely slow and crashed very often. Also, webfonts, images and icons were not loaded properly. In the meantime, parts of the page blacked out occasionally without reason. However, iPhone XR seems not be affected.

  • My website: https://hearty.me/hearty

Same issue in Webkit Webview. Please FIX this :( Or at least add some kind of way to turn it off for the webview in an xcode application.

我们总以为,精彩的人生要靠惊天动地的成就来支撑,要拥有耀眼的光环、顺遂的境遇才算圆满。可走过岁岁年年才懂得,人生的常态从不是轰轰烈烈,而是藏在日复一日的坚持里,藏在平凡生活的深耕与热爱中。真正的成长,从来都悄无声息,扎根在寻常的烟火日常。 生活难免有困顿与迷茫,有努力却无果的失落,有奔波却平淡的日常。很多时候,我们会因为暂时的停滞自我怀疑,因为他人的光鲜心生焦虑,觉得自己的步履缓慢、一事无成。但人生从不是一场竞速比赛,不必追赶别人的脚步,每个人都有属于自己的节奏与花期。有人年少成名,有人大器晚成,慢一点、稳一点,从来都不是遗憾。 真正的励志,从不是热血沸腾的口号,而是脚踏实地的坚守。是清晨不愿懈怠的起身,是困境中不轻言放弃的执着,是在琐碎生活里依然保持向上的勇气。认真做好每一件小事,坚持每一次微小的努力,读书、沉淀、自律、成长,那些不被看见的默默耕耘,终会成为照亮前路的光芒。 不必抱怨生活平淡,不必焦虑时光缓慢。平凡从不等于平庸,日复一日的坚持,本身就是一种力量。接纳生活的不完美,包容自己的小笨拙,在普通的日子里沉淀自己、提升自己。只要心怀热爱、步履不停,坚守初心、稳步前行,平凡的人生,也能褪去平庸,在时光的浇灌下,开出属于自己的繁花。

Safari, WKWebview Crash in iOS 15 Beta2
 
 
Q