Kodi 21 flatpak crashes trying to eject DVD



Hi there, I’ve been setting up a HTPC to play DVDs and I’ve run into an odd issue. Everything works fine until I try to eject the DVD and I select “Eject Tray”, at which point Kodi freezes completely and I have to kill the process. I tried resetting the userdata to default, and even uninstalling and reinstalling, but the same thing happens. As soon as I try to eject the DVD, Kodi completely freezes.

I can eject the DVD from the OS, either by using the eject button in file browser, or the

Code:
eject -v

terminal command, so it’s not a drive failure. I can also use the button on the drive, however neither of these are suitable workarounds since the drive button is obscured in the case I’m using, and I want the whole thing to be controlled by a controller without having to plug in a keyboard/mouse.

Hardware:
Platform – x86-64
CPU – Ryzen 5 4600G
GPU – Radeon Vega 8 iGPU
RAM – 16GB DDR4-3200

Software:
Kodi version – 21.1.0
Installation method – Flatpak installed from flathub
Git – 20240817-183eb85-dirty
OS – Fedora 40 KDE
Kernel version – 6.10.11-200.fc40.x86_64

Log file:
https://paste.kodi.tv/fiwaveqevi.kodi

I have a feeling it’s something to do with it being a flatpak, since I tried installing the rpm from rpmfusion, and got 2 different results:

Downloading the .rpm from the rpmfusion website and installing it produces a Kodi install that can eject the DVD, but cannot play them – it just gives the “one or more items failed to play” message when I try

Installing via the terminal’s

Code:
dnf install kodi

produces a Kodi install that freezes shortly after reaching the main menu

As a last ditch attempt, I tried booting up a live USB of Linux Mint 21.3 and installing the flatpak on that, and the same thing happens, it freezes trying to eject the DVD drive.

If anyone has any suggestions Iwould really appreciate them, this is starting to drive me round the bend