Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error connecting to BGMXPCHelper #719

Open
songproducer opened this issue Feb 16, 2024 · 0 comments
Open

Error connecting to BGMXPCHelper #719

songproducer opened this issue Feb 16, 2024 · 0 comments
Labels

Comments

@songproducer
Copy link

Description of the bug
Error connecting to BGMXPCHelper
Failed to send initial message to BGMXPCHelper. (1)

Steps to reproduce
I installed background music probably through the package a while ago. I then tried to install using this script to get BGMXPCHelper:

    cd $(mktemp -d); echo Downloading $URL to $(pwd); curl -qfL# $URL | gzcat - | tar x && \
    /bin/bash BackgroundMusic-master/build_and_install.sh -w && rm -rf BackgroundMusic-master)```


**Versions**
> Please complete the following information.
 - Background Music: 0.4.0
 - macOS: 14.4 Beta (23E5196e)

**Hardware**
> Delete this part if you think it's probably not necessary.
 - Computer: MacBook Pro 16-inch, 2021 Apple M1 Max
 - Audio Device: ```MacBook Pro Speakers:
  Default Output Device:	Yes
  Default System Output Device:	Yes
  Manufacturer:	Apple Inc.
  Output Channels:	2
  Current SampleRate:	44100
  Transport:	Built-in
  Output Source:	MacBook Pro Speakers

Debug logs

[1/3] Installing the virtual audio device Background Music Device.driver to /Library/Audio/Plug-Ins/HAL
ERROR: Install failed at line 233 with the message:
A build command failed. Probably a compilation error.

Feel free to report this. If you do, you'll probably want to include the build_and_install.log file from this directory (/var/folders/19/3j3_zjk953x91cp6v4hlx7gw0000gs/T/tmp.GikZF8XZGj/BackgroundMusic-master). But quickly skim through it first to check that it doesn't include any personal information. It shouldn't, but this is alpha software so you never know.

To try building and installing without this build script, see MANUAL-INSTALL.md.

You can also try ignoring compiler warnings with: BackgroundMusic-master/build_and_install.sh -w

Error details:
Line 233. The last command was (probably)
    sudo /usr/bin/xcodebuild -scheme Background Music Device -configuration Release -enableAddressSanitizer NO BUILD_DIR=./build RUN_CLANG_STATIC_ANALYZER=0 DSTROOT=/  OTHER_CFLAGS="-Wno-error" install
which exited with status 65.

Output of build_and_install.log:

leotreasure@Leos-MacBook-Pro ~ % cat /var/folders/19/3j3_zjk953x91cp6v4hlx7gw0000gs/T/tmp.Hyl1gYEMa9/BackgroundMusic-master/build_and_install.log
Background Music Build Log
----
Build script args: -w
System details:
ProductName:		macOS
ProductVersion:		14.4
BuildVersion:		23E5196e
Darwin 23.4.0 Darwin Kernel Version 23.4.0: Wed Feb  7 23:13:07 PST 2024; root:xnu-10063.100.637.501.2~2/RELEASE_ARM64_T6000 arm64
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin23)
Copyright (C) 2007 Free Software Foundation, Inc.
On git branch: fatal: not a git repository (or any of the parent directories): .git
Most recent commit: fatal: not a git repository (or any of the parent directories): .git ("fatal: not a git repository (or any of the parent directories): .git")
Using xcodebuild: /usr/bin/xcodebuild
Using BGMXPCHelper output path: /usr/local/libexec
xcode-select version 2406.
Xcode path: /Applications/Xcode-beta.app/Contents/Developer
Xcode version:
Xcode 15.0
Build version 15A5229h
Xcode SDKs:
DriverKit SDKs:
	DriverKit 23.0                	-sdk driverkit23.0

iOS SDKs:
	iOS 17.0                      	-sdk iphoneos17.0

iOS Simulator SDKs:
	Simulator - iOS 17.0          	-sdk iphonesimulator17.0

