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.

help building for mobile

See original GitHub issue

HI!

I’m new here, I loved this work, an amazing work, very thanks to produce this. But I’m facing some problems and I need some help, I tried my best. I’m trying to run this for mobile, latest chrome, I got the next error: Uncaught (in promise) RangeError: WebAssembly.Memory(): could not allocate memory I searched here, I must build the ffmpeg with 0.5 GB or less. I did, after facing problems and hours.

Then I got this error: Uncaught (in promise) RuntimeError: abort(Assertion failed: Cannot call unknown function proxy_main, make sure it is exported). Build with -s ASSERTIONS=1 for more info Searched, I must replace proxy_main with main, I did

And finally worked! But what? After selecting the audio, the browser freeze! I opened console, got this: [fferr] Blocking on the main thread is very dangerous, see https://emscripten.org/docs/porting/pthreads.html#blocking-on-the-main-browser-thread

Now… what? The build process takes 2 hours to end, this happens with -s INITIAL_MEMORY=268435456 ~= 256MB of ram. Is 256MB is the reason? Or what can i do?

And if anyone built this for mobile and worked, can I get the built?

Thanks, and thanks for reading

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:4
  • Comments:8

github_iconTop GitHub Comments

1reaction
steady-joincommented, Feb 7, 2022

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

1reaction
JuanGuerreroUPcommented, Feb 7, 2022

First of all, I think this issue should be moved to ffmpeg.wasm-core.

I know this issue is a bit old. But I presented the same problem @MostafaRabia described. However, I was able to solve it. To solve that I cloned the repository (ffmpeg.wasm-core) using git and ran: git checkout b59fb55619. I found out that the build script do not work well in versions after b59fb55. Then I configured build-ffmpeg.sh with these flags:

  -s INITIAL_MEMORY=536608768
  -s ALLOW_MEMORY_GROWTH=1
  -s ASSERTIONS=1

And after a while… it worked. (I did not change anything else in the repository, I did not even replaced proxy_main with main).

I am running Ubuntu 20 and used docker with a fresh image of emscripten/emsdk to make the build. I hope that helps!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Make an App: Full Guide For 2022 | BuildFire
Before we dive into the step-by-step process for building an app, let's quickly cover some of the most common questions about mobile app...
Read more >
Build a Mobile App Without Coding with these 9 Platforms
AppMySite's app creator helps all website owners to build native mobile apps without writing a single line of code. You can build Android...
Read more >
How To Build A Mobile App: The Definitive Guide (2022)
Our goal for this guide is to help you navigate the entire mobile app building process, from validating your idea all the way...
Read more >
These are the 10 best platforms for building a mobile app
10 excellent platforms for building mobile apps ... BiznessApps provides a platform to help create mobile apps for a small business with a ......
Read more >
How to Create a FREE Mobile App for Your Business (No Code)
Start building your free mobile app with Jotform: https://bit.ly/getjotformappA mobile app makes selling and marketing to your customers so ...
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