heroku / barnes

Tell StatsD about request time, GC, objects and more. Latest Rails 4 and Ruby 2.1 support, and ancient Rails 2 and Ruby 1.8 support.
MIT License
0 stars 0 forks source link

Crashing on first request after enabling barnes #22

Closed ricardovj closed 5 years ago

ricardovj commented 5 years ago

Hey guys, as soon as I add the barnes gem and configure/start it in the before_fork hook as instructed, my API launches OK but on first request it crashes with this crash report. Any ideas?

schneems commented 5 years ago

The segfault wouldn't directly be caused by barnes. It looks like an issue in one of your native extensions. Also you're running an older version of Ruby. I suggest upgrading to at least 2.4.5.

Here's an article on how to inspect which of your native extensions are installed https://devcenter.heroku.com/articles/ruby-segfault. As a good first step upgrade them all to the latest reasonable version.

ricardovj commented 5 years ago

Cool, thanks, I'll check that out. Question is why that would only happen after adding barnes? Without it everything works just fine 🤔

ricardovj commented 5 years ago

Upgrading to 2.6 fixed the problem, thanks!