question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android WebAssembly.Memory()

See original GitHub issue

Describe the bug using chrome 88 for android we get an memory issue

To Reproduce Steps to reproduce the behavior:

  1. enable cross origin isolated in flags
  2. Navigate to https://ffmpegwasm.et.r.appspot.com/
  3. run script using 3s clip

Smartphone (please complete the following information):

  • Device: Samsung S9
  • OS: Android 10
  • Browser Chrome beta
  • Version 88

Additional context as of chrome 88 Shared Array Buffers are to be enabled as default (See https://www.chromestatus.com/feature/5171863141482496 https://www.chromestatus.com/feature/4570991992766464)

[Error]

a842de40-97a2-4a2b-927e-0cac9b769fc3:22 Uncaught (in promise) RangeError: WebAssembly.Memory(): could not allocate memory
    at a842de40-97a2-4a2b-927e-0cac9b769fc3:22
    at createFFmpeg.js:64
    at u (runtime.js:63)
    at Generator._invoke (runtime.js:293)
    at Generator.next (runtime.js:118)
    at n (asyncToGenerator.js:3)
    at o (asyncToGenerator.js:25)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:7
  • Comments:9

github_iconTop GitHub Comments

3reactions
Manitej66commented, Sep 4, 2022

Guyssss! FFMPEG started working on chrome android from version 11.4 !!! update version to @ffmpeg/ffmpeg": "^0.11.4

0reactions
ivanburlakovcommented, May 6, 2021

Did you succeed, @ivanburlakov ?

I did not work with ffmpegwasm for a while.

Read more comments on GitHub >

github_iconTop Results From Across the Web

1175564 - Chrome is unable to grow WebAssembly Memory ...
Unity users are reporting that on Android, Chrome is unable to grow WebAssembly heap sizes much higher than the initial amount for their...
Read more >
WebAssembly.Memory - MDN Web Docs
The WebAssembly.Memory object is a resizable ArrayBuffer or SharedArrayBuffer that holds the raw bytes of memory accessed by a WebAssembly.
Read more >
WebAssembly - `Memory()` constructor: `shared` flag - CanIUse
JavaScript built-in: WebAssembly: Memory: Memory() constructor: shared flag · Global · Chrome · Edge * · Safari · Firefox · Opera · IE...
Read more >
could not allocate memory" when running ffmpeg.wasm on ...
Brief about problem: The error only comes for android chrome browser. The same code works fine on pc/laptop chrome. Have also enabled ...
Read more >
Unable To Grow Allocated Memory Above 256MB [Confirmed ...
So on Android Chrome, the 128MB build works fine until the memory ... with King on WebAssembly Candy Crush for mobile Android browsers, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found