Replies: 2 comments
-
Emscripten-generated module should run just fine in web workers.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
While adding the functions back to the main program I noticed that I took the address of an std::vector's data and then resized it, causing the pointer to be stale. I must have been lucky every time I ran it until I wasn't. I'm sorry for the false alarm. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to use web assembly in a worker to do some heavy calculations in the background while the rest of the app runs like normal. However when it runs the main loop it runs once and then aborts with this message:
Aborted(Stack overflow! Stack cookie has been overwritten at 0x00000004, expected hex dwords 0x89BACDFE and 0x2135467, but received 0x00000000 0x00000000)
. I have no idea what causes it so I don't know what details would be relevant to add. The same code can run without error in the main program but is too slow.What have I tried?
-fsanitize=address
None of which had any effect on the error.
Why do I not use a wasm-worker/pthread?
The service I use for hosting doesn't allow me to set my own http headers and thus locking me out of having access to SharedArrayBuffer, which they need to run.
Beta Was this translation helpful? Give feedback.
All reactions