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

BusError at 5100912640/SegmentationFault at 10 #242

Closed
n1ru4l opened this issue Jul 6, 2022 · 5 comments
Closed

BusError at 5100912640/SegmentationFault at 10 #242

n1ru4l opened this issue Jul 6, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@n1ru4l
Copy link

n1ru4l commented Jul 6, 2022

Reproduction:

git clone https://github.com/dotansimha/graphql-yoga.git
cd graphql-yoga
git checkout bun-compat
yarn # install deps/setup workspace
# start the HTTP server
bun examples/bun/index.ts
# now visit localhost:3000 in your browser

Once you visit localhost:3000, the following error occurs and the server exits:

laurinquast@Laurins-MBP graphql-yoga % bun examples/bun/index.ts                                   

BusError at 5100912640


–––– bun meta ––––
Bun v0.1.1 macOS Silicon 21.3.0
AutoCommand: 
Elapsed: 19284ms | User: 146ms | Sys: 222ms
RSS: 1.14GB | Peak: 1.14GB | Commit: 67.11MB | Faults: 0
–––– bun meta ––––

Ask for #help in https://bun.sh/discord or go to https://bun.sh/issues

Sometimes you also get the following error:

laurinquast@Laurins-MBP graphql-yoga % bun examples/bun/index.ts

SegmentationFault at 10


–––– bun meta ––––
Bun v0.1.1 macOS Silicon 21.3.0
AutoCommand: 
Elapsed: 3653ms | User: 107ms | Sys: 99ms
RSS: 0.51GB | Peak: 0.51GB | Commit: 67.11MB | Faults: 0
–––– bun meta ––––

Ask for #help in https://bun.sh/discord or go to https://bun.sh/issues
@Jarred-Sumner
Copy link
Collaborator

I believe this is fixed, but I'm honestly not sure

Can you leave a comment if it's still happening?

@ardatan
Copy link

ardatan commented Sep 18, 2022

Yes it looks fixed! Thanks!
Now as part of our new GraphQL Yoga v3 Roadmap which is almost done with fully working Bun support , the new version has an official Bun support thanks to our new server adapter library @whatwg-node/server that allows you to implement servers in platform agnostic way using Fetch API;
https://the-guild.dev/blog/fetch-for-servers

@ardatan
Copy link

ardatan commented Sep 20, 2022

Bad news :/ now we have a new issue in the latest release;
https://github.com/dotansimha/graphql-yoga/actions/runs/3085570494/jobs/4989009800#step:8:75
But it works fine in v0.1.10

@Jarred-Sumner
Copy link
Collaborator

Are you setting a hostname? I just pushed a fix for that. For now, try omitting a hostname or upgrading to the canary build.

@ardatan
Copy link

ardatan commented Sep 20, 2022

Yes I was doing that and it worked after removing it! Thanks for the tip and your awesome effort on this project!

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

No branches or pull requests

4 participants