-
Notifications
You must be signed in to change notification settings - Fork 4
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
Bus Error #7
Comments
Seems to be happening when requiring the core in |
Dug a bit deeper - its this line: let core = yield (yield importCore(options.core, logger))({
arguments: VERSION_ARGS, VERSION_ARGS is |
Reverting the core to |
Sorry for all the comments. They don't seem to work together. |
You can add |
I tried that,this code: import { FFmpeg } from "@ffmpeg.wasm/main"
const ffmpeg = FFmpeg.create({
log: true,
logger: (level, message) => console.log(level, message),
}); Gives me: node test.js
debug Import '@ffmpeg.wasm/core-mt' with cjs require()
[1] 39199 bus error node test.js |
Cloud you provide a more detailed system and environment info? |
Macbook Pro, 2021 Apple M1 Max. Node v18.17.0 "@ffmpeg.wasm/core-mt": "0.13.2",
"@ffmpeg.wasm/core-st": "0.13.2",
"@ffmpeg.wasm/main": "0.13.0" I tried to replicate it here, but it does work. So maybe it's an apple silicon issue? https://codesandbox.io/p/sandbox/jolly-mccarthy-pmw9gd?file=%2Findex.js%3A8%2C1 |
I'm collecting data over here: wesbos/ff-me#1 So far it seems to happen only on Mac OS, both intel and silicon chips. |
The tests of the project also fail on Mac. Same error message. |
Have you tried core-st? Will there still be the same error? |
You can clone DreamOfIce/ffmpeg.wasm-core and uncomment this line: https://github.com/DreamOfIce/ffmpeg.wasm-core/blob/6690593aa6b014dad266efa97293e32d27499c0c/wasm/bu ild-scripts/var.sh#L32 Then run ./build.sh to build debug version of the core. Switch to the local core through Then run the test again, and you should be able to see more detailed output. |
It looks like this issue has been fixed in the latest v20.5.0 |
Confirmed! This issue doesn't exist in Node 20.5.0 on Mac |
looks like it's working on 20.5.0 - thank you everyone! |
Hello, thank you for this library.
I'm having an issue with the following code in Node.js v20.1.0, but also appears on LTS v18.17.0
test.js:
running
node test.js
I get "bus error".I'm not able to catch any errors, nor see whats causing this. Any idea how to debug?
package.json:
The text was updated successfully, but these errors were encountered: