[Webkit-unassigned] [Bug 256023] New: Out of memory error of generating WebAssembly.Memory in AudioWorklet Processor after reloading many times

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 26 19:51:11 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=256023

            Bug ID: 256023
           Summary: Out of memory error of generating WebAssembly.Memory
                    in AudioWorklet Processor after reloading many times
           Product: WebKit
           Version: Safari 16
          Hardware: iPhone / iPad
                OS: iOS 16
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebAssembly
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: tamaru at korg.co.jp

Created attachment 466113

  --> https://bugs.webkit.org/attachment.cgi?id=466113&action=review

Source  code of the demo page

Steps to produce:
1. Create a web page:
1.1. Create an AudioContext and an AudioWorklet.
1.2. Create a 256MB (to be precise, 268435456 bytes) WebAssembly.Memory in the AudioWorkletProcessor.
2. Open the page in iOS Safari or iOS Chrome.
3. Reload the page many (7) times.
-> On the 7th reload (8th opening), the WebAssembly.Memory cannot be created due to an "Out of memory" error.

Notes:
- Opening the page in another tab does not cause the issue.
- Just referring to the buffer of the WebAssembly.Memory also prevents the issue, but I do not know why.
- Closing the AudioContext and assigning null to the WebAssembly.Memory did not solve the issue.

Demo page:
https://wasm-memory-in-audioworklet-test.netlify.app/
By selecting "OK" of the confirmation dialog, the buffer of the WebAssembly.Memory will be referred to, resulting in no error.
By selecting "Cancel" of the confirmation dialog, the buffer of the WebAssembly.Memory will not be referred to, resulting in the error on the 7th reload.

The source code is attached.

I tested on iPadOS 16.4.1, iPad Air 5th gen.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230427/1900c0d6/attachment.htm>


More information about the webkit-unassigned mailing list