Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memory out of bounds in wechat miniprogram #375

Open
winddies opened this issue Dec 19, 2024 · 5 comments
Open

memory out of bounds in wechat miniprogram #375

winddies opened this issue Dec 19, 2024 · 5 comments

Comments

@winddies
Copy link

hello, i use emcc build quickjs ,and i want to run code string .but in miniprogram, it emit error:
image
image
can you help me find why this error happend?
code part: https://developers.weixin.qq.com/s/f7uv6ymG7FWv

@winddies
Copy link
Author

@saghul @nickva @FGasper

@saghul
Copy link
Contributor

saghul commented Dec 20, 2024

Can you share the source code that reproduces the problem?

@winddies
Copy link
Author

winddies commented Dec 21, 2024

@saghul Thank you very much for your reply。
this is my git repo: https://github.com/winddies/wasm-jseval

i just fetch the quickjs in my repo and run make command: "make quickjs"
image

image image

it can run normally in node environment, but not success in miniprogram dev tools.
image
Is it possible to solve through EMCC parameter configuration here? Because I don't know how to locate it。

@winddies
Copy link
Author

@saghul another command "make duktape" ,it's another js engine and the generated wasm and js files can run normally in miniprogram dev tools.

@benatkin
Copy link

benatkin commented Dec 29, 2024

Looks like Duktape configures 256MB of memory. It's supposed to be INITIAL_MEMORY.

That might be enough to get rid of this one error. There may be other issues. Perhaps you can use this as an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants