Closed denvermullets closed 1 week ago
i'm closing because i think this is not SQ's issue after seeing other reports of crashes. sorry for the noise!
Hey @denvermullets, thanks for raising this! How odd! If you find out the cause, would you mind posting here in case other people run into the same problem?
I wonder if it might be something related to process forking with PostgreSQL and a bug in the pg
gem, related to:
Also maybe related -- https://github.com/puma/puma/issues/3551 / https://bugs.ruby-lang.org/issues/20890#change-110632
Will attempt to post back here if this gets resolved.
thank you both @rosa @mjankowski.
i'll keep an eye on these as well!
One of my workmates also got a new M4 and is experiencing a crash when running Rails tests in parallel with multiple processes, adding another data point for something forking-related. This is happening with MySQL though, so nothing about the pg
gem. I'll post here if we figure anything out.
I'm copying my message from the GoRails (jumpstart) discord where I posted about this issue before. Maybe somebody finds my error description or the attached crash log helpful. I'm still looking for a solution.
I have a new Macbook Pro with the M4 Max Chip. I migrated from my M1 Pro Macbook using the Apple Migration Assistant.
While the new system works fine, it locks up and crashes as soon as I start a bin/dev server in my Jumpstart app that uses Rails 8 or Rails8RC, with solid-x.
What happens? I see the "server started" message in the terminal. As soon as this appears the Macbook becomes unresponsive, the trackpad looses haptics and the system just turns off hard. I've never seen that behaviour before.
An older Rails 7 app (also using Jumpstart) works fine. Everything else works fine too.
Things I've tried:
brew upgrade
rails c
, rails assets:precompile
bundle exec rails s
works (with db not started - it just exits with an error, as expected. In dev and production mode)# works in rails c dev and production
app = ActionDispatch::Integration::Session.new(Rails.application)
app.get("/")
However, as soon as I do rails s
it crashes.
I find it hard to believe it is a hardware issue, as everything else works fine. I dont't have any other explanation though.
Link to the Kernel Crash log: crashlog.txt
@randomsnowflake What solved the problem for me was disabling YJIT (which is the original issue in https://bugs.ruby-lang.org/issues/20890#change-110632), thus Rails.application.config.yjit = false
in application.rb
. If that's not enough for you, perhaps try compiling Ruby without YJIT support.
FYI looks like this is resolved in 15.2 Beta 4 - https://github.com/puma/puma/issues/3551#issuecomment-2491802960 (and presumably will be in 15.2 final)
FYI looks like this is resolved in 15.2 Beta 4 - puma/puma#3551 (comment) (and presumably will be in 15.2 final)
fantastic, thanks for the update @mjankowski
this is a weird one and if it's out of scope for this repo let me apologize in advance.
my rails 7.2.2 app works as it should. i can create CRUD in my postgres 16 (also tested with 14) db but the second i run
bin/jobs
the laptop hard crashes and reboots. i'm not able to see any logs, unless someone has a suggestion of where to look.here's my gemfile for reference:
i can provide any other information you'd like as i'm kinda unsure what else i could do here.