Problems with Unity 2021.3.1f1 (Silicon) - Namespace SIGNAL, Code 4 Illegal instruction: 4
I have a project in Unity that is crashing during the Asset import, but only when I try to use a particular SDK. The error I'm getting is the one above - more text below. The project builds and runs just fine until I try to import this one particular asset, but then it crashes and corrupts one of the files involved.
The reasons I think this is actually an Apple problem are
1) That the SDK developers say they've never seen this happen before, and
2) The error message shows up in a lot of other discussions like this one: after installing Catalina, one app keeps … - Apple Community
3) Buried deep in the crash report, it looks like maybe a bad HTTP request had something to do with the crash, but a bad HTTP request shouldn't cause the whole program to crash.
Error Report excerpts:
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Unity [3879]
Path: /Applications/Unity/*/Unity.app/Contents/MacOS/Unity
Identifier: com.unity3d.UnityEditor5.x
Version: Unity version 2021.3.1f1 (2021.3.1f1)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Responsible: Unity Hub [89674]
//skipping some stuff
Crashed Thread: 0 tid_103 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGILL)
Exception Codes: KERN_PROTECTION_FAILURE at 0x000000016e73fff0
Exception Codes: 0x0000000000000002, 0x000000016e73fff0
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SIGNAL, Code 4 Illegal instruction: 4
Terminating Process: Unity [3879]
VM Region Info: 0x16e73fff0 is in 0x16af3c000-0x16e740000; bytes after start: 58736624 bytes before end: 15
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
VM_ALLOCATE 16aecc000-16af0c000 [ 256K] rwx/rwx SM=PRV
GAP OF 0x30000 BYTES
---> STACK GUARD 16af3c000-16e740000 [ 56.0M] ---/rwx SM=NUL ... for thread 0
Stack 16e740000-16ef3c000 [ 8176K] rw-/rwx SM=PRV thread 0
Kernel Triage:
VM - Compressor failed a blocking pager_get
//repeated a few times
Thread 0 Crashed:: tid_103 Dispatch queue: com.apple.main-thread
0 ??? 0x2e60c13c8 ???
//a whole lot more lines like this
//a bunch of stack trace stuff about Semaphore and Job Workers
//and some more from the crash report:
Thread 40:: Loading.AsyncRead
0 libsystem_kernel.dylib 0x1b8be9990 semaphore_wait_trap + 8
1 libdispatch.dylib 0x1b8a6713c _dispatch_sema4_wait + 28
2 libdispatch.dylib 0x1b8a677f4 _dispatch_semaphore_wait_slow + 132
3 Unity 0x1038a8e90 UnityClassic::Baselib_SystemSemaphore_Acquire(UnityClassic::Baselib_SystemSemaphore_Handle) + 28
4 Unity 0x10142c5c0 Semaphore::WaitForSignal(int) + 188
5 Unity 0x10158c68c AsyncReadManagerThreaded::ThreadEntry() + 240
6 Unity 0x10158bc50 AsyncReadManagerThreaded::StaticThreadEntry(void*) + 12
7 Unity 0x1019518b8 Thread::RunThreadWrapper(void*) + 1188
8 libsystem_pthread.dylib 0x1b8c25240 _pthread_start + 148
9 libsystem_pthread.dylib 0x1b8c20024 thread_start + 8
Thread 41:: HTTP REST Server
0 libsystem_kernel.dylib 0x1b8bf3d38 __select + 8
1 Unity 0x103893810 ns_mgr_poll + 560
2 Unity 0x1030a2440 RestService::HttpTransport::RunLoop() + 48
3 Unity 0x1019518b8 Thread::RunThreadWrapper(void*) + 1188
4 libsystem_pthread.dylib 0x1b8c25240 _pthread_start + 148
5 libsystem_pthread.dylib 0x1b8c20024 thread_start + 8
Thread 42:: REST Message Handler
0 libsystem_kernel.dylib 0x1b8be9990 semaphore_wait_trap + 8
1 libdispatch.dylib 0x1b8a6713c _dispatch_sema4_wait + 28
2 libdispatch.dylib 0x1b8a677f4 _dispatch_semaphore_wait_slow + 132
3 Unity 0x1038a8e90 UnityClassic::Baselib_SystemSemaphore_Acquire(UnityClassic::Baselib_SystemSemaphore_Handle) + 28
4 Unity 0x10142c5c0 Semaphore::WaitForSignal(int) + 188
5 Unity 0x10309d6a8 RestService::RestMessageHandler::Entry(void*) + 40
6 Unity 0x1019518b8 Thread::RunThreadWrapper(void*) + 1188
7 libsystem_pthread.dylib 0x1b8c25240 _pthread_start + 148
8 libsystem_pthread.dylib 0x1b8c20024 thread_start + 8
MacBook Pro 16″, macOS 12.2