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

malloc is not a function. (In 'malloc(arg.length * 1, 1)', 'malloc' is undefined) #176

Open
deepushajia opened this issue May 3, 2024 · 0 comments

Comments

@deepushajia
Copy link

malloc is not a function. (In 'malloc(arg.length * 1, 1)', 'malloc' is undefined)

Description/Steps to reproduce

malloc is not a function. (In 'malloc(arg.length * 1, 1)', 'malloc' is undefined)
passArray8ToWasm0@http://localhost:3001/static/js/photon_photon_rs_js.chunk.js:3388:21
PhotonImage@http://localhost:3001/static/js/photon_photon_rs_js.chunk.js:4263:35
@http://localhost:3001/static/js/bundle.js:1841:27
function@http://localhost:3001/static/js/bundle.js:572:35
callCallback@http://localhost:3001/static/js/bundle.js:36927:23
dispatchEvent@[native code]

Link to reproduction test-case

built using wasm-pack as descried here:
https://silvia-odwyer.github.io/photon/guide/using-photon-web/

Failed at the line:
new photon.PhotonImage(imageData, width, height)

Expected result

No Error and Loading of PhotonImage on JS

Additional information

Ubuntu 22.04

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

1 participant