Open aaronjensen opened 1 year ago
I have the same issue:
lib/listen/fsm.rb:80:in `synchronize': can't be called from trap context (ThreadError)
from /gem/ruby/3.1.0/gems/listen-3.9.0/lib/listen/fsm.rb:80:in `transition!'
from/gem/ruby/3.1.0/gems/listen-3.9.0/lib/listen/fsm.rb:104:in `transition_with_callbacks!'
from /gem/ruby/3.1.0/gems/listen-3.9.0/lib/listen/fsm.rb:72:in `transition'
from /gem/ruby/3.1.0/gems/listen-3.9.0/lib/listen/listener.rb:103:in `stop'
from/gem/ruby/3.1.0/gems/activesupport-7.0.1/lib/active_support/evented_file_update_checker.rb:113:in `stop'
我已收到你的邮件,谢谢!
This particular warning happens in a Rails app when using Puma. I don't know that there is anything that Puma or Rails can do differently here to prevent this from happening, but I will report it in Rails as well (perhaps stopping listener in a finalizer is just wrong because of this). I believe it's happening when Puma is stopping a thread and a GC happens. The rest of the stack trace was application code, so it was clearly a signal.