| Summary: | Old visited pages with wasm content are not cleared from memory when visiting a new wasm page, resulting in OOMs | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | jujjyl |
| Component: | WebAssembly | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Normal | CC: | fpizlo, keith_miller, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | iPhone / iPad | ||
| OS: | iOS 13 | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=206328 | ||
|
Description
jujjyl
2020-01-15 03:20:33 PST
For reference, the size of the .wasm file in https://connect.unity.com/p/kart-mobile-1-0-6?loadingMobile=1 is 21,478,291 bytes, whereas the size of the .wasm file in https://connect.unity.com/p/kart-template-oz?loadingMobile=1 is 5,305,089 bytes. Ops, posted wrong size for the kart-template-oz figure (that was the gzipped size on disk). The correct size for .wasm module in https://connect.unity.com/p/kart-template-oz?loadingMobile=1 is 18,140,743 bytes. So 3,337,548 bytes smaller uncompressed compared to wasm module in kart-mobile-1-0-6 url. Hi there, thanks for the report! I think what was happening was that the Unity wasm module was using a very large amount of memory just to launch and the GC couldn't collect the old module's JIT memory fast enough during a reload. This appears to have been fixed by the new Wasm interpreter. Also, the game seems to launch dramatically faster (<1-2s vs 30+sec). Hey, this is great! Any info on which iOS/Safari version would first have the fix? I'd love to verify that the issue no longer reproes. In addition to the above links failing, it has been reported that https://tiny.vision/demos/TinyRacing/Wasm/TinyRacing.html would also fail to run. That page is an order of magnitude smaller compared to the Kart mobile web page in comment 0. The fix should have shipped with Safari 13.1 in MacOS 10.15.4 and iOS 13.4. |