#46658 closed defect (fixed)
pulseaudio @5.0_1: builds but doesn't work
Reported by: | RJVB (René Bertin) | Owned by: | Ionic (Mihai Moldovan) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.3 |
Keywords: | Cc: | springermac (Jonathan Springer), dbevans (David B. Evans), mohd-akram (Mohamed Akram) | |
Port: | pulseaudio |
Description
port:pulseaudio appears to be missing a proper configuration that makes the pulseaudio service function on OS X. Using the binary package, I get
> pulseaudio -v -C W: [] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because PulseAudio was built without capabilities support. E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory I: [] core-util.c: Failed to acquire high-priority scheduling: Input/output error I: [] main.c: This is PulseAudio 5.0-rebootstrapped I: [] main.c: Page size is 4096 bytes I: [] main.c: Machine ID is fdf7192e1d5c120cc731c3f654988e5b. I: [] main.c: Using runtime directory /Users/bertin/.config/pulse/fdf7192e1d5c120cc731c3f654988e5b-runtime. I: [] main.c: Using state directory /Users/bertin/.config/pulse. I: [] main.c: Using modules directory /opt/local/lib/pulse-5.0/modules. I: [] main.c: Running in system mode: no I: [] main.c: Fresh high-resolution timers available! Bon appetit! I: [] cpu-x86.c: CPU flags: CMOV MMX SSE SSE2 SSE3 SSSE3 SSE4_1 SSE4_2 I: [] svolume_mmx.c: Initialising MMX optimized volume functions. I: [] remap_mmx.c: Initialising MMX optimized remappers. I: [] svolume_sse.c: Initialising SSE2 optimized volume functions. I: [] remap_sse.c: Initialising SSE2 optimized remappers. I: [] sconv_sse.c: Initialising SSE2 optimized conversions. I: [] svolume_orc.c: Initialising ORC optimized volume functions. I: [] module-device-restore.c: Successfully opened database file '/Users/bertin/.config/pulse/fdf7192e1d5c120cc731c3f654988e5b-device-volumes'. I: [] module.c: Loaded "module-device-restore" (index: #0; argument: ""). I: [] module-stream-restore.c: Successfully opened database file '/Users/bertin/.config/pulse/fdf7192e1d5c120cc731c3f654988e5b-stream-volumes'. I: [] module.c: Loaded "module-stream-restore" (index: #1; argument: ""). I: [] module-card-restore.c: Successfully opened database file '/Users/bertin/.config/pulse/fdf7192e1d5c120cc731c3f654988e5b-card-database'. I: [] module.c: Loaded "module-card-restore" (index: #2; argument: ""). I: [] module.c: Loaded "module-augment-properties" (index: #3; argument: ""). I: [] module.c: Loaded "module-switch-on-port-available" (index: #4; argument: ""). W: [] module.c: module-detect is deprecated: Please use module-udev-detect instead of module-detect! W: [] module-detect.c: failed to detect any sound hardware. E: [] module.c: Failed to load module "module-detect" (argument: ""): initialization failed. E: [] main.c: Module load failed. E: [] main.c: Failed to initialize daemon. I: [] module.c: Unloading "module-switch-on-port-available" (index: #4). I: [] module.c: Unloaded "module-switch-on-port-available" (index: #4). I: [] module.c: Unloading "module-augment-properties" (index: #3). I: [] module.c: Unloaded "module-augment-properties" (index: #3). I: [] module.c: Unloading "module-card-restore" (index: #2). I: [] module.c: Unloaded "module-card-restore" (index: #2). I: [] module.c: Unloading "module-stream-restore" (index: #1). I: [] module.c: Unloaded "module-stream-restore" (index: #1). I: [] module.c: Unloading "module-device-restore" (index: #0). I: [] module.c: Unloaded "module-device-restore" (index: #0). I: [] main.c: Daemon terminated. Exit 1
After building my own version, letting the build auto-detect gconf, avahi, openvg and openssl, throwing in +jack and removing +x11, I get
> pulseaudio -v -C W: [] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because PulseAudio was built without capabilities support. E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory I: [] core-util.c: Failed to acquire high-priority scheduling: Input/output error I: [] main.c: This is PulseAudio 5.0-rebootstrapped I: [] main.c: Page size is 4096 bytes I: [] main.c: Machine ID is fdf7192e1d5c120cc731c3f654988e5b. I: [] main.c: Using runtime directory /Users/bertin/.config/pulse/fdf7192e1d5c120cc731c3f654988e5b-runtime. I: [] main.c: Using state directory /Users/bertin/.config/pulse. I: [] main.c: Using modules directory /opt/local/lib/pulse-5.0/modules. I: [] main.c: Running in system mode: no I: [] main.c: Fresh high-resolution timers available! Bon appetit! I: [] cpu-x86.c: CPU flags: CMOV MMX SSE SSE2 SSE3 SSSE3 SSE4_1 SSE4_2 I: [] svolume_mmx.c: Initialising MMX optimized volume functions. I: [] remap_mmx.c: Initialising MMX optimized remappers. I: [] svolume_sse.c: Initialising SSE2 optimized volume functions. I: [] remap_sse.c: Initialising SSE2 optimized remappers. I: [] sconv_sse.c: Initialising SSE2 optimized conversions. I: [] svolume_orc.c: Initialising ORC optimized volume functions. I: [] module-device-restore.c: Successfully opened database file '/Users/bertin/.config/pulse/fdf7192e1d5c120cc731c3f654988e5b-device-volumes'. I: [] module.c: Loaded "module-device-restore" (index: #0; argument: ""). I: [] module-stream-restore.c: Successfully opened database file '/Users/bertin/.config/pulse/fdf7192e1d5c120cc731c3f654988e5b-stream-volumes'. I: [] module.c: Loaded "module-stream-restore" (index: #1; argument: ""). I: [] module-card-restore.c: Successfully opened database file '/Users/bertin/.config/pulse/fdf7192e1d5c120cc731c3f654988e5b-card-database'. I: [] module.c: Loaded "module-card-restore" (index: #2; argument: ""). I: [] module.c: Loaded "module-augment-properties" (index: #3; argument: ""). I: [] module.c: Loaded "module-switch-on-port-available" (index: #4; argument: ""). W: [] module.c: module-detect is deprecated: Please use module-udev-detect instead of module-detect! W: [] module-detect.c: failed to detect any sound hardware. E: [] module.c: Failed to load module "module-detect" (argument: ""): initialization failed. E: [] main.c: Module load failed. E: [] main.c: Failed to initialize daemon. I: [] module.c: Unloading "module-switch-on-port-available" (index: #4). I: [] module.c: Unloaded "module-switch-on-port-available" (index: #4). I: [] module.c: Unloading "module-augment-properties" (index: #3). I: [] module.c: Unloaded "module-augment-properties" (index: #3). I: [] module.c: Unloading "module-card-restore" (index: #2). I: [] module.c: Unloaded "module-card-restore" (index: #2). I: [] module.c: Unloading "module-stream-restore" (index: #1). I: [] module.c: Unloaded "module-stream-restore" (index: #1). I: [] module.c: Unloading "module-device-restore" (index: #0). I: [] module.c: Unloaded "module-device-restore" (index: #0). I: [] main.c: Daemon terminated.
Editing /opt/local/etc/pulse/default.pa such that
--- pulseaudio-mp9-work/pulseaudio-5.0/src/default.pa 2015-01-23 02:45:48.000000000 +0100 +++ /opt/local/etc/pulse/default.pa 2015-01-23 14:23:05.000000000 +0100 @@ -48,9 +48,12 @@ #load-module module-pipe-sink ### Automatically load driver modules depending on the hardware available -.ifexists module-detect.so +#.ifexists module-detect.so ### Use the static hardware detection module (for systems that lack udev support) -load-module module-detect +#load-module module-detect +#.endif +.ifexists module-coreaudio-detect.so +load-module module-coreaudio-detect .endif ### Automatically connect sink and source if JACK server is present @@ -66,6 +69,7 @@ load-module module-esound-protocol-unix .endif load-module module-native-protocol-unix +#load-module module-coreaudio-device ### Network access (may be configured with paprefs, so leave this commented ### here if you plan to use paprefs) @@ -110,12 +114,12 @@ ### If autoexit on idle is enabled we want to make sure we only quit ### when no local session needs us anymore. -.ifexists module-console-kit.so -load-module module-console-kit -.endif -.ifexists module-systemd-login.so -load-module module-systemd-login -.endif +#.ifexists module-console-kit.so +#load-module module-console-kit +#.endif +#.ifexists module-systemd-login.so +#load-module module-systemd-login +#.endif ### Enable positioned event sounds load-module module-position-event-sounds
I get a bit further:
> pulseaudio -v -C W: [] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because PulseAudio was built without capabilities support. E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory E: [] core-util.c: Failed to connect to system bus: Failed to connect to socket /opt/local/var/run/dbus/system_bus_socket: No such file or directory I: [] core-util.c: Failed to acquire high-priority scheduling: Input/output error I: [] main.c: This is PulseAudio 5.0-rebootstrapped I: [] main.c: Page size is 4096 bytes I: [] main.c: Machine ID is fdf7192e1d5c120cc731c3f654988e5b. I: [] main.c: Using runtime directory /Users/bertin/.config/pulse/fdf7192e1d5c120cc731c3f654988e5b-runtime. I: [] main.c: Using state directory /Users/bertin/.config/pulse. I: [] main.c: Using modules directory /opt/local/lib/pulse-5.0/modules. I: [] main.c: Running in system mode: no I: [] main.c: Fresh high-resolution timers available! Bon appetit! I: [] cpu-x86.c: CPU flags: CMOV MMX SSE SSE2 SSE3 SSSE3 SSE4_1 SSE4_2 I: [] svolume_mmx.c: Initialising MMX optimized volume functions. I: [] remap_mmx.c: Initialising MMX optimized remappers. I: [] svolume_sse.c: Initialising SSE2 optimized volume functions. I: [] remap_sse.c: Initialising SSE2 optimized remappers. I: [] sconv_sse.c: Initialising SSE2 optimized conversions. I: [] svolume_orc.c: Initialising ORC optimized volume functions. I: [] module-device-restore.c: Successfully opened database file '/Users/bertin/.config/pulse/fdf7192e1d5c120cc731c3f654988e5b-device-volumes'. I: [] module.c: Loaded "module-device-restore" (index: #0; argument: ""). I: [] module-stream-restore.c: Successfully opened database file '/Users/bertin/.config/pulse/fdf7192e1d5c120cc731c3f654988e5b-stream-volumes'. I: [] module.c: Loaded "module-stream-restore" (index: #1; argument: ""). I: [] module-card-restore.c: Successfully opened database file '/Users/bertin/.config/pulse/fdf7192e1d5c120cc731c3f654988e5b-card-database'. I: [] module.c: Loaded "module-card-restore" (index: #2; argument: ""). I: [] module.c: Loaded "module-augment-properties" (index: #3; argument: ""). I: [] module.c: Loaded "module-switch-on-port-available" (index: #4; argument: ""). I: [] module-coreaudio-device.c: Initializing module for CoreAudio device 'Built-in Input' (id 56) I: [] module-card-restore.c: Restoring port latency offsets for card Built-in_Input. I: [] card.c: Created 0 "Built-in_Input" I: [] source.c: Created source 0 "H__q____H__q__" with sample spec float32le 2ch 44100Hz and channel map front-left,front-right I: [] source.c: device.string = "Built-in Input" I: [] source.c: device.product.name = "Built-in Input" I: [] source.c: device.description = "Built-in Input" I: [] source.c: device.access_mode = "mmap" I: [] source.c: device.class = "sound" I: [] source.c: device.api = "CoreAudio" I: [] source.c: device.buffering.buffer_size = "4096" I: [] source.c: device.vendor.name = "Apple Inc." I: [] source.c: device.icon_name = "audio-card" I: [Built-in Input] core-util.c: Successfully acquired real-time thread priority. I: [] module.c: Loaded "module-coreaudio-device" (index: #6; argument: "object_id=56"). I: [] module-coreaudio-device.c: Initializing module for CoreAudio device 'Built-in Output' (id 47) I: [] module-card-restore.c: Restoring port latency offsets for card Built-in_Output. I: [] card.c: Created 1 "Built-in_Output" I: [] sink.c: Created sink 0 "H__q____H__q__.2" with sample spec float32le 2ch 44100Hz and channel map front-left,front-right I: [] sink.c: device.string = "Built-in Output" I: [] sink.c: device.product.name = "Built-in Output" I: [] sink.c: device.description = "Built-in Output" I: [] sink.c: device.access_mode = "mmap" I: [] sink.c: device.class = "sound" I: [] sink.c: device.api = "CoreAudio" I: [] sink.c: device.buffering.buffer_size = "4096" I: [] sink.c: device.vendor.name = "Apple Inc." I: [] sink.c: device.icon_name = "audio-card" I: [] source.c: Created source 1 "H__q____H__q__.2.monitor" with sample spec float32le 2ch 44100Hz and channel map front-left,front-right I: [] source.c: device.description = "Monitor of Built-in Output" I: [] source.c: device.class = "monitor" I: [] source.c: device.string = "Built-in Output" I: [] source.c: device.icon_name = "audio-card" I: [Built-in Output] core-util.c: Successfully acquired real-time thread priority. I: [] module.c: Loaded "module-coreaudio-device" (index: #7; argument: "object_id=47"). I: [] module-coreaudio-device.c: Initializing module for CoreAudio device 'USB PnP Sound Device' (id 63) I: [] module-card-restore.c: Restoring port latency offsets for card USB_PnP_Sound_Device. I: [] card.c: Created 2 "USB_PnP_Sound_Device" I: [] sink.c: Created sink 1 "_________d____" with sample spec float32le 2ch 44100Hz and channel map front-left,front-right I: [] sink.c: device.string = "USB PnP Sound Device" I: [] sink.c: device.product.name = "USB PnP Sound Device" I: [] sink.c: device.description = "USB PnP Sound Device" I: [] sink.c: device.access_mode = "mmap" I: [] sink.c: device.class = "sound" I: [] sink.c: device.api = "CoreAudio" I: [] sink.c: device.buffering.buffer_size = "4096" I: [] sink.c: device.vendor.name = "C-Media Electronics Inc. " I: [] sink.c: device.icon_name = "audio-card" I: [] source.c: Created source 2 "_________d____.monitor" with sample spec float32le 2ch 44100Hz and channel map front-left,front-right I: [] source.c: device.description = "Monitor of USB PnP Sound Device" I: [] source.c: device.class = "monitor" I: [] source.c: device.string = "USB PnP Sound Device" I: [] source.c: device.icon_name = "audio-card" I: [] source.c: Created source 3 "______" with sample spec float32le 1ch 44100Hz and channel map mono I: [] source.c: device.string = "USB PnP Sound Device" I: [] source.c: device.product.name = "USB PnP Sound Device" I: [] source.c: device.description = "USB PnP Sound Device" I: [] source.c: device.access_mode = "mmap" I: [] source.c: device.class = "sound" I: [] source.c: device.api = "CoreAudio" I: [] source.c: device.buffering.buffer_size = "2048" I: [] source.c: device.vendor.name = "C-Media Electronics Inc. " I: [] source.c: device.icon_name = "audio-card" I: [USB PnP Sound Device] core-util.c: Successfully acquired real-time thread priority. I: [] module.c: Loaded "module-coreaudio-device" (index: #8; argument: "object_id=63"). I: [] module-coreaudio-device.c: Initializing module for CoreAudio device 'iMic USB audio system' (id 84) I: [] module-card-restore.c: Restoring port latency offsets for card iMic_USB_audio_system. I: [] card.c: Created 3 "iMic_USB_audio_system" I: [] sink.c: Created sink 2 "_H______PH____" with sample spec float32le 2ch 44100Hz and channel map front-left,front-right I: [] sink.c: device.string = "iMic USB audio system" I: [] sink.c: device.product.name = "iMic USB audio system" I: [] sink.c: device.description = "iMic USB audio system" I: [] sink.c: device.access_mode = "mmap" I: [] sink.c: device.class = "sound" I: [] sink.c: device.api = "CoreAudio" I: [] sink.c: device.buffering.buffer_size = "4096" I: [] sink.c: device.vendor.name = "Griffin Technology, Inc" I: [] sink.c: device.icon_name = "audio-card" I: [] source.c: Created source 4 "_H______PH____.monitor" with sample spec float32le 2ch 44100Hz and channel map front-left,front-right I: [] source.c: device.description = "Monitor of iMic USB audio system" I: [] source.c: device.class = "monitor" I: [] source.c: device.string = "iMic USB audio system" I: [] source.c: device.icon_name = "audio-card" I: [] source.c: Created source 5 "_J______0H____" with sample spec float32le 2ch 44100Hz and channel map front-left,front-right I: [] source.c: device.string = "iMic USB audio system" I: [] source.c: device.product.name = "iMic USB audio system" I: [] source.c: device.description = "iMic USB audio system" I: [] source.c: device.access_mode = "mmap" I: [] source.c: device.class = "sound" I: [] source.c: device.api = "CoreAudio" I: [] source.c: device.buffering.buffer_size = "4096" I: [] source.c: device.vendor.name = "Griffin Technology, Inc" I: [] source.c: device.icon_name = "audio-card" I: [iMic USB audio system] core-util.c: Successfully acquired real-time thread priority. I: [] module.c: Loaded "module-coreaudio-device" (index: #9; argument: "object_id=84"). I: [] module-coreaudio-device.c: Initializing module for CoreAudio device 'LogMeInSoundDriver' (id 73) I: [] module-card-restore.c: Restoring port latency offsets for card LogMeInSoundDriver. I: [] card.c: Created 4 "LogMeInSoundDriver" I: [] sink.c: Created sink 3 "H__q____H__q__.3" with sample spec float32le 2ch 44100Hz and channel map front-left,front-right I: [] sink.c: device.string = "LogMeInSoundDriver" I: [] sink.c: device.product.name = "LogMeInSoundDriver" I: [] sink.c: device.description = "LogMeInSoundDriver" I: [] sink.c: device.access_mode = "mmap" I: [] sink.c: device.class = "sound" I: [] sink.c: device.api = "CoreAudio" I: [] sink.c: device.buffering.buffer_size = "4096" I: [] sink.c: device.vendor.name = "LogMeIn, Inc." I: [] sink.c: device.icon_name = "audio-card" I: [] source.c: Created source 6 "H__q____H__q__.3.monitor" with sample spec float32le 2ch 44100Hz and channel map front-left,front-right I: [] source.c: device.description = "Monitor of LogMeInSoundDriver" I: [] source.c: device.class = "monitor" I: [] source.c: device.string = "LogMeInSoundDriver" I: [] source.c: device.icon_name = "audio-card" I: [] source.c: Created source 7 "H__q____H__q__.4" with sample spec float32le 2ch 44100Hz and channel map front-left,front-right I: [] source.c: device.string = "LogMeInSoundDriver" I: [] source.c: device.product.name = "LogMeInSoundDriver" I: [] source.c: device.description = "LogMeInSoundDriver" I: [] source.c: device.access_mode = "mmap" I: [] source.c: device.class = "sound" I: [] source.c: device.api = "CoreAudio" I: [] source.c: device.buffering.buffer_size = "4096" I: [] source.c: device.vendor.name = "LogMeIn, Inc." I: [] source.c: device.icon_name = "audio-card" I: [LogMeInSoundDriver] core-util.c: Successfully acquired real-time thread priority. I: [] module.c: Loaded "module-coreaudio-device" (index: #10; argument: "object_id=73"). I: [] module.c: Loaded "module-coreaudio-detect" (index: #5; argument: ""). I: [] module.c: Loaded "module-jackdbus-detect" (index: #11; argument: "channels=2"). I: [] module.c: Loaded "module-native-protocol-unix" (index: #12; argument: ""). I: [] module.c: Loaded "module-gconf" (index: #13; argument: ""). I: [] module-default-device-restore.c: Restored default sink 'H__q____H__q__.2'. I: [] module-default-device-restore.c: Restored default source 'H__q____H__q__'. I: [] module.c: Loaded "module-default-device-restore" (index: #14; argument: ""). I: [] module.c: Loaded "module-rescue-streams" (index: #15; argument: ""). I: [] module.c: Loaded "module-always-sink" (index: #16; argument: ""). I: [] module.c: Loaded "module-intended-roles" (index: #17; argument: ""). I: [] module.c: Loaded "module-suspend-on-idle" (index: #18; argument: ""). I: [] module.c: Loaded "module-position-event-sounds" (index: #19; argument: ""). I: [] module.c: Loaded "module-role-cork" (index: #20; argument: ""). I: [] module.c: Loaded "module-filter-heuristics" (index: #21; argument: ""). I: [] module.c: Loaded "module-filter-apply" (index: #22; argument: ""). I: [] client.c: Created 0 "Unknown client" I: [] module.c: Loaded "module-cli" (index: #23; argument: "exit_on_eof=1"). I: [] main.c: Daemon startup complete. I: [] module-device-restore.c: Storing port for device sink:_________d____. I: [] module-device-restore.c: Storing volume/mute for device+port sink:_________d____:null. I: [] module-device-restore.c: Storing port for device source:_________d____.monitor. I: [] module-device-restore.c: Storing volume/mute for device+port source:_________d____.monitor:null. I: [] module-device-restore.c: Storing port for device sink:_H______PH____. I: [] module-device-restore.c: Storing volume/mute for device+port sink:_H______PH____:null. I: [] module-device-restore.c: Storing port for device source:_H______PH____.monitor. I: [] module-device-restore.c: Storing volume/mute for device+port source:_H______PH____.monitor:null. I: [] module-device-restore.c: Storing port for device source:_J______0H____. I: [] module-device-restore.c: Storing volume/mute for device+port source:_J______0H____:null. I: [] module-suspend-on-idle.c: Source H__q____H__q__.4 idle for too long, suspending ... I: [] module-suspend-on-idle.c: Source _J______0H____ idle for too long, suspending ... I: [] module-suspend-on-idle.c: Source ______ idle for too long, suspending ... I: [] module-suspend-on-idle.c: Source H__q____H__q__ idle for too long, suspending ... I: [] module-suspend-on-idle.c: Sink H__q____H__q__.3 idle for too long, suspending ... I: [] module-suspend-on-idle.c: Sink _H______PH____ idle for too long, suspending ... I: [] module-suspend-on-idle.c: Sink _________d____ idle for too long, suspending ... I: [] module-suspend-on-idle.c: Sink H__q____H__q__.2 idle for too long, suspending ... I: [] module-device-restore.c: Synced. ^D I: [] main.c: Daemon shutdown initiated. I: [] module.c: Unloading "module-cli" (index: #23). I: [] client.c: Freed 0 "Unknown client" I: [] module.c: Unloaded "module-cli" (index: #23). I: [] module.c: Unloading "module-filter-apply" (index: #22). I: [] module.c: Unloaded "module-filter-apply" (index: #22). I: [] module.c: Unloading "module-filter-heuristics" (index: #21). I: [] module.c: Unloaded "module-filter-heuristics" (index: #21). I: [] module.c: Unloading "module-role-cork" (index: #20). I: [] module.c: Unloaded "module-role-cork" (index: #20). I: [] module.c: Unloading "module-position-event-sounds" (index: #19). I: [] module.c: Unloaded "module-position-event-sounds" (index: #19). I: [] module.c: Unloading "module-suspend-on-idle" (index: #18). I: [] module.c: Unloaded "module-suspend-on-idle" (index: #18). I: [] module.c: Unloading "module-intended-roles" (index: #17). I: [] module.c: Unloaded "module-intended-roles" (index: #17). I: [] module.c: Unloading "module-always-sink" (index: #16). I: [] module.c: Unloaded "module-always-sink" (index: #16). I: [] module.c: Unloading "module-rescue-streams" (index: #15). I: [] module.c: Unloaded "module-rescue-streams" (index: #15). I: [] module.c: Unloading "module-default-device-restore" (index: #14). I: [] module.c: Unloaded "module-default-device-restore" (index: #14). I: [] module.c: Unloading "module-gconf" (index: #13). I: [] module.c: Unloaded "module-gconf" (index: #13). I: [] module.c: Unloading "module-native-protocol-unix" (index: #12). I: [] module.c: Unloaded "module-native-protocol-unix" (index: #12). I: [] module.c: Unloading "module-jackdbus-detect" (index: #11). I: [] module.c: Unloaded "module-jackdbus-detect" (index: #11). I: [] module.c: Unloading "module-coreaudio-device" (index: #10). I: [] sink.c: Freeing sink 3 "H__q____H__q__.3" I: [] source.c: Freeing source 6 "H__q____H__q__.3.monitor" I: [] source.c: Freeing source 7 "H__q____H__q__.4" I: [] card.c: Freed 4 "LogMeInSoundDriver" I: [] module.c: Unloaded "module-coreaudio-device" (index: #10). I: [] module.c: Unloading "module-coreaudio-device" (index: #9). I: [] sink.c: Freeing sink 2 "_H______PH____" I: [] source.c: Freeing source 4 "_H______PH____.monitor" I: [] source.c: Freeing source 5 "_J______0H____" I: [] card.c: Freed 3 "iMic_USB_audio_system" I: [] module.c: Unloaded "module-coreaudio-device" (index: #9). I: [] module.c: Unloading "module-coreaudio-device" (index: #8). I: [] sink.c: Freeing sink 1 "_________d____" I: [] source.c: Freeing source 2 "_________d____.monitor" I: [] source.c: Freeing source 3 "______" I: [] card.c: Freed 2 "USB_PnP_Sound_Device" I: [] module.c: Unloaded "module-coreaudio-device" (index: #8). I: [] module.c: Unloading "module-coreaudio-device" (index: #7). I: [] sink.c: Freeing sink 0 "H__q____H__q__.2" I: [] source.c: Freeing source 1 "H__q____H__q__.2.monitor" I: [] card.c: Freed 1 "Built-in_Output" I: [] module.c: Unloaded "module-coreaudio-device" (index: #7). I: [] module.c: Unloading "module-coreaudio-device" (index: #6). I: [] source.c: Freeing source 0 "H__q____H__q__" I: [] card.c: Freed 0 "Built-in_Input" I: [] module.c: Unloaded "module-coreaudio-device" (index: #6). I: [] module.c: Unloading "module-coreaudio-detect" (index: #5). I: [] module.c: Unloaded "module-coreaudio-detect" (index: #5). I: [] module.c: Unloading "module-switch-on-port-available" (index: #4). I: [] module.c: Unloaded "module-switch-on-port-available" (index: #4). I: [] module.c: Unloading "module-augment-properties" (index: #3). I: [] module.c: Unloaded "module-augment-properties" (index: #3). I: [] module.c: Unloading "module-card-restore" (index: #2). I: [] module.c: Unloaded "module-card-restore" (index: #2). I: [] module.c: Unloading "module-stream-restore" (index: #1). I: [] module.c: Unloaded "module-stream-restore" (index: #1). I: [] module.c: Unloading "module-device-restore" (index: #0). I: [] module.c: Unloaded "module-device-restore" (index: #0). I: [] main.c: Daemon terminated.
Note that I have a session DBus running for use with KDE apps, AFAIK running a system DBus in addition is out of the question.
Change History (18)
comment:1 Changed 10 years ago by RJVB (René Bertin)
comment:2 Changed 10 years ago by larryv (Lawrence Velázquez)
Cc: | devans@… removed |
---|---|
Owner: | changed from macports-tickets@… to devans@… |
Summary: | pulseaudio builds but doesn't work → pulseaudio @5.0_1: builds but doesn't work |
Please attach walls of text in the future instead of pasting them inline.
comment:4 Changed 10 years ago by springermac (Jonathan Springer)
A bug has been opened upstream and has a patch which is pending approval. https://bugs.freedesktop.org/show_bug.cgi?id=62987
comment:5 Changed 10 years ago by Ionic (Mihai Moldovan)
Cc: | ionic@… added |
---|
comment:6 Changed 10 years ago by dbevans (David B. Evans)
Owner: | changed from devans@… to ionic@… |
---|
Reassign to new maintainer
comment:7 Changed 10 years ago by Ionic (Mihai Moldovan)
I have re-escalated the issue by sending a patchset to the mailing list. It's currently pending approval.
x-ref: http://thread.gmane.org/gmane.comp.audio.pulseaudio.general/23404
comment:12 Changed 9 years ago by dbevans (David B. Evans)
Cc: | devans@… added; ionic@… removed |
---|
Do the configuration changes to pulseaudio 6.0 committed in r139033, resolve this for us, at least, if not upstream?
comment:13 Changed 8 years ago by Ionic (Mihai Moldovan)
Resolution: | → fixed |
---|---|
Status: | new → closed |
I'll close this issue, because the problem reported here has been at least fixed within MacPorts.
PA is supposed to start up successfully with the default configuration. If it's not, please comment here and I'll reopen.
comment:14 Changed 8 years ago by RJVB (René Bertin)
Yeah, this is an obsolete ticket. I've long since updated to my own version of your latest port (no esound variant, but additional +gconf and +openssl variants). And I never have reason to run the daemon itself (I use the VLC backend with phonon).
comment:15 Changed 8 years ago by kencu (Ken)
Hi,
I bumped into an error that seems to be much like this one today while trying out a new port I'm working on that uses this.
$ port -v installed pulseaudio pulseaudio @9.0_1+x11 (active) platform='darwin 10' archs='x86_64'
$ pulseaudio W: [] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because PulseAudio was built without capabilities support. Dynamic session lookup supported but failed: Unable to find launchd socket when setuid E: [] core-util.c: Failed to connect to system bus: Not enough memory Dynamic session lookup supported but failed: Unable to find launchd socket when setuid E: [] core-util.c: Failed to connect to system bus: Not enough memory Dynamic session lookup supported but failed: Unable to find launchd socket when setuid E: [] core-util.c: Failed to connect to system bus: Not enough memory Dynamic session lookup supported but failed: Unable to find launchd socket when setuid E: [] core-util.c: Failed to connect to system bus: Not enough memory Dynamic session lookup supported but failed: Unable to find launchd socket when setuid E: [] core-util.c: Failed to connect to system bus: Not enough memory Dynamic session lookup supported but failed: Unable to find launchd socket when setuid E: [] core-util.c: Failed to connect to system bus: Not enough memory Dynamic session lookup supported but failed: Unable to find launchd socket when setuid E: [] core-util.c: Failed to connect to system bus: Not enough memory Dynamic session lookup supported but failed: Unable to find launchd socket when setuid E: [] core-util.c: Failed to connect to system bus: Not enough memory Dynamic session lookup supported but failed: Unable to find launchd socket when setuid E: [] core-util.c: Failed to connect to system bus: Not enough memory Dynamic session lookup supported but failed: Unable to find launchd socket when setuid E: [] core-util.c: Failed to connect to system bus: Not enough memory Dynamic session lookup supported but failed: Unable to find launchd socket when setuid E: [] core-util.c: Failed to connect to system bus: Not enough memory W: [] pid.c: Stale PID file, overwriting. pulseaudio(51409,0x7fff71106cc0) malloc: *** error for object 0x1008404d8: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Abort trap
rocess: pulseaudio [51426] Path: /opt/local/bin/pulseaudio Identifier: pulseaudio Version: ??? (???) Code Type: X86-64 (Native) Parent Process: pulseaudio [51425] Date/Time: 2016-12-14 15:54:10.223 -0800 OS Version: Mac OS X 10.6.8 (10K549) Report Version: 6 Interval Since Last Report: 137823 sec Crashes Since Last Report: 10 Per-App Crashes Since Last Report: 9 Anonymous UUID: A3B3F8DB-9F61-4B79-884D-3BB3BE6151F5 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Crashed Thread: 0 Dispatch queue: com.apple.main-thread Application Specific Information: abort() called Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 libSystem.B.dylib 0x00007fff8988f0b6 __kill + 10 1 libSystem.B.dylib 0x00007fff8992f9f6 abort + 83 2 libSystem.B.dylib 0x00007fff89847195 free + 128 3 libpulse.0.dylib 0x00000001000e88de pa_xfree + 31 4 module-coreaudio-device.so 0x0000000100aec5f1 ca_device_create_streams + 2271 5 module-coreaudio-device.so 0x0000000100aebae9 module_coreaudio_device_LTX_pa__init + 852 6 libpulsecore-9.0.dylib 0x0000000100036632 pa_module_load + 474 7 module-coreaudio-detect.so 0x0000000100a8d11a ca_update_device_list + 654 8 module-coreaudio-detect.so 0x0000000100a8ccbb module_coreaudio_detect_LTX_pa__init + 367 9 libpulsecore-9.0.dylib 0x0000000100036632 pa_module_load + 474 10 libpulsecore-9.0.dylib 0x0000000100026200 pa_cli_command_load + 146 11 libpulsecore-9.0.dylib 0x0000000100024136 pa_cli_command_execute_line_stateful + 563 12 libpulsecore-9.0.dylib 0x0000000100024869 pa_cli_command_execute_file_stream + 165 13 pulseaudio 0x000000010000db66 main + 7794 14 pulseaudio 0x0000000100007754 start + 52
I presume this is using dbus, which seems to be running
$ sudo launchctl load -w /Library/LaunchDaemons/org.freedesktop.dbus-system.plist org.freedesktop.dbus-system: Already loaded
Not completely sure where to go with this next...
comment:16 Changed 8 years ago by RJVB (René Bertin)
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I'm reopening the ticket for you, but you probably ought to be opening a new ticket for this issue. It is indeed related but apparently due to another issue:
Dynamic session lookup supported but failed: Unable to find launchd socket when setuid
What does ls -l /opt/local/bin/pulseaudio
tell, has it indeed been installed suid root?
Checking on a Linux box (KaOS, to be sure it uses an up-to-date version) I note that that's not the case there; the audio daemon runs under my own UID, without any special permissions. Mac OS is a different beast, but I wouldn't expect it to require special privileges to play sound, much less so than on Linux (and even there it's rarely necessary).
comment:17 Changed 8 years ago by kencu (Ken)
Thanks - pulseaudio seems to have the same permissions as other executables in there...
-rwxr-xr-x 1 root admin 3971 7 Jun 2016 pth-config -rwxr-xr-x 1 root admin 107484 14 Dec 15:44 pulseaudio -rwxr-xr-x 1 root admin 80276 11 Oct 09:34 pwdecrypt
$ ls -la libpul* -rwxr-xr-x 1 root admin 39160 14 Dec 15:44 libpulse-mainloop-glib.0.dylib lrwxr-xr-x 1 root admin 30 14 Dec 15:44 libpulse-mainloop-glib.dylib -> libpulse-mainloop-glib.0.dylib -rwxr-xr-x 1 root admin 36696 14 Dec 15:44 libpulse-simple.0.dylib lrwxr-xr-x 1 root admin 23 14 Dec 15:44 libpulse-simple.dylib -> libpulse-simple.0.dylib -rwxr-xr-x 1 root admin 325344 14 Dec 15:44 libpulse.0.dylib lrwxr-xr-x 1 root admin 16 14 Dec 15:44 libpulse.dylib -> libpulse.0.dylib
$ file libpulse.0.dylib libpulse.0.dylib: Mach-O 64-bit dynamically linked shared library x86_64
$ otool -L libpulse.0.dylib libpulse.0.dylib: /opt/local/lib/libpulse.0.dylib (compatibility version 21.0.0, current version 21.0.0) /opt/local/lib/pulseaudio/libpulsecommon-9.0.dylib (compatibility version 0.0.0, current version 0.0.0) /opt/local/lib/libX11-xcb.1.dylib (compatibility version 2.0.0, current version 2.0.0) /opt/local/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0) /opt/local/lib/libxcb.1.dylib (compatibility version 3.0.0, current version 3.0.0) /opt/local/lib/libICE.6.dylib (compatibility version 10.0.0, current version 10.0.0) /opt/local/lib/libSM.6.dylib (compatibility version 7.0.0, current version 7.1.0) /opt/local/lib/libXtst.6.dylib (compatibility version 8.0.0, current version 8.0.0) /opt/local/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.5.0) /opt/local/lib/libjson-c.2.dylib (compatibility version 3.0.0, current version 3.2.0) /opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.1.0) /opt/local/lib/libsndfile.1.dylib (compatibility version 2.0.0, current version 2.26.0) /opt/local/lib/libdbus-1.3.dylib (compatibility version 18.0.0, current version 18.8.0) /opt/local/lib/libgdbm.4.dylib (compatibility version 5.0.0, current version 5.0.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 44.0.0) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 550.44.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.11)
dbus seems to be loaded and running
$ ps -a -u root | grep dbus 500 64 ?? 0:00.04 /opt/local/bin/dbus-daemon --system --nofork
I don't know much about dbus - I see it's linked against libdbus-1.3
. Perhaps some kind of dbus version thingy? Maybe my dbus is loaded but not working correctly?
here's the printout from
$ pulseaudio -vvvvvvvvvvvvvvvv W: [] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because PulseAudio was built without capabilities support. Dynamic session lookup supported but failed: Unable to find launchd socket when setuid E: [] core-util.c: Failed to connect to system bus: Not enough memory Dynamic session lookup supported but failed: Unable to find launchd socket when setuid E: [] core-util.c: Failed to connect to system bus: Not enough memory Dynamic session lookup supported but failed: Unable to find launchd socket when setuid E: [] core-util.c: Failed to connect to system bus: Not enough memory Dynamic session lookup supported but failed: Unable to find launchd socket when setuid E: [] core-util.c: Failed to connect to system bus: Not enough memory Dynamic session lookup supported but failed: Unable to find launchd socket when setuid E: [] core-util.c: Failed to connect to system bus: Not enough memory Dynamic session lookup supported but failed: Unable to find launchd socket when setuid E: [] core-util.c: Failed to connect to system bus: Not enough memory Dynamic session lookup supported but failed: Unable to find launchd socket when setuid E: [] core-util.c: Failed to connect to system bus: Not enough memory Dynamic session lookup supported but failed: Unable to find launchd socket when setuid E: [] core-util.c: Failed to connect to system bus: Not enough memory Dynamic session lookup supported but failed: Unable to find launchd socket when setuid E: [] core-util.c: Failed to connect to system bus: Not enough memory Dynamic session lookup supported but failed: Unable to find launchd socket when setuid E: [] core-util.c: Failed to connect to system bus: Not enough memory Dynamic session lookup supported but failed: Unable to find launchd socket when setuid E: [] core-util.c: Failed to connect to system bus: Not enough memory I: [] core-util.c: Failed to acquire high-priority scheduling: Input/output error I: [] main.c: This is PulseAudio 9.0-rebootstrapped D: [] main.c: Compilation host: x86_64-apple-darwin10.8.0 D: [] main.c: Compilation CFLAGS: -pipe -Os -arch x86_64 -Wall -W -Wextra -Wno-long-long -Wno-overlength-strings -Wundef -Wformat=2 -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -fno-common -fdiagnostics-show-option -fdiagnostics-color=auto -mmacosx-version-min=10.6 -isysroot / D: [] main.c: Running on host: Darwin i386 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 D: [] main.c: Found 2 CPUs. I: [] main.c: Page size is 4096 bytes D: [] main.c: Compiled with Valgrind support: no D: [] main.c: Running in valgrind mode: no D: [] main.c: Running in VM: no D: [] main.c: Optimized build: yes D: [] main.c: FASTPATH defined, only fast path asserts disabled. I: [] main.c: Machine ID is a6e343d28e0aa658e03380295806ccbb. I: [] main.c: Using runtime directory /Users/cunningh/.config/pulse/a6e343d28e0aa658e03380295806ccbb-runtime. I: [] main.c: Using state directory /Users/cunningh/.config/pulse. I: [] main.c: Using modules directory /opt/local/lib/pulse-9.0/modules. I: [] main.c: Running in system mode: no W: [] pid.c: Stale PID file, overwriting. I: [] main.c: System supports high resolution timers D: [] memblock.c: Using shared posix-shm memory pool with 1024 slots of size 64.0 KiB each, total size is 64.0 MiB, maximum usable slot size is 65472 I: [] cpu-x86.c: CPU flags: CMOV MMX SSE SSE2 SSE3 SSSE3 I: [] svolume_mmx.c: Initialising MMX optimized volume functions. I: [] remap_mmx.c: Initialising MMX optimized remappers. I: [] svolume_sse.c: Initialising SSE2 optimized volume functions. I: [] remap_sse.c: Initialising SSE2 optimized remappers. I: [] sconv_sse.c: Initialising SSE2 optimized conversions. I: [] svolume_orc.c: Initialising ORC optimized volume functions. D: [] database-gdbm.c: Opened GDBM database '/Users/cunningh/.config/pulse/a6e343d28e0aa658e03380295806ccbb-device-volumes.x86_64-apple-darwin10.8.0.gdbm' I: [] module-device-restore.c: Successfully opened database file '/Users/cunningh/.config/pulse/a6e343d28e0aa658e03380295806ccbb-device-volumes'. I: [] module.c: Loaded "module-device-restore" (index: #0; argument: ""). D: [] database-gdbm.c: Opened GDBM database '/Users/cunningh/.config/pulse/a6e343d28e0aa658e03380295806ccbb-stream-volumes.x86_64-apple-darwin10.8.0.gdbm' I: [] module-stream-restore.c: Successfully opened database file '/Users/cunningh/.config/pulse/a6e343d28e0aa658e03380295806ccbb-stream-volumes'. D: [] protocol-dbus.c: Interface org.PulseAudio.Ext.StreamRestore1 added for object /org/pulseaudio/stream_restore1 I: [] module.c: Loaded "module-stream-restore" (index: #1; argument: ""). D: [] database-gdbm.c: Opened GDBM database '/Users/cunningh/.config/pulse/a6e343d28e0aa658e03380295806ccbb-card-database.x86_64-apple-darwin10.8.0.gdbm' I: [] module-card-restore.c: Successfully opened database file '/Users/cunningh/.config/pulse/a6e343d28e0aa658e03380295806ccbb-card-database'. I: [] module.c: Loaded "module-card-restore" (index: #2; argument: ""). I: [] module.c: Loaded "module-augment-properties" (index: #3; argument: ""). I: [] module.c: Loaded "module-switch-on-port-available" (index: #4; argument: ""). D: [] module.c: Checking for existence of '/opt/local/lib/pulse-9.0/modules/module-coreaudio-detect.so': success D: [] module-coreaudio-detect.c: Loading module-coreaudio-device with arguments 'object_id=263 record=1 playback=1' I: [] module-coreaudio-device.c: Initializing module for CoreAudio device 'Built-in Microphone' (id 263) I: [] module-card-restore.c: Restoring port latency offsets for card Built-in_Microphone. I: [] card.c: Created 0 "Built-in_Microphone" D: [] module-coreaudio-device.c: Sample rate: 44100.000000 D: [] module-coreaudio-device.c: 8 bytes per packet D: [] module-coreaudio-device.c: 1 frames per packet D: [] module-coreaudio-device.c: 8 bytes per frame D: [] module-coreaudio-device.c: 2 channels per frame D: [] module-coreaudio-device.c: 32 bits per channel D: [] module-coreaudio-device.c: Stream name is >Channel 1, Channel 2< D: [] module-device-restore.c: Database contains no data for key: source:Channel_1__Channel_2 D: [] module-device-restore.c: Database contains no (or invalid) data for key: source:Channel_1__Channel_2:null I: [] source.c: Created source 0 "Channel_1__Channel_2" with sample spec float32le 2ch 44100Hz and channel map front-left,front-right I: [] source.c: device.string = "Built-in Microphone" I: [] source.c: device.product.name = "Built-in Microphone" I: [] source.c: device.description = "Built-in Microphone" I: [] source.c: device.access_mode = "mmap" I: [] source.c: device.class = "sound" I: [] source.c: device.api = "CoreAudio" I: [] source.c: device.buffering.buffer_size = "4096" I: [] source.c: device.vendor.name = "Apple Inc." I: [] source.c: device.icon_name = "audio-card" D: [] module-coreaudio-device.c: 512 frames per IOProc D: [Built-in Microphone] module-coreaudio-device.c: Thread starting up D: [Built-in Microphone] core-util.c: sysctl for hw.cpufrequency: 2330000000 I: [Built-in Microphone] core-util.c: Successfully acquired real-time thread priority. I: [] module.c: Loaded "module-coreaudio-device" (index: #6; argument: "object_id=263 record=1 playback=1"). D: [] module-coreaudio-detect.c: Loading module-coreaudio-device with arguments 'object_id=261 record=1 playback=1' I: [] module-coreaudio-device.c: Initializing module for CoreAudio device 'Built-in Input' (id 261) I: [] module-card-restore.c: Restoring port latency offsets for card Built-in_Input. I: [] card.c: Created 1 "Built-in_Input" D: [] module-coreaudio-device.c: Sample rate: 44100.000000 D: [] module-coreaudio-device.c: 8 bytes per packet D: [] module-coreaudio-device.c: 1 frames per packet D: [] module-coreaudio-device.c: 8 bytes per frame D: [] module-coreaudio-device.c: 2 channels per frame D: [] module-coreaudio-device.c: 32 bits per channel D: [] module-coreaudio-device.c: Stream name is >Channel 1, Channel 2< D: [] core-subscribe.c: Dropped redundant event due to change event. D: [] module-device-restore.c: Database contains no data for key: source:Channel_1__Channel_2.2 D: [] module-device-restore.c: Database contains no (or invalid) data for key: source:Channel_1__Channel_2.2:null I: [] source.c: Created source 1 "Channel_1__Channel_2.2" with sample spec float32le 2ch 44100Hz and channel map front-left,front-right I: [] source.c: device.string = "Built-in Input" I: [] source.c: device.product.name = "Built-in Input" I: [] source.c: device.description = "Built-in Input" I: [] source.c: device.access_mode = "mmap" I: [] source.c: device.class = "sound" I: [] source.c: device.api = "CoreAudio" I: [] source.c: device.buffering.buffer_size = "4096" I: [] source.c: device.vendor.name = "Apple Inc." I: [] source.c: device.icon_name = "audio-card" D: [] module-coreaudio-device.c: 512 frames per IOProc D: [Built-in Input] module-coreaudio-device.c: Thread starting up D: [Built-in Input] core-util.c: sysctl for hw.cpufrequency: 2330000000 I: [Built-in Input] core-util.c: Successfully acquired real-time thread priority. I: [] module.c: Loaded "module-coreaudio-device" (index: #7; argument: "object_id=261 record=1 playback=1"). D: [] module-coreaudio-detect.c: Loading module-coreaudio-device with arguments 'object_id=265 record=1 playback=1' I: [] module-coreaudio-device.c: Initializing module for CoreAudio device 'Built-in Output' (id 265) I: [] module-card-restore.c: Restoring port latency offsets for card Built-in_Output. I: [] card.c: Created 2 "Built-in_Output" D: [] module-coreaudio-device.c: Sample rate: 44100.000000 D: [] module-coreaudio-device.c: 8 bytes per packet D: [] module-coreaudio-device.c: 1 frames per packet D: [] module-coreaudio-device.c: 8 bytes per frame D: [] module-coreaudio-device.c: 2 channels per frame D: [] module-coreaudio-device.c: 32 bits per channel pulseaudio(53039,0x7fff71106cc0) malloc: *** error for object 0x100d0d8b8: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Abort trap
comment:18 Changed 8 years ago by RJVB (René Bertin)
So the setuid error is not correct, that's annoying.
Are you by any chance doing this as root?
If you're not, then you have started the wrong DBus daemon. The system DBus daemon is rarely necessary, but the user session DBus is required for many things:
> launchctl load -w /opt/local/Library/LaunchAgents/org.freedesktop.dbus-session.plist
Quit and restart Terminal.app, restart your XQuartz session or simply log off and back in after that command. Now pulseaudio ought to find your session DBus.
If not: what does port installed dbus
show?
comment:19 Changed 8 years ago by kencu (Ken)
same error. doesn't help that I know nothing about dbus.
$ port installed dbus The following ports are currently installed: dbus @1.10.12_0 (active)
I was working on a new port - OpenDUNE - and the audio for that uses pulseaudio - ergo this tangle. Strangely, even after the crash, I got the audio somehow... Looks like it has something to do with coreaudio, based on that crash chain... I'll try it on a different system and see what happens. Perhaps it's a 10.6 thing.
comment:20 Changed 8 years ago by RJVB (René Bertin)
Do you still get the setuid error and failure to connect to a session DBus? That's becoming hard to debug from a distance.
The only thing you need to know about dbus is that clients find it via an environment variable that's easy to check for because its name starts with DBUS. I can confirm that dbus used to work just fine on 10.6 but it's been quite a while since I checked it. If you have Qt4 or Qt5 installed there's an application called qdbusviewer (probably in /opt/local/libexec/qt[45]/bin). If that starts and shows at least a few things that are not errors you're good on the dbus side of things.
The fact you still get audio suggests that pulseaudio forks a process that does the actual work which doesn't crash.
You are right that this might be a bug related to CoreAudio differences on 10.6 . The exact reason for the crash here is that the CA module tries to free memory that was never allocated. You can try to debug that yourself (lldb /opt/local/bin/pulseaudio
...), you can wait for the port maintainer to jump in, or you can report the crash upstream.
In case OpenDUNE is an X11 application: did you install pulseaudio with the +x11 variant? I take it you checked if it only supports pulseaudio?
comment:21 follow-up: 22 Changed 6 months ago by mohd-akram (Mohamed Akram)
Cc: | mohd-akram added |
---|---|
Resolution: | → fixed |
Status: | reopened → closed |
PulseAudio should be working now. A couple of updates have been made to fix crashes when using CoreAudio and on 10.6:
[fd9e82cb56afcc86a42b66f4b6ac9c273f8a562b/macports-ports]
[580eb460ebdb7dbf14905b21e849d0330f8b9144/macports-ports]
The version this was reported for is quite old so a new ticket is probably warranted if there's still an issue.
comment:22 Changed 6 months ago by RJVB (René Bertin)
Replying to mohd-akram:
The version this was reported for is quite old
Not when the ticket was created ... 9 years ago ;)
Coincidentally I've been looking into PulseAudio again with @barracuda156 (see e.g. #69539). It had a couple of issues that I fixed to get it to work (for me, and him too I think) but I can now even play remote audio from Linux to my Mac when I want.
Even with the default.pa modifications,
pulseaudio -v --start
crashes:but running
pulseaudio
in non-daemon mode at least allows me to play supported files usingpaplay
.