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

Process hangs on spring #731

Open
alexevanczuk opened this issue Dec 2, 2024 · 0 comments
Open

Process hangs on spring #731

alexevanczuk opened this issue Dec 2, 2024 · 0 comments

Comments

@alexevanczuk
Copy link

We're seemingly randomly getting process hangs when running things that boot the rails environment. It is easily resolved by just killing the process with ctrl+c and then starting it again... sometimes I need to spring stop?

I used rbspy to take a snapshot of the process while it's hanging and got this:

$ sudo rbspy snapshot  --pid 15173
<main> - /Users/alexevanczuk/workspace/monorail/bin/rubocop:6
load [c function] - (unknown)
<top (required)> - /Users/alexevanczuk/workspace/monorail/bin/spring:10
tap - unknown:92
block in <top (required)> - /Users/alexevanczuk/workspace/monorail/bin/spring:14
require - unknown:146
require [c function] - (unknown)
<top (required)> - /Users/alexevanczuk/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/spring-4.2.1/lib/spring/binstub.rb:11
load [c function] - (unknown)
<top (required)> - /Users/alexevanczuk/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/spring-4.2.1/bin/spring:49
run - /Users/alexevanczuk/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/spring-4.2.1/lib/spring/client.rb:36
call - /Users/alexevanczuk/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/spring-4.2.1/lib/spring/client/command.rb:8
call - /Users/alexevanczuk/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/spring-4.2.1/lib/spring/client/run.rb:37
warm_run - /Users/alexevanczuk/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/spring-4.2.1/lib/spring/client/run.rb:51
run - /Users/alexevanczuk/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/spring-4.2.1/lib/spring/client/run.rb:69
run_command - /Users/alexevanczuk/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/spring-4.2.1/lib/spring/client/run.rb:198
gets [c function] - (unknown)

We're using ruby 3.3.5 and rails 7.2.2

Any tips on what's going on here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant