Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Bug kodi/v21/flatpak/linux exec ERROR: pipewire/thread-loop.c:62 do_unlock()
#1
kodi v21 flatpak/linux fails to launch/exec, ERROR: "'this->recurse > 0' failed at ../src/pipewire/thread-loop.c:62 do_unlock()"

i've read _old_ pipewire/pulseaudio issues @ GH; unclear if related here, or new v21/flatpak issue.
is this a known issue? an available workaround/fix? or, new?

on
Code:
    inxi -AS
        System:
          Host: pgavk.lan Kernel: 6.8.5-201.fc39.x86_64
            arch: x86_64 bits: 64
          Desktop: KDE Plasma v: 5.27.11 Distro: Fedora Linux 39 (Thirty Nine)
        Audio:
          Device-1: Intel DG2 Audio driver: snd_hda_intel
          Device-2: AMD Starship/Matisse HD Audio driver: snd_hda_intel
          Device-3: Generic USB Audio driver: hid-generic,snd-usb-audio,usbhid
            type: USB
          API: ALSA v: k6.8.5-201.fc39.x86_64 status: kernel-api
          Server-1: PipeWire v: 1.0.4 status: active
with
Code:
    rpm -qa | grep -E "^pipewire|^pulse" | sort
        pipewire-1.0.4-2.fc39.x86_64
        pipewire-alsa-1.0.4-2.fc39.x86_64
        pipewire-codec-aptx-1.0.4-1.fc39.x86_64
        pipewire-gstreamer-1.0.4-2.fc39.x86_64
        pipewire-jack-audio-connection-kit-libs-1.0.4-2.fc39.x86_64
        pipewire-libs-1.0.4-2.fc39.x86_64
        pipewire-plugin-jack-1.0.4-2.fc39.x86_64
        pipewire-pulseaudio-1.0.4-2.fc39.x86_64
        pipewire-utils-1.0.4-2.fc39.x86_64
        pulseaudio-libs-16.1-5.fc39.x86_64
        pulseaudio-libs-devel-16.1-5.fc39.x86_64
        pulseaudio-libs-glib2-16.1-5.fc39.x86_64
        pulseaudio-utils-16.1-5.fc39.x86_64
with kodi 21 installed
Code:
    flatpak install flathub tv.kodi.Kodi
    flatpak info tv.kodi.Kodi

        Team Kodi - Ultimate entertainment center

                  ID: tv.kodi.Kodi
                 Ref: app/tv.kodi.Kodi/x86_64/stable
                Arch: x86_64
              Branch: stable
             Version: 21.0-Omega
             License: GPL-2.0-only GPL-2.0-or-later LGPL-2.1-or-later MIT BSD-3-Clause BSD-4-Clause
              Origin: flathub
          Collection: org.flathub.Stable
        Installation: system
           Installed: 508.0 MB
             Runtime: org.freedesktop.Platform/x86_64/22.08
                 Sdk: org.freedesktop.Sdk/x86_64/22.08

              Commit: c66a791ac482c3b0c257188f2b3ccf796082176e0822192ec9132f9b78044dd0
              Parent: 8bb02c33d4ee5bfd4eb2aca728fef0d2d28e21583dd170681a809125c2b1ae2c
             Subject: Update addons (25fba414)
                Date: 2024-04-07 15:51:04 +0000
on launch,
Code:
    flatpak run tv.kodi.Kodi

        F: No installations directory in /etc/flatpak/installations.d. Skipping
        F: Opening system flatpak installation at path /var/lib/flatpak
        F: Opening user flatpak installation at path /home/pgavk/.local/share/flatpak
        F: Opening user flatpak installation at path /home/pgavk/.local/share/flatpak
        F: Opening system flatpak installation at path /var/lib/flatpak
        F: Skipping parental controls check for app/tv.kodi.Kodi/x86_64/stable since parental controls are disabled globally
        F: Opening user flatpak installation at path /home/pgavk/.local/share/flatpak
        F: Opening system flatpak installation at path /var/lib/flatpak
        F: /var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/22.08/759c0ac8be47277580ab71e3e4adae3b452c146f761fa37cc63fe58c4b8faf39/files/lib32 does not exist
        F: Cleaning up unused container id 176556565
        F: Cleaning up per-app-ID state for tv.kodi.Kodi
        F: Allocated instance id 2611546991
        F: Add defaults in dir /tv/kodi/Kodi/
        F: Add locks in dir /tv/kodi/Kodi/
        F: Allowing wayland access
        F: Allowing pulseaudio access
        F: Running '/usr/bin/bwrap --args 43 /usr/bin/xdg-dbus-proxy --args=45'
        F: Running '/usr/bin/bwrap --args 43 kodi'
        'this->recurse > 0' failed at ../src/pipewire/thread-loop.c:62 do_unlock()
