WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 291699
291677
Memory Exceedance and Page Reload During WASM Compilation in WebGL Games on iOS 18.4
https://bugs.webkit.org/show_bug.cgi?id=291677
Summary
Memory Exceedance and Page Reload During WASM Compilation in WebGL Games on i...
Ocean
Reported
2025-04-17 05:59:33 PDT
Created
attachment 474942
[details]
crashed Html page and the corresponding WASM file Description: We are encountering an issue where our WebGL-based games, built using Unity and exported as WASM, experience a page reload during the WASM compilation phase upon game launch. Steps to Reproduce: The attachment provides a web page and the corresponding loaded WASM file(200,000 empty functions), hosted by http server, opened by Safari browser 18.4. Actual Results: The page fails to load properly, and the console logs show memory exceeded errors. The console.app logs indicate memory exceeding the threshold, specifically showing: memorystatus: killing_highwater_process pid 4738 [com.apple.WebKit.WebContent] (highwater 100 3s rf:-) 2025555KB - memorystatus_available_pages: 92254 compressor_size:21112 Additional Builds and Platforms: This issue is observed on various iOS devices (iPhone 11, iPhone 13, iPhone SE3) upgraded to iOS 18.4. (No crash occurs before iOS 18.4) Our Analyze: Upon analyzing the issue, we identified that the problem does not occur on iOS 18.3 or earlier versions. Further investigation using the WebKit GitHub repository revealed that a specific commit might be causing the memory spike. By commenting out the relevant code section, the memory peak issue was resolved. LLIntGenerator: :LLIntGenerator(...) { m_codeBlock->m_callees = FixedBitVector(m_info.internalFunctionCount ()) ; } IPIntGenerator:: IPIntGenerator () { m_metadata->m_callees = FixedBitVector(m_info.internalFunctionCount ()); } The commit of the issue probably is
https://github.com/WebKit/WebKit/commit/e9ced931afc738c9413a26562ad2dd1d7fec4cd2
This issue has affected many of our games, and there is a lot of feedback in the game engine community(
https://discussions.unity.com/t/webgl-is-not-working-on-safari-after-ios-18-4-update/1628007
,
https://discussions.unity.com/t/webgl-random-crashes-on-ios-18-works-fine-on-ios-18/1627624
). Please help with analysis. Thanks in advance.
Attachments
crashed Html page and the corresponding WASM file
(544.49 KB, application/zip)
2025-04-17 05:59 PDT
,
Ocean
no flags
Details
webkit_before_commit
(2.58 MB, image/png)
2025-04-17 06:07 PDT
,
Ocean
no flags
Details
webkit_after_commit
(2.59 MB, image/png)
2025-04-17 06:08 PDT
,
Ocean
no flags
Details
webkit_recently, peak memory of Compile Memory
(2.24 MB, image/png)
2025-04-17 06:09 PDT
,
Ocean
no flags
Details
game_sample(130K functions)
(30.87 MB, application/zip)
2025-04-17 06:31 PDT
,
Ocean
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Ocean
Comment 1
2025-04-17 06:07:56 PDT
Created
attachment 474943
[details]
webkit_before_commit
Ocean
Comment 2
2025-04-17 06:08:39 PDT
Created
attachment 474944
[details]
webkit_after_commit
Ocean
Comment 3
2025-04-17 06:09:58 PDT
Created
attachment 474945
[details]
webkit_recently, peak memory of Compile Memory
Ocean
Comment 4
2025-04-17 06:31:35 PDT
Created
attachment 474947
[details]
game_sample(130K functions)
Sihui Liu
Comment 5
2025-04-17 20:24:49 PDT
Fixed in
https://bugs.webkit.org/show_bug.cgi?id=291699
. *** This bug has been marked as a duplicate of
bug 291699
***
Myrindy
Comment 6
2025-05-06 04:33:30 PDT
Any update on this issue? Seems like it was wrongly assigned as a duplicate.
Mahdi.Rashidi.info
Comment 7
2025-05-07 05:02:58 PDT
Hi there i still have this issue on IOS 18.4 is there any update for this ?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug