[MacPorts] #59103: pulseaudio @12.99.3_0+x11: autolaunch/dbus not working
MacPorts
noreply at macports.org
Wed Sep 25 04:51:10 UTC 2019
#59103: pulseaudio @12.99.3_0+x11: autolaunch/dbus not working
------------------------+------------------------
Reporter: quentinmit | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: pulseaudio
------------------------+------------------------
pulseaudio autolaunch/dbus doesn't work on my machine. When run from
Terminal.app, pulseaudio --start just prints:
{{{
$ pulseaudio --start -vvvvv
W: [] caps.c: Normally all extra capabilities would be dropped now, but
that's impossible because PulseAudio was built without capabilities
support.
D: [] conf-parser.c: Parsing configuration file
'/opt/local/etc/pulse/client.conf'
D: [] conf-parser.c: /opt/local/etc/pulse/client.conf.d does not exist,
ignoring.
E: [] main.c: Daemon startup failed.
}}}
When I run it without `--start`, we find out it's because pulseaudio can't
talk to dbus:
{{{
$ pulseaudio
W: [] caps.c: Normally all extra capabilities would be dropped now, but
that's impossible because PulseAudio was built without capabilities
support.
dbus[52757]: 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
dbus[52757]: 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
dbus[52757]: 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
dbus[52757]: 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
dbus[52757]: 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
dbus[52757]: 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
dbus[52757]: 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
dbus[52757]: 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
dbus[52757]: 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
dbus[52757]: 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
dbus[52757]: 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.
E: [] module-coreaudio-device.c: Skipping device with more channels than
we support (64)
E: [] module-coreaudio-device.c: Skipping device with more channels than
we support (64)
dbus[52757]: Dynamic session lookup supported but failed: Unable to find
launchd socket when setuid
W: [] server-lookup.c: Unable to contact D-Bus:
org.freedesktop.DBus.Error.NoMemory: Not enough memory
dbus[52757]: Dynamic session lookup supported but failed: Unable to find
launchd socket when setuid
W: [] main.c: Unable to contact D-Bus:
org.freedesktop.DBus.Error.NoMemory: Not enough memory
}}}
The error doesn't make any sense to me because pulseaudio is definitely
not setuid:
{{{
$ ls -lh /opt/local/bin/pulseaudio
-rwxr-xr-x 1 root admin 101K Sep 5 05:28 /opt/local/bin/pulseaudio
}}}
Interestingly, if I run pulseaudio /as myself/ with sudo, it doesn't
complain about talking to dbus:
{{{
$ sudo -u quentin pulseaudio
W: [] caps.c: Normally all extra capabilities would be dropped now, but
that's impossible because PulseAudio was built without capabilities
support.
W: [] pid.c: Stale PID file, overwriting.
E: [] module-coreaudio-device.c: Skipping device with more channels than
we support (64)
E: [] module-coreaudio-device.c: Skipping device with more channels than
we support (64)
}}}
Finally, dbus in general seems to be working fine on my machine. `dbus-
monitor` happily prints messages on the bus, and the
DBUS_LAUNCHD_SESSION_BUS_SOCKET environment variable is set in my bash
environment.
--
Ticket URL: <https://trac.macports.org/ticket/59103>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list