Kodi Community Forum

Full Version: Fedora 36 - Kodi-standalone refusing to start / crashing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to migrate my kodi to a new Intel NUC 11 but kodi keeps core dumping during startup when trying to run the stand-alone version as systemd service.
Starting kodi as a program after switching to the graphical.target does work but I need it to work without keyboard and mouse :-)
I'm assuming there is some configuration/permission error somewhere or some hardware related bug but I can't find it. If it was hardware I would have expected X to not work properly at all.

When it tries to start I can see X starting (the X mouse cursor appears) and then it blinks a few times as it crashes and gets auto restarted by systemd.

The old media player is running FC35 and is running just fine, but it has been constantly upgraded since Fedora 24 so it might just be working due to legacy settings.
I installed the same packages as are on the working kodi machine.
Initially the NUC was installed as a 'gnome desktop' but that was giving the same crash, I then reinstalled it as a 'minimal install' and tried to duplicate what was installed on the old kodi. (base-x and LXDE Desktop for gui)

I put logs on pastebin in a folder. (Sys info, crash dump(same contents as kodi.log + kernel info) and syslog entries from the crash.)
gdb does not seem to want to make a crash dump of kodi-standalone.

The new media player is running Fedora 36
Kodi is installed from rpmfusion -> kodi-19.4-1.fc36.x86_64
Currently running Kernel 5.18.6-200.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 22 13:46:18 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux but new ones come out almost daily.
Intel NUC nuc11tnkv7
CPU is a 11th Gen Intel® Core™ i7-1165G7
GPU is the on board 'Intel® Iris® Xe graphics or Intel® UHD graphics'
No configuration has been done on Kodi. Everything is default.
Default runlevel is multi-user so it does not try to start X twice.
systemd file:
Quote:# cat /etc/systemd/system/kodi.service
[Unit]
Description = kodi-standalone using xinit
After = systemd-user-sessions.service
After = bluetooth.service

[Service]
User = kodi
Group = kodi
PAMName = login
Type = simple
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch /usr/bin/kodi-standalone -- :0 -nolisten tcp
Restart = on-abort
 
[Install]
WantedBy = multi-user.target
it's crashing in the intel video driver, sadly no details in the logs:
Quote:Jun 26 22:40:59 MediaPlayer kernel: kodi.bin[1202]: segfault at 6a8 ip 00007f07b967de07 sp 00007ffd5b10dab0 error 4 in iris_dri.so[7f07b8891000+f7b000]
Jun 26 22:40:59 MediaPlayer kernel: Code: 41 5c 41 5d c3 66 0f 1f 44 00 00 48 89 d3 e9 13 ff ff ff 53 49 89 cb 89 d3 48 8d 0d 03 f8 54 00 41 8d 50 d8 48 89 f8 49 89 f2 <8b> 3f 48 63 14 91 48 01 ca 3e ff e2 be 00 04 00 00 0f 1f 84 00 00
Jun 26 22:40:59 MediaPlayer systemd[1]: Created slice system-systemd\x2dcoredump.slice - Slice /system/systemd-coredump.
Jun 26 22:40:59 MediaPlayer audit: BPF prog-id=101 op=LOAD
Jun 26 22:40:59 MediaPlayer audit: BPF prog-id=102 op=LOAD
Jun 26 22:40:59 MediaPlayer audit: BPF prog-id=103 op=LOAD
Jun 26 22:40:59 MediaPlayer systemd[1]: Started [email protected] - Process Core Dump (PID 1298/UID 0).
Jun 26 22:40:59 MediaPlayer audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-coredump@0-1298-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 26 22:41:00 MediaPlayer [1300]: [172B blob data]
Jun 26 22:41:00 MediaPlayer systemd-coredump[1299]: [🡕] Process 1202 (kodi.bin) of user 1000 dumped core.
Why would kodi crash on the intel driver if X itself does just start up fine ? (I'm not that versed in X stuff on Linux)
All the crash dump info I have is in the system log, I checked crashdumpctl but that gives the same info as that's already in the log.
Ok so as a test I did the exact same Fedora 36 install into a VM and then it works so this is indeed a driver issue with the Intel 11Gen Iris.
Now is this an issue with Kodi that can perhaps be solved by compiling from source or an issue with what I'm assuming are kernel drivers ?
Update 2
I wiped the NUC and installed Fedora 35 and Kodi-standalone works just fine under FC35.

That still leaves the question on if this is a Kodi bug with Fedora 36 and the Intel Iris XE driver or if this is a Fedora 36 kernel driver bug just so I know where to file a bug report.
It takes about 15 minutes to reinstall everything from the ground up so I'll leave Kodi unconfigured for now in case someone wants me to try something on FC36.

https://paste.kodi.tv/luvixamoxo