-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
[NEXT-939] SIGSEGV on next build
with 13.2.4
#46989
Comments
next build
with 13.2.4next build
with 13.2.4
Ok I've found the troublemaker, it's the SWC plugin It's only happening since next Also, is there a way to tell where to look for such issues, i.e. better error messages so one finds the underlying cause faster? |
@aplr is @graphql-codegen/client-preset-swc-plugin in built with apollo client ??. I am not using @graphql-codegen/client-preset-swc-plugin in my code i checked. |
Getting the same error. It was introduced for me at Version |
I'm not sure if the issues I and you reported in this ticket are related in any way, as I get segfaults at build-time caused by a swc plugin |
I can confirm I get the same error when using Edit: After testing different Next.js versions, the error seems to be introduced by Edit 2: I can confirm that in my case reverting #46971 and rebuilding @next/swc fixed the error for me. |
Hi, Do you guys have 32 bits architecture? or if you run |
@jinojacob15 and @SuttonJack: |
@Timothee-P @SuttonJack @aplr I Spent two days in debugging the issue , finally code was working when i removed dynamic imports with ssr:false . |
seems like |
I'm on a M2 mac and also have this issue if I have a SWC plugin enabled (next-superjson) |
Also have disabled this |
The cause is a bug of I'll check if it's possible to downgrade rustc for now. |
I'm checking if |
I'm having a similar issue but not quite the same.
|
Https://github.com/swc-project/swc/pull/7163 will fix this. I'll update turbopack and next-swc ASAP once it's merged. |
Until vercel/next.js#46989 is fixed
Hi @kdy1, what is left to fix this issue? Can the community somehow help? |
swc-project/swc#7170 fixed this, and vercel/turborepo#4358 should be merged into turbopack first |
next build
with 13.2.4next build
with 13.2.4
@simonknittel Did you remove the |
still happened on 13.3.0 |
Depends on vercel/turborepo#4470 --- - Closes #46989 - Fixes WEB-879 - Fixes WEB-813 --------- Co-authored-by: OJ Kwon <1210596+kwonoj@users.noreply.github.com> Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com> Co-authored-by: Shu Ding <g@shud.in>
Looks like v13.3.1-canary.12 will fix the issue |
Upstream: vercel/next.js#46989
I think no, swc version is too higher than most plugins |
Now the runtime is fixed, so plugin authors can update their plugins |
Removing sharp from dependencies worked for me! |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:37 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6000 Binaries: Node: 18.13.0 npm: 8.19.3 Yarn: 1.22.19 pnpm: 7.26.0 Relevant packages: next: 13.2.4 eslint-config-next: 13.2.4 react: 18.2.0 react-dom: 18.2.0
Which area(s) of Next.js are affected?
next build
CLITo Reproduce
I'll dig into it, maybe I can reproduce it easily. However I'd expect
next build
not to segfault on my existing codebase which works on 13.2.3 without changes other than upgrading next.Describe the Bug
After upgrading next to 13.2.4, when running
next build
, I'm running into a segfault.As you can see, I'm using the app dir (only). Tell me if you need more info.
Expected Behavior
No Segfault when running
yarn build
How are you deploying your application? (if relevant)
On Vercel, where it's also segfaulting. (Also in my Docker build)
NEXT-939
The text was updated successfully, but these errors were encountered: