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

[cli] Segmentation fault when running arri dev on Node v20.12.2 #48

Closed
joshmossas opened this issue Apr 17, 2024 · 2 comments · Fixed by #49
Closed

[cli] Segmentation fault when running arri dev on Node v20.12.2 #48

joshmossas opened this issue Apr 17, 2024 · 2 comments · Fixed by #49
Labels
bug Something isn't working

Comments

@joshmossas
Copy link
Member

joshmossas commented Apr 17, 2024

Environment
NodeJS v20.12.2
OS Linux PopOS

Describe the bug
When running arri dev in node version 20.12 you get the following error:

WARN  [listhen] Using experimental websocket API. Learn more: https://crossws.unjs.io                                                                                                                                                                                                                            12:34:17 PM
 
  ➜ Local:    http://localhost:3000/
  ➜ Network:  http://172.18.0.1:3000/ [QR code]
  ➜ Network:  http://172.19.0.1:3000/
  ➜ Network:  http://172.20.0.1:3000/
  ➜ Network:  http://192.168.1.175:3000/

🚀 Loading server entry ./.output/server.mjs                                                                                                                                                                                                                                                                 arri 12:34:17 PM
✅ Server initialized in 5ms                                                                                                                                                                                                                                                                                 arri 12:34:17 PM
Segmentation fault (core dumped)
 ELIFECYCLE  Command failed with exit code 139.

Additional context
Downgrading back to Node version 20.11 makes the error go away.

Esbuild seems to be the culprit

Potentially related issues:
evanw/esbuild#3720
evanw/esbuild#2485
evanw/esbuild#3287

@joshmossas joshmossas added the bug Something isn't working label Apr 17, 2024
@joshmossas
Copy link
Member Author

Found the source. The issue seems to lie here:
unjs/listhen#173

So it's not related to esbuild.

@joshmossas
Copy link
Member Author

joshmossas commented Apr 17, 2024

Created a patch in @joshmossas/listhen that fixes this. So this issue can be closed.

Will watch for future updates in listhen to see if we can stop relying on the @joshmossas/listhen fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant