MacOs 16 - Xcode 16 beta - XCBBuildService quit unexpectedly


Translated Report (Full Report Below)

Process: XCBBuildService [19515] Path: /Applications/Xcode.app/Contents/SharedFrameworks/XCBuild.framework/Versions/A/PlugIns/XCBBuildService.bundle/Contents/MacOS/XCBBuildService Identifier: com.apple.dt.XCBBuildService Version: 16.0 (23000.0.209.4) Build Info: XCBuild-23000000209004000~20 (16A5171c) Code Type: ARM-64 (Native) Parent Process: Xcode [1187] Responsible: Xcode [1187] User ID: 501

Date/Time: 2024-06-13 18:52:42.9964 -0300 OS Version: macOS 15.0 (24A5264n) Report Version: 12 Anonymous UUID: E79CA726-937A-A4A4-9B42-9DF9455F3181

Time Awake Since Boot: 1300 seconds System Integrity Protection: enabled

Crashed Thread: 15

Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000

Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6 Terminating Process: XCBBuildService [19515]

Application Specific Information: abort() called

Kernel Triage: VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter

Thread 0:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x19c7ece14 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x19c7ff5b0 mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x19c7f59b8 mach_msg_overwrite + 480 3 libsystem_kernel.dylib 0x19c7ed15c mach_msg + 24 4 CoreFoundation 0x19c916b40 __CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x19c9153f8 __CFRunLoopRun + 1228 6 CoreFoundation 0x19c9148bc CFRunLoopRunSpecific + 608 7 CoreFoundation 0x19c98f6a0 CFRunLoopRun + 64 8 libswift_Concurrency.dylib 0x273f30e50 swift_task_asyncMainDrainQueueImpl() + 40 9 libswift_Concurrency.dylib 0x273f30e10 swift_task_asyncMainDrainQueue + 92 10 XCBBuildService 0x1021eb924 main + 84 11 dyld 0x19c4ad298 start + 2876

Thread 1: 0 libsystem_kernel.dylib 0x19c7ed990 read + 8 1 XCBServiceCore 0x102604e88 closure #3 in ServiceHostConnection.resume() + 552 2 XCBServiceCore 0x1026063c1 partial apply for specialized thunk for @escaping @callee_guaranteed @Sendable @async () -> (@out A) + 1 3 XCBServiceCore 0x10260692d partial apply for closure #1 in closure #1 in OS_dispatch_queue.async(group:qos:flags:execute:) + 1 4 XCBServiceCore 0x10260692d partial apply for closure #1 in closure #1 in OS_dispatch_queue.async(group:qos:flags:execute:) + 1 5 XCBServiceCore 0x1026061d1 specialized thunk for @escaping @callee_guaranteed @Sendable @async () -> (@out A) + 1 6 XCBServiceCore 0x1026063c1 partial apply for specialized thunk for @escaping @callee_guaranteed @Sendable @async () -> (@out A) + 1 7 libswift_Concurrency.dylib 0x273f31921 completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*) + 1

Thread 2:: llb_buildsystem_build 0 libsystem_kernel.dylib 0x19c7f05ac __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x19c82e894 pthread_cond_wait + 1204 2 libc++.1.dylib 0x19c764578 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28 3 llbuild 0x1032f3308 (anonymous namespace)::BuildEngineImpl::executeTasks(llbuild::core::KeyType const&) + 4552 4 llbuild 0x1032f038c llbuild::core::BuildEngine::build(llbuild::core::KeyType const&) + 580 5 llbuild 0x103309ac4 (anonymous namespace)::BuildSystemImpl::build(llbuild::buildsystem::BuildKey) + 208 6 llbuild 0x103309ca0 llbuild::buildsystem::BuildSystem::build(llvm::StringRef) + 260 7 llbuild 0x1032fc3f0 llbuild::buildsystem::BuildSystemFrontend::build(llvm::StringRef) + 56 8 llbuild 0x1032833a8 0x103268000 + 111528 9 XCBBuildSystem 0x10275b640 partial apply for closure #13 in BuildOperation.build() + 28 10 libswift_Concurrency.dylib 0x273efc564 TaskLocal.withValue<A>(:operation:file:line:) + 368 11 XCBUtil 0x10225d92c closure #1 in closure #1 in static Task<>.detachNewThread(name:_:) + 324 12 XCBUtil 0x102230064 thunk for @escaping @callee_guaranteed () -> () + 28 13 Foundation 0x19e3a1de0 NSThread__block_start + 76 14 libsystem_pthread.dylib 0x19c82e2e4 _pthread_start + 136 15 libsystem_pthread.dylib 0x19c8290fc thread_start + 8

Macos 15

Sorry to hear you are having problems Xcode 16 beta.

Please follow the instruction from this thread to file a bug with Feedback Assistant

Instructions to provide Beta Feedback Post

[https://developer.apple.com/forums/thread/756681)

I am having the same problem and this is causing a serious damage to my company. All our developers that upgraded to Beta version are 100% affected and none of them can build anything anymore.

Bumping that we're seeing the same thing when building a our own app. The build process seems to pass every step before XCBBuildService receives a SIGABRT.

The crashing thread has a Address size fault and I would imagine if we could see more of the crash log above it would say the same.

In activity monitor every time before XCBBuildService crashes its memory usages spikes to north of 50GB. The issue is occurring in all 3 Xcode 16 betas on both macOS 14 and 15. This issue does not exist in Xcode 15.

I first encountered this with beta 1 building an iOS app and filed a ticket at that time. However it's still occurring in Beta 5. I'm starting to become concerned its not going to get fixed by the time Xcode 16 release comes out, meaning I'll be unable to build my app.

I get this error %100 of the time:

Process:               XCBBuildService [19881]
Crashed Thread:        13

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Termination Reason:    Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process:   XCBBuildService [19881]

i've encountered the same issue

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Termination Reason:    Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process:   XCBBuildService [1435]

In our case the memory spike and crash was caused by incomplete #import statement in one of the libraries we are using: https://github.com/ivpusic/react-native-image-crop-picker/pull/2068

MacOs 16 - Xcode 16 beta - XCBBuildService quit unexpectedly
 
 
Q