Bug 248768

Summary: REGRESSION (iOS 16.1): Unity applications crashing
Product: WebKit Reporter: Ruba Merza <ruba.merza>
Component: WebAssemblyAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Major CC: anthony.bowker, ap, djg, gfaraj, karlcow, kbr, kkinnunen, rreno, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: iPhone / iPad   
OS: iOS 16   
Attachments:
Description Flags
Unity project build that loads in iOS 16.0.2 crashes in iOS 16.2
none
MobileSafari Crash logs
none
com.apple.WebKit.WebContent crash logs none

Description Ruba Merza 2022-12-05 11:24:29 PST
Created attachment 463893 [details]
Unity project build that loads in iOS 16.0.2 crashes in iOS 16.2

We've had multiple users report that after updating their devices to iOS 16.1 their Unity WebGL applications have either started crashing or show a noticeable degradation in performance (choppiness, glitching). 

We've tested this with two of our demo projects on an iPhone 14 updated to iOS 16.2 and both projects load the loading page, then the tab refreshes to the same loading page, then the page crashes with the error: "A problem repeatedly occurred on http://...".


The applications do not crash on an iPhone 14 pro 16.0.2, they also do not crash on Chrome on Android devices.
Comment 1 Karl Dubost 2022-12-05 18:58:32 PST
I wonder if there are similarities with Bug 247860
Comment 2 Alexey Proskuryakov 2022-12-07 19:59:34 PST
There should be a crash log generated when this happens, could you please attach one of those?

https://developer.apple.com/documentation/xcode/acquiring-crash-reports-and-diagnostic-logs
Comment 3 Radar WebKit Bug Importer 2022-12-07 20:00:09 PST
<rdar://problem/103101703>
Comment 4 Ruba Merza 2022-12-09 15:50:58 PST
Created attachment 463971 [details]
MobileSafari Crash logs

I'm attaching 2 logs:
The first one is from last week and it's the logs of the MobileSafari app

I attempted to get new MobileSafari logs today but they wouldn't be generated? No idea why :/ but I saw a com.apple.WebKit.WebContent one get generated after the page crashed, so I'm attaching that as well.
Comment 5 Ruba Merza 2022-12-09 15:51:48 PST
Created attachment 463972 [details]
com.apple.WebKit.WebContent crash logs
Comment 6 Alexey Proskuryakov 2022-12-09 17:20:36 PST
The attached files are not crash logs, so they are not useful in this context (you would look for those that have "crash" inside, it is somewhat tricky to separate different kinds of report files).

However, someone at Apple was able to reproduce and to obtain a crash log, so we can move forward with the investigation. Thank you for the report, and for the follow-up!
Comment 7 George Faraj 2023-03-07 18:30:32 PST
Does anyone have an update related to this bug? We've been affected by high CPU usage on several games since December after upgrading to 16.1.1. None of the recent iOS updates (16.4 latest we tried) has fixed it for us.
Comment 8 Dan Glastonbury 2023-03-08 21:53:51 PST
I was able to reproduce this on iPhone 14 with 16.2 but it appears to be fixed in 16.4 beta 3.
Comment 9 George Faraj 2023-03-09 07:52:59 PST
We had tested on 16.4 beta 2 with no success but beta 3 is looking good so far!! Thanks for the call out Dan.