kodi log --> https://paste.kodi.tv/alufobimos.kodi
Reply
#2
The recursion error is not critical. Your problem is this:
Code:

2024-04-13 17:51:33.291 T:7       error <general>: CDRMUtils::InitDrm - failed to authorize drm magic: Permission denied
2024-04-13 17:51:33.291 T:7       error <general>: CWinSystemGbm::InitWindowSystem - failed to initialize Atomic DRM
2024-04-13 17:51:33.291 T:7       error <general>: CDRMUtils::RestoreOriginalMode - failed to set original crtc mode
2024-04-13 17:51:33.292 T:7        info <general>: CDRMUtils::FindConnector - using connector: HDMI-A-2
2024-04-13 17:51:33.294 T:7        info <general>: Skipped 1 duplicate messages..
2024-04-13 17:51:33.294 T:7        info <general>: CDRMUtils::FindEncoder - using encoder: 254
2024-04-13 17:51:33.294 T:7        info <general>: CDRMUtils::FindPlanes - using crtc: 80
2024-04-13 17:51:33.294 T:7       error <general>: CDRMUtils::InitDrm - failed to authorize drm magic: Permission denied
2024-04-13 17:51:33.294 T:7       error <general>: CWinSystemGbm::InitWindowSystem - failed to initialize Legacy DRM
2024-04-13 17:51:33.294 T:7       error <general>: CDRMUtils::RestoreOriginalMode - failed to set original crtc mode
2024-04-13 17:51:33.344 T:7        info <general>: Found resolution 1280x720 with 1280x720 @ 50.000000 Hz
So it looks like you are having some kind of permission problem. This is just a shot into the dark, but does adding your user to the render or video group make a difference?
Reply
#3
(2024-04-14, 01:54)Neo1973 Wrote: So it looks like you are having some kind of permission problem. This is just a shot into the dark, but does adding your user to the render or video group make a difference?

user already is in both groups,

Code:
video:x:39:sddm,pgavk
render:x:998:pgavk

fwiw, kodi 20.5 -- installed from either distro rpm or flatpak -- launches/operates ok here. no issues.
Reply
#4
searching on the "CDRMUtils::InitDrm - failed to authorize drm magic: Permission denied" error, these pop up

https://github.com/xbmc/xbmc/issues/18245
https://github.com/xbmc/xbmc/issues/20280

those don't seem _directly_ related, but have some overlap

i'm digging into @lrusak 's comments further ...
Reply
#5
loaded up Flatseal, noticed perms for Kodi v21 Flatpak were _OFF_ for
  • X11 windowing system
  • Fallback to X11 windowing system

toggling both -> ON solves the launch issue

Code:
flatpak run tv.kodi.Kodi
    'this->recurse > 0' failed at ../src/pipewire/thread-loop.c:62 do_unlock()
    libva info: VA-API version 1.18.0
    libva info: User environment variable requested driver 'iHD'
    libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
    libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/iHD_drv_video.so
    libva info: Found init function __vaDriverInit_1_18
    libva info: va_openDriver() returns 0

, kodi v21's opened/functional at UI ...
Reply
#6
fyi, @ Flatseal, on clean-install:

Image
Reply

Logout Mark Read Team Forum Stats Members Help
kodi/v21/flatpak/linux exec ERROR: pipewire/thread-loop.c:62 do_unlock()0