mautrix / imessage

A Matrix-iMessage puppeting bridge
https://go.mau.fi/mautrix-imessage/
GNU Affero General Public License v3.0
341 stars 37 forks source link

Mac-NoSIP Crashing - Runtime Error invalid memory address #58

Open lusrmgr opened 2 years ago

lusrmgr commented 2 years ago

When running matrix-imessage on a Mac with SIP disabled, I keep getting this error and I cannot figure out why. Any help you can provide would be greatly appreciated, let me know what other information would be helpful for debugging!

panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x451123b]

goroutine 48 [running]: os.(ProcessState).exited(...) /usr/local/Cellar/go/1.18/libexec/src/os/exec_posix.go:83 os.(ProcessState).Exited(...) /usr/local/Cellar/go/1.18/libexec/src/os/exec.go:155 go.mau.fi/mautrix-imessage/imessage/mac-nosip.(MacNoSIPConnector).Start.func1() /Users/tulir/builds/i2hvwHJ9/0/mautrix/imessage/imessage/mac-nosip/nosip.go:89 +0x3b created by go.mau.fi/mautrix-imessage/imessage/mac-nosip.(MacNoSIPConnector).Start /Users/tulir/builds/i2hvwHJ9/0/mautrix/imessage/imessage/mac-nosip/nosip.go:87 +0x274

lusrmgr commented 2 years ago

Running on an Intel-based MacBook Pro running macOS 12.3.1 Monterey

lusrmgr commented 2 years ago

I did see the other issue here with the same message which ended up being AMFI, but I have gone through the steps in the documentation to disable SIP and AMFI 4 times and still no luck. Thanks!

misraaks commented 2 years ago

Are you using OpenCore Patcher to run Monterey on an older Mac? I ran into this and needed to mount the EFI partition and add the AMFI boot arg to EFI/OC/config.plist

ajkessel commented 2 years ago

I had this issue as well and my solution is documented here