[Pkg-utopia-maintainers] Bug#982853: pipewire: `pipewire.service` fails to start because `libpipewire-module-portal` fails with `failed to initialize: Cannot allocate memory`

Michael Schaller misch at google.com
Mon Feb 15 13:05:01 GMT 2021


Package: pipewire
Version: 0.3.19-4
Severity: grave
Tags: upstream
Justification: renders package unusable
X-Debbugs-Cc: misch at google.com

Dear Maintainer,

The `pipewire.service` systemd user service fails to start on my machine on loading `libpipewire-module-portal`.
The module load itself fails with `failed to initialize: Cannot allocate memory`.
If I comment out `libpipewire-module-portal` in `/etc/pipewire/pipewire.conf` then `pipewire.service` starts successfully.
Also noteworthy is that I don't have any `xdg-desktop-portal*` packages installed.

I suspect (but did not confirm) that this issue is fixed in `pipewire 0.3.20` as there have been these 2 commits:
* `portal: error->warn when the portal pid is unknown`: https://github.com/PipeWire/pipewire/commit/3162465f6fe906cd2c885bad139ddb9eb34d4413
* `Silence some dbus errors`: https://github.com/PipeWire/pipewire/commit/be107317f53e8af20f5595dfc10c8274c712573c

Best,

Michael Schaller


Error details:
```
$ journalctl --user --boot --unit pipewire.service
-- Journal begins at Mon 2021-02-01 09:13:53 CET, ends at Mon 2021-02-15 13:46:11 CET. --
Feb 15 13:43:24 misch-x1v6 systemd[2650]: Started Multimedia Service.
Feb 15 13:43:24 misch-x1v6 pipewire[2669]: Failed to connect to system bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Feb 15 13:43:24 misch-x1v6 pipewire[2669]: Failed to connect to system bus
Feb 15 13:43:24 misch-x1v6 pipewire[2669]: "/usr/lib/x86_64-linux-gnu/pipewire-0.3/libpipewire-module-portal.so": failed to initialize: Cannot allocate memory
Feb 15 13:43:24 misch-x1v6 pipewire[2669]: daemon 0x7ffeca84a120: could not load module "libpipewire-module-portal": Cannot allocate memory
Feb 15 13:43:24 misch-x1v6 pipewire[2669]: failed to load modules: Cannot allocate memory
Feb 15 13:43:24 misch-x1v6 systemd[2650]: pipewire.service: Main process exited, code=exited, status=255/EXCEPTION
Feb 15 13:43:24 misch-x1v6 systemd[2650]: pipewire.service: Failed with result 'exit-code'.
Feb 15 13:43:24 misch-x1v6 systemd[2650]: pipewire.service: Scheduled restart job, restart counter is at 1.
Feb 15 13:43:24 misch-x1v6 systemd[2650]: Stopped Multimedia Service.
<4 more start attempts>
Feb 15 13:43:25 misch-x1v6 systemd[2650]: pipewire.service: Start request repeated too quickly.
Feb 15 13:43:25 misch-x1v6 systemd[2650]: pipewire.service: Failed with result 'exit-code'.
Feb 15 13:43:25 misch-x1v6 systemd[2650]: Failed to start Multimedia Service.
```

```
$ journalctl --user --boot | grep 'org.freedesktop.portal.Desktop'
Feb 15 13:43:26 misch-x1v6 pipewire[2933]: Failed to receive portal pid: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get PID of name 'org.freedesktop.portal.Desktop': no such name
Feb 15 13:43:26 misch-x1v6 /usr/libexec/gdm-x-session[2933]: [E][000000047.082442][module-portal.c:137 on_portal_pid_received()] Failed to receive portal pid: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get PID of name 'org.freedesktop.portal.Desktop': no such name
```



More information about the Pkg-utopia-maintainers mailing list