Created attachment 130308 [details] stacktrace Pulseaudio crashes almost everytime I switch output profile in plasma-pa. Version 10.0
Since this is a crash bug, I'm marking this as a release blocker. Some more information would be good to have: Before the profile switch, what's the output of "pactl list"? Which profile do you select? Can you install debug symbols for pulseaudio to get a bit more informative backtrace? Can you provide a verbose log? Instructions here: https://wiki.ubuntu.com/PulseAudio/Log Those instructions tell you to disable autospawning in client.conf, but that doesn't work, if your distribution uses systemd to manage pulseaudio. To stop systemd from automatically starting pulseaudio, run these commands: systemctl --user disable pulseaudio.socket systemctl --user stop pulseaudio.socket pulseaudio.service To undo those commands: systemctl --user enable pulseaudio.socket systemctl --user start pulseaudio.socket
Created attachment 130755 [details] pactl before crash
Created attachment 130756 [details] stacktrace with debugging symbols
I am switching from hdmi-output-2 to output:analog-stereo Sorry I did not turned on verbose logs yet. Maybe you can figure out something from new stacktrace. Thank you :)
Just cooked up a patch that hopefully solves the issue. Patch can be found here: https://patchwork.freedesktop.org/patch/152167/ Could you please test if works?
Created attachment 130996 [details] [review] pulseaudio-discuss-echo-cancel-Fix-segfault-during-profile-switch-v2.patch Your patch does not apply cleanly on 10.0. I made my own version. Let me give a few days to test it and I will get back to you. Thanks
Created attachment 130998 [details] new_stacktrace.txt It happened again, but with different stacktrace
Could you try this one: https://patchwork.freedesktop.org/patch/152436/ on top of the last one?
BTW, patches are against current git. Sorry.
Again sorry, I was too quick with the patch. There are other places with the same bug. So forget it.I'll send a new patch in a while.
OK, I hope I found all relevant places now. Here is the patch: https://patchwork.freedesktop.org/patch/152461/ Please give it a try.
Did you already find some time to test the patch? This bug is one of the blocker bugs for the next PA release, so I would appreciate your feedback.
Yes, I have not seen crashes after applying your patch.
Good news. Thanks for testing.
Patch does not fix the problem. It still happening with the same stacktrace. I though maybe system update replaced some files, but I did fresh recompilation with patch applied on top of pulseaudio, full restart and it crashed several times already.
It turned out, that the patch was the wrong approach to fix the bug anyway. Please try using current git and apply the following two patches: https://patchwork.freedesktop.org/patch/155160/ https://patchwork.freedesktop.org/patch/154921/ The second patch should fix the bug, but it will not work correctly without the first patch.
Patches does not apply on top of 10. I think I will wait until pulseaudio 11. Thank you for making pulseaudio better software.
The patches are now merged.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.