-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
Falcon not working properly locally on MacOS (m1) in forked mode #225
Comments
This can happen with some native extensions which load Objective-C. If you share the full backtrace we might be able to identify it. Otherwise, for the sake of potentially avoiding this problem and definitely avoiding memory usage, try adding all your core gems to the preload group:
|
Make sure the |
By the way - I have my db inside docker container (only the app is running locally for this case), maybe this is a reason?! |
Okay, thanks, I'll try to reproduce this. |
Thank you! |
For postgres related seg fault, sometimes following helps:
|
I'm encountering the same report from falcon, except my issue has to do with
I am basically using https://github.com/socketry/roda-websockets/blob/main/examples/interactive_browser/config.ru, but adding this block within
And that's all it takes to get this error for Falcon. I wish I could resolve this easily myself... but I'm stuck |
I'll take a look today. |
Do you mind telling me what version of macOS you are using? I was not able to reproduce the issue on:
|
I created a branch with an example, can either of you check if it fails on darwin22? I'm on darwin23. https://github.com/socketry/falcon/tree/pg-segfault |
I'm guessing I would be on darwin23 as well:
|
It really helped , @schovi, much appreciated! |
@jf are you either able to (1) upgrade the latest macOS to check if the issue goes away or (2) check the branch I gave and see if it reproduces the problem? I'm also on a M1 MacBook Pro but I can't reproduce the issue. |
sorry, to be clear, my issue is not with pg (I havent had to use that just yet). My issue is with using rdkafka with falcon (#225 (comment) |
one suggestion if I may: you want to make it as easy as possible for folks to run your sample code. It took a while for me to try to run the example:
It does not look like I have any issue with
|
@jf try setting |
Hello!
When I run
be falcon host
& make a simple health check request I got this in.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/pg-1.5.4/lib/pg/connection.rb:690
:And then have a server restart.
When I use
be falcon serve -b http:/localhost:3000
, get this endless forked loop:be falcon serve -b --threaded http:/localhost:3000
works fine. No problems inside Docker even with forked mode.Any thoughts, suggestions? How to correctly run the forked mode in MacOS (m1)?
Much appreciated in advance!
The text was updated successfully, but these errors were encountered: