Logic2 launch problem on MacOS Sonoma (M1/M2)

Hello.

I had a problem using latest Logic2 software (2.4.13) on latest MacOS Sonoma (14.3.1). When you try to launch the application, it says in the log:

[0213/175325.536597:WARNING:in_range_cast.h(38)] value -634136515 out of range
[0213/175325.652686:WARNING:in_range_cast.h(38)] value -634136515 out of range
[0213/175325.658087:WARNING:exception_types.cc(171)] EXC_CRASH should not contain exception 12
[0213/175325.765182:WARNING:exception_snapshot_mac.cc(70)] exception EXC_GUARD invalid in EXC_CRASH
[0213/175325.765365:WARNING:in_range_cast.h(38)] value -634136515 out of range
[0213/175325.771070:WARNING:exception_types.cc(171)] EXC_CRASH should not contain exception 12
[0213/175325.875507:WARNING:exception_snapshot_mac.cc(70)] exception EXC_GUARD invalid in EXC_CRASH
[0213/175325.875684:WARNING:in_range_cast.h(38)] value -634136515 out of range

After that app crashes and nothing happens and due to that it wasn’t possible to even test Logic Pro device.

In the case if anyone else will experience the same problem, I have a workaround. I was able to debug this issue and looks like that it’s caused by disabled SIP (System Integrity Protection) and disabled AMFI (Apple Mobile File Integrity).

Since I’m a software developer and security researcher I often need to disable system protections using special boot arguments from NVRAM, like amfi_get_out_of_my_way=0x1, which is available if you disable SIP via csrutil disable in recovery mode. But looks like in latest OS versions Apple changed something in the kernel regarding SIP and added new options that are available through boot-args: ipc_control_port_options=0 and thid_should_crash=0

Without these options some applications may experience crashes if you have disabled SIP/AMFI. And that’s what happened to me with Logic 2 software. So as workaround, if you have similar environment as me, just add these two options to boot-args using nvram tool and restart the system.

@flatz Thanks for sharing your workaround!