-
Notifications
You must be signed in to change notification settings - Fork 27.1k
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
Segmentation fault occurs when loading PNG, JPG images #24564
Comments
I think we might be experiencing the same issue. It seems we filed our bug reports simultaneously 😅. For maintainers reading this: issue #24565 and this issue might concern the same bug and should probably be viewed together. |
@nico-bachner Great, thanks for connecting the issues! I'll keep an eye on both now to see which one gets continued. Did this problem only start happening for you after the most recent big sur update (Ap;ril 27th I believe)? It did for me. |
The issue was already reported before at #24421 and it was closed with #24546 but the bug is still there, at least for me. The problem is related with |
I just downgraded |
FWIW I'm seeing the same issue on an M1 Mac when using the |
Same issue here. M1, node v16.1.0, next v10.2.0. Work just fine on node v15.14.0. |
I'm having the same issue. I'm using Node 16, with the latest next.js and on the M1 MacBook pro. Just wanted to comment to attract more attention to this issue, since I don't want to downgrade my Node to 16 (I'm depending on 16). |
I am having the same issue as well. |
I can reproduce this with Node v16.2.0. |
Same here, also happening on Node v16.2.0 EDIT: I was also able to work around this by downgrading to node v15.14.0 |
Related issue: vercel/vercel#6243 |
Duplicate of #24421 |
I am also having the same issue. |
I had the same error Solution |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
What version of Next.js are you using?
10.1.4-canary.17
What version of Node.js are you using?
16.0.0
What browser are you using?
Chrome 90.0.4430.85
What operating system are you using?
macOS (Apple M1 w/ Big Sur 11.3)
How are you deploying your application?
Local only
Describe the Bug
Starting from a fresh
create-next-app
, I place a PNG or JPG image into the public folder, then add a<Image src="/myPngImage.png" layout="fill" />
to myindex.js
.After the hot-reload completes, the dev server quits and gives me this error:
zsh: segmentation fault npm run dev
Expected Behavior
Image should appear and dev server should continue to run.
To Reproduce
create-next-app myApp
&& cd myApppng
orjpeg
image to your project's public folderindex.js
, add<Image src="/yourImage.png" layout="fill" />
npm run dev
and wait until everything has compiled completelylocalhost:3000
The text was updated successfully, but these errors were encountered: