nemo
16 April 2024 10:14
1
The latest flatpak version of Kodi has now implemented pipewire as the default sound server. Unfortunately, with this new version of the Kodi app doesn't have sound anymore either in the UI or while playing videos. Actually, the app crashes when trying to play a video.
My question: is this due to the way that Ubuntu/UM 22.04 implements pipewire or is this a bug with Kodi?
Thanks for your help with this. Once I have some feedback from you guys, that means I either need to adjust my system settings or file a bug report with the Kodi maintainers.
1 Like
nemo
18 April 2024 04:56
2
Short answer, it's both. Here's the workaround for others experiencing the same issue until the Kodi team fix this issue and allow sound backend selection:
opened 04:25PM - 15 Apr 24 UTC
closed 05:17PM - 15 Apr 24 UTC
Triage: Needed
## Bug report
### Describe the bug
Here is a clear and concise description of … what the problem is:
No sound today after:
``` console
$ sudo flatpak update
```
... was working yesterday before update.
Please advise and thanks for the look.
## Expected Behavior
Here is a clear and concise description of what was expected to happen:
Have sound.
## Actual Behavior
No sound.
## Possible Fix
Needs check for PulseAudio and offer/use it perhaps in addition to PipeWire if detected.
More of a work around here in the short term...
``` console
$ # Viable solution not messing with installing Pipewire which would affect a lot of applications including system
$ sudo flatpak update --commit=c66a791ac482c3b0c257188f2b3ccf796082176e0822192ec9132f9b78044dd0 tv.kodi.Kodi
[sudo] password:
Looking for updates…
ID Branch Op Remote Download
1. [✓] tv.kodi.Kodi stable u flathub 39.7 MB / 220.6 MB
Updating… ████████████████████ 100% 6.6 MB/s 00:00
Note that '/var/lib/flatpak/exports/share' is not in the search path
set by the XDG_DATA_HOME and XDG_DATA_DIRS
environment variables, so applications may not
be able to find it until you set them. The
directories currently searched are:
- /root/.local/share
ID Branch Op Remote Download
1. [✓] tv.kodi.Kodi stable u flathub 39.7 MB / 220.6 MB
Updates complete.
$ # Prevent updates until fixed for production targets
$ flatpak mask tv.kodi.Kodi
$ ## Future option to release update prevention
$ #flatpak mask --remove tv.kodi.Kodi
```
### To Reproduce
Steps to reproduce the behavior:
``` console
$ uname -a
Linux machine 6.5.0-27-generic #28~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 15 10:51:06 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy
$ flatpak remote-info --log flathub tv.kodi.Kodi
ID: tv.kodi.Kodi
Ref: app/tv.kodi.Kodi/x86_64/stable
Arch: x86_64
Branch: stable
Collection: org.flathub.Stable
Download: 220.7 MB
Installed: 508.2 MB
Runtime: org.freedesktop.Platform/x86_64/22.08
Sdk: org.freedesktop.Sdk/x86_64/22.08
Commit: 12f232340d35749eb4513802c12614126cd0b0e631bf809df414063c1c3e332b
Parent: c66a791ac482c3b0c257188f2b3ccf796082176e0822192ec9132f9b78044dd0
Subject: Update hwdata (af8e5a0b)
Date: 2024-04-14 16:49:35 +0000
History:
Commit: c66a791ac482c3b0c257188f2b3ccf796082176e0822192ec9132f9b78044dd0
Subject: Update addons (25fba414)
Date: 2024-04-07 15:51:04 +0000
…
```
``` console
$ # Sound at previous release of c66a791ac482c3b0c257188f2b3ccf796082176e0822192ec9132f9b78044dd0
$ flatpak run tv.kodi.Kodi --version
Kodi Media Center 21.0 (21.0.0) Git:20240406-60c4500-dirty
Copyright (C) 2005-2021 Team Kodi - http://kodi.tv
$ # See screenshots beginning with Sound since current flatpak seems a bit useless for versioning switch.
```
``` console
$ sudo flatpak update
```
``` console
$ # No Sound at current release of 12f232340d35749eb4513802c12614126cd0b0e631bf809df414063c1c3e332b
$ flatpak run tv.kodi.Kodi --version
Kodi Media Center 21.0 (21.0.0) Git:20240406-60c4500-dirty
Copyright (C) 2005-2021 Team Kodi - http://kodi.tv
$ # See screenshots beginning with No Sound since current flatpak seems a bit useless for versioning switch.
```
### Debuglog
The debuglog can be found here:
Project should provide a howto reference here in the HTML comments to do this by modifying [xbmc/xbmc/blob/`ddf131b`/.github/ISSUE_TEMPLATE/bug_report.md](https://github.com/xbmc/xbmc/blob/ddf131b114a453280d168093eaf287ad3086ea5c/.github/ISSUE_TEMPLATE/bug_report.md) ... will append in a bit after I find it for before and after... **EDIT** attached:
| | Sound | No Sound |
| -------- | ------- | -------- |
| normal | [~/.var/app/tv.kodi.Kodi/data/temp/kodi.old.log](https://github.com/xbmc/xbmc/files/14982022/Sound.-.kodi.log) | [~/.var/app/tv.kodi.Kodi/data/temp/kodi.log](https://github.com/xbmc/xbmc/files/14982027/No.Sound.-.kodi.log) |
| **EDIT** [debug](https://kodi.wiki/view/Log_file/Easy) | [~/.var/app/tv.kodi.Kodi/data/temp/kodi.old.log](https://github.com/xbmc/xbmc/files/14983385/Sound.dbg.enabled.-.kodi.log) | [~/.var/app/tv.kodi.Kodi/data/temp/kodi.log](https://github.com/xbmc/xbmc/files/14983175/No.Sound.dbg.enabled.-.kodi.log) |
### Screenshots
Here are some links or screenshots to help explain the problem:
| Sound | |
| -------- | ------- |
| <a href="https://github.com/xbmc/xbmc/assets/114709/76db4068-6920-4bde-b1de-21b16e0ff66b"><img src="https://github.com/xbmc/xbmc/assets/114709/76db4068-6920-4bde-b1de-21b16e0ff66b" width="196" height="112" alt="Sound - System Info" title="Click to enlarge... Sound - System Info"></a> | <a href="https://github.com/xbmc/xbmc/assets/114709/78d95de9-9544-47dd-85ea-1ba1cc9183c7"><img src="https://github.com/xbmc/xbmc/assets/114709/78d95de9-9544-47dd-85ea-1ba1cc9183c7" width="196" height="112" alt="Sound - Settings-System" title="Click to enlarge... Sound - Settings-System"></a> |
| No Sound | |
| -------- | ------- |
| <a href="https://github.com/xbmc/xbmc/assets/114709/d9dc4adc-5920-4bcb-9f0a-67578ef35368"><img src="https://github.com/xbmc/xbmc/assets/114709/d9dc4adc-5920-4bcb-9f0a-67578ef35368" width="196" height="112" alt="No Sound - System Info" title="Click to enlarge... No Sound - System Info"></a> | <a href="https://github.com/xbmc/xbmc/assets/114709/28dbf97c-b03a-4376-926f-a5d6eeb24c5f"><img src="https://github.com/xbmc/xbmc/assets/114709/28dbf97c-b03a-4376-926f-a5d6eeb24c5f" width="196" height="112" alt="No Sound - Settings-System" title="Click to enlarge... No Sound - Settings-System"></a> |
## Additional context or screenshots (if appropriate)
Here is some additional context or explanation that might help:
| [¹](https://ubuntu.com/about/release-cycle) | Released | End of Standard Support | End of Ubuntu Pro Support |
| :-------- | :--------: | :--------: | :--------: |
| 22.04 LTS (Jammy Jellyfish) | Apr 2022 | Apr **2027** | Apr **2032** |
### Your Environment
Used Operating system:
- [ ] Android
- [ ] iOS
- [ ] tvOS
- [x] Linux
- [ ] macOS
- [ ] Windows
- [ ] Windows UWP
- Operating system version/name: Kubuntu (see above Steps To Reproduce *(STR)*)
- Kodi version: Varies *(described elsewhere above)*
*note: Once the issue is made we require you to update it with new information or Kodi versions should that be required.
Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.*
3 Likes
Just another FYI for those following this topic, the sound server backend selection has now been enabled in the lastest Kodi release. Very useful, so you can now have one sound server for Kodi and another for the DE
2 Likes