macOS SDKs:
	macOS 14.0                    	-sdk macosx14.0
	macOS 14.0                    	-sdk macosx14.0

tvOS SDKs:
	tvOS 17.0                     	-sdk appletvos17.0

tvOS Simulator SDKs:
	Simulator - tvOS 17.0         	-sdk appletvsimulator17.0

visionOS SDKs:
	visionOS 1.0                  	-sdk xros1.0

visionOS Simulator SDKs:
	Simulator - visionOS 1.0      	-sdk xrsimulator1.0

watchOS SDKs:
	watchOS 10.0                  	-sdk watchos10.0

watchOS Simulator SDKs:
	Simulator - watchOS 10.0      	-sdk watchsimulator10.0

xcrun version 67.
Clang version:
Apple clang version 15.0.0 (clang-1500.0.40.1)
Target: arm64-apple-darwin23.4.0
Thread model: posix
InstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
launchctl version: Darwin Bootstrapper Version 7.0.0: Wed Feb  7 23:16:12 PST 2024; root:libxpc_executables-2748.100.36.0.3~62/launchd/RELEASE_ARM64E
----
Command line invocation:
    /Applications/Xcode-beta.app/Contents/Developer/usr/bin/xcodebuild -scheme "Background Music Device" -configuration Release BUILD_DIR=./build clean

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    BUILD_DIR = ./build

--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64e, id:00006001-001819601EF8801E }
{ platform:macOS, arch:arm64, id:00006001-001819601EF8801E }
{ platform:macOS, arch:x86_64, id:00006001-001819601EF8801E }
{ platform:macOS, name:Any Mac }

** CLEAN SUCCEEDED **

Command line invocation:
    /Applications/Xcode-beta.app/Contents/Developer/usr/bin/xcodebuild -scheme PublicUtility -configuration Release BUILD_DIR=./build clean

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    BUILD_DIR = ./build

--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00006001-001819601EF8801E }
{ platform:macOS, arch:x86_64, id:00006001-001819601EF8801E }
{ platform:macOS, name:Any Mac }

** CLEAN SUCCEEDED **

Command line invocation:
    /Applications/Xcode-beta.app/Contents/Developer/usr/bin/xcodebuild -scheme BGMXPCHelper -configuration Release BUILD_DIR=./build clean

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    BUILD_DIR = ./build

--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00006001-001819601EF8801E }
{ platform:macOS, arch:x86_64, id:00006001-001819601EF8801E }
{ platform:macOS, name:Any Mac }

** CLEAN SUCCEEDED **

Command line invocation:
    /Applications/Xcode-beta.app/Contents/Developer/usr/bin/xcodebuild -scheme "Background Music" -configuration Release BUILD_DIR=./build clean

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    BUILD_DIR = ./build

--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00006001-001819601EF8801E }
{ platform:macOS, arch:x86_64, id:00006001-001819601EF8801E }
{ platform:macOS, name:Any Mac }

** CLEAN SUCCEEDED **

[1/3] Installing the virtual audio device Background Music Device.driver to /Library/Audio/Plug-Ins/HAL
Command line invocation:
    /Applications/Xcode-beta.app/Contents/Developer/usr/bin/xcodebuild -scheme "Background Music Device" -configuration Release -enableAddressSanitizer NO BUILD_DIR=./build RUN_CLANG_STATIC_ANALYZER=0 DSTROOT=/ " OTHER_CFLAGS=\"-Wno-error\"" install

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    BUILD_DIR = ./build
    DSTROOT = /
    OTHER_CFLAGS = "-Wno-error"
    RUN_CLANG_STATIC_ANALYZER = 0

