Open acasajus opened 10 years ago
hmm, probably just reload your browser (and any tabs open)? I don't think I saw this happen to me when developing.
I probably didn't explain myself.
I'm not really sure. I didn't see this while working on my project.
Does it happen if you run the example project?
https://github.com/ngauthier/sock-chat
Nick
I believe this is due to running background threads with rails auto-reload enabled. I was getting similar errors, and learned about the problem from this blog post: http://bibwild.wordpress.com/2011/11/14/multi-threading-in-rails-activerecord-3-0-3-1/ (see the config.cache_classes section)
Basically the problem is rails has to unload all classes to support auto-reload, and background threads that are currently executing don't like having their classes pulled out from under them :). Unfortunately the only fix seems to be to disable auto-reload by setting config.cache_classes = true.
The backtrace that pops when rails reloads in dev environment is:
How can I gracefully stop tubesock when rails reloads? Any pointer?