webarkit / webarkit-testing

Testing a new version of WebARKit
https://www.webarkit.org/examples/webarkit-testing/
GNU General Public License v3.0
2 stars 0 forks source link

RangeError: WebAssembly.instantiate(): Out of memory #10

Closed kalwalt closed 1 year ago

kalwalt commented 1 year ago

While testing on Mobile(Android) i get:

RuntimeError: Aborted(RangeError: WebAssembly.instantiate(): Out of memory: Cannot allocate Wasm memory for new instance)
    at mA (WebARKit.js:2:22558)
    at WebARKit.js:2:25463
onError @ worker.js:42
Promise.catch (async)
initTracker @ worker.js:47
self.onmessage @ worker.js:11

this is caused because the Memory option https://github.com/kalwalt/webarkit-testing/blob/8e6d24c526005833c6d284f639ddd7098c133503/tools/makem.js#L42 in the Emscripten is too big

kalwalt commented 1 year ago

This issue was fixed with https://github.com/kalwalt/webarkit-testing/commit/41c7edecf0c5ceb301fc0ecea5f2f00e5153a96d but switching from portrait to landscape mode (or reversing) raise an unvaught error pointing to the processFrame EM function. I will open a new issue for this.