--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00006001-001819601EF8801E }
{ platform:macOS, arch:x86_64, id:00006001-001819601EF8801E }
{ platform:macOS, name:Any Mac }
Prepare packages

ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (2 targets)
    Target 'Background Music Device' in project 'BGMDriver'
        ➜ Implicit dependency on target 'PublicUtility' in project 'BGMDriver' via file 'libPublicUtility.a' in build phase 'Link Binary'
    Target 'PublicUtility' in project 'BGMDriver' (no dependencies)

GatherProvisioningInputs

CreateBuildDescription
Build description signature: abf4f1599d48b1431db70d1ddc759658
Build description path: /var/root/Library/Developer/Xcode/DerivedData/BGM-elarkufrfiwuxodxzaddjuqiovjw/Build/Intermediates.noindex/ArchiveIntermediates/Background Music Device/IntermediateBuildFilesPath/XCBuildData/abf4f1599d48b1431db70d1ddc759658.xcbuilddata

CreateBuildDirectory /
    cd /var/folders/19/3j3_zjk953x91cp6v4hlx7gw0000gs/T/tmp.Hyl1gYEMa9/BackgroundMusic-master
    builtin-create-build-directory /

ClangStatCache /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk /var/root/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/macosx14.0-23A5326c-f7e79a2b09dbe2c8a4ba251adb57f722.sdkstatcache
    cd /var/folders/19/3j3_zjk953x91cp6v4hlx7gw0000gs/T/tmp.Hyl1gYEMa9/BackgroundMusic-master
    /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk -o /var/root/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/macosx14.0-23A5326c-f7e79a2b09dbe2c8a4ba251adb57f722.sdkstatcache

error: Cycle inside Background Music Device; building could produce unreliable results.
Cycle details:
→ Target 'Background Music Device' has create directory command with output '/Library/Audio/Plug-Ins/HAL/Background Music Device.driver/Contents'


Raw dependency cycle trace:

target:  ->

node: <all> ->

command: <all> ->

node: /Library/Audio/Plug-Ins/HAL/Background Music Device.driver/Contents ->

command: P0:target-Background Music Device-daff8cdc730c300e259fca67508b4cc305eed7a9cdaaa1e4a34422325aed31c3-:Release:MkDir /Library/Audio/Plug-Ins/HAL/Background Music Device.driver/Contents ->

node: <target-Background Music Device-daff8cdc730c300e259fca67508b4cc305eed7a9cdaaa1e4a34422325aed31c3--immediate> ->

command: P0:target-Background Music Device-daff8cdc730c300e259fca67508b4cc305eed7a9cdaaa1e4a34422325aed31c3-:Release:Gate target-Background Music Device-daff8cdc730c300e259fca67508b4cc305eed7a9cdaaa1e4a34422325aed31c3--immediate ->

node: <CreateBuildDirectory-/var/folders/19/3j3_zjk953x91cp6v4hlx7gw0000gs/T/tmp.Hyl1gYEMa9/BackgroundMusic-master/BGMDriver/build/Release> ->

command: P0:::CreateBuildDirectory /var/folders/19/3j3_zjk953x91cp6v4hlx7gw0000gs/T/tmp.Hyl1gYEMa9/BackgroundMusic-master/BGMDriver/build/Release ->

CYCLE POINT ->

node: / ->

directoryTreeSignature:  ->

directoryContents: / ->

node: /
warning: Run script build phase 'Run Script - set-version.sh' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Background Music Device' from project 'BGMDriver')
** INSTALL FAILED **

Failure in BackgroundMusic-master/build_and_install.sh at line 233. The last command was (probably)
    sudo /usr/bin/xcodebuild -scheme Background Music Device -configuration Release -enableAddressSanitizer NO BUILD_DIR=./build RUN_CLANG_STATIC_ANALYZER=0 DSTROOT=/  OTHER_CFLAGS="-Wno-error" install
which exited with status 65.
Error message: A build command failed. Probably a compilation error.

Other info

Anything else you want to add?
I set the xcode select switch as instructed:

sudo /usr/bin/xcode-select --switch /Applications/Xcode-beta.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant