dunglas / mercure

🪽 An open, easy, fast, reliable and battery-efficient solution for real-time communications
https://mercure.rocks
GNU Affero General Public License v3.0
3.83k stars 278 forks source link

Errors/crashes on apple silicon m2 #897

Open mrozbarry opened 2 months ago

mrozbarry commented 2 months ago

I have a project that has been in development for a bit, and I recently brought in mercure, and it had been working great (on v0.15.10). I upgraded from an intel mac to an apple silicon m2/arm64 machine. Prior to this, I didn't notice any problems.

After getting my new machine, I've seen these behaviours

I'm pretty stumped, to be honest. I'm relatively familiar with arm/arm64 from raspberry pi, but can't seemed to figure out what's going on here.

I didn't see any issues specific to the m2, so I'm not certain if you have anyone else on this platform, and I'm not certain how to get you more debug information (but I'm willing to tinker if you have ideas). I'm not familiar with go, but don't mind being a guinea pig.

My current plan is to go through a linux x86/64 VM for my local development (and production is running linux), but I'd like to run things manually if possible.

dunglas commented 2 months ago

Are you using the Docker image or a native Mac build?

Could you try to use lldb or gdb to get a stack trace?

mrozbarry commented 2 months ago

Are you using the Docker image or a native Mac build?

Native

Could you try to use lldb or gdb to get a stack trace?

gdb isn't an option on arm, but I do have lldb.

Frustratingly, I have since both rebooted and re-downloaded, and so far running through lldb, things are working as expected. AND, running without lldb is now fine.

Last night, I did install rosetta, so I'm wondering if there was some piece of rosetta's install process that required a reboot and it just wasn't obvious.


I'm going to close this issue, but it might be worth noting for apple silicon systems that you should have rosetta installed, even with the native darwin/arm64 release.

dunglas commented 2 months ago

Re-opening because it isn't expected. This is likely a bug in our CI pipeline. We recently migrated to the Apple Silicon boxes provided by GitHub. Previously we were using our own machines. Something is probably wrong in the migration.