Bug 1952883

Summary: pipewire-0.3.26-1, slow exiting (causing slow shutdown)
Product: [Fedora] Fedora Reporter: Qiyu Yan <yanqiyu01>
Component: pipewireAssignee: Wim Taymans <wtaymans>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: brunovern.a, joepesco2020, vquintans, wtaymans
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pipewire-0.3.26-4.fc34 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-02 02:03:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Qiyu Yan 2021-04-23 12:43:28 UTC
Description of problem:
After updating to pipewire-0.3.26-1, my system takes more then 10s to shutdown, after some investigating, this is caused by the new pipewire 


Version-Release number of selected component (if applicable):
pipewire-0.3.26-1.fc34.x86_64

How reproducible:
Always (on my desktop)

Steps to Reproduce:
1.Update to pipewire-0.3.26-1.fc34.x86_64
2.shutdown or restart or systemctl restart --user pipewire
3.downgrade to pipewire-0.3.25-1.fc34.x86_64

Actual results:
The shutdown/restart takes longer than expected.
After downgrading, everything is back to normal.

Expected results:
pipewire-0.3.26-1.fc34.x86_64 should exit quickly and clearly.

Additional info:
A piece of journal during shutdown

4月 23 20:20:31 yan-desktop systemd[1840]: Started Multimedia Service.
4月 23 20:20:56 yan-desktop pipewire-media-session[2215]: GetManagedObjects() failed: org.freedesktop.DBus.Error.NoReply
4月 23 20:22:41 yan-desktop systemd[1840]: Stopping Multimedia Service...
4月 23 20:23:06 yan-desktop pipewire-media-session[2215]: native: Unregistering Profile /Profile/HSPHS failed
4月 23 20:23:31 yan-desktop pipewire-media-session[2215]: native: Unregistering Profile /Profile/HFPAG failed
4月 23 20:23:31 yan-desktop pipewire-media-session[2215]: error id:0 seq:903 res:-32 (断开的管道): connection error
4月 23 20:23:31 yan-desktop systemd[1840]: pipewire.service: Deactivated successfully.
4月 23 20:23:31 yan-desktop systemd[1840]: Stopped Multimedia Service.

The Chinese sentence "断开的管道" means "Broken Pipe". You could see it takes 15s to stop pipewire.

After downgrading, stopping pipewire takes less than 1 second.
4月 23 20:34:34 yan-desktop systemd[1787]: Stopping Multimedia Service...
4月 23 20:34:34 yan-desktop systemd[1787]: pipewire.service: Deactivated successfully.
4月 23 20:34:34 yan-desktop systemd[1787]: Stopped Multimedia Service.
4月 23 20:34:34 yan-desktop systemd[1787]: Started Multimedia Service.

Comment 1 Fedora Update System 2021-04-29 07:57:00 UTC
FEDORA-2021-03756cf274 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-03756cf274

Comment 2 Fedora Update System 2021-04-29 17:11:04 UTC
FEDORA-2021-03756cf274 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-03756cf274`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-03756cf274

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Fedora Update System 2021-05-02 02:03:20 UTC
FEDORA-2021-03756cf274 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.