Bluetooth profile switch crashes wireplumber
After recent update to wireplumber 0.5.4 (wireplumber-0.5.4-1.fc40.x86_64), switching bluetooth profile from A2DP to HSP/HFP crashes the wireplumber. At the time of the hang, the following message stuck in the log:
Jun 27 12:47:32 wireplumber[8615]: wplua: [string "linking-utils.lua"]:118: bad argument #4 to 'format' (number expected, got nil)
stack traceback:
[C]: in function 'string.format'
[string "linking-utils.lua"]:118: in global 'setPriorityMediaRoleLink'
[string "linking-utils.lua"]:98: in function 'linking-utils.updatePriorityMediaRoleLink'
[string "link-target.lua"]:157: in function <[string "link-target.lua"]:25>
[C]: in ?
Here is log of events: wireplumber-crash.
Happens for example in Dota2 when opening settings or joining the Google Meet meeting.
Edited by Gurenko Alex