Joshua-Riek / ubuntu-rockchip

Ubuntu for Rockchip RK35XX Devices
https://joshua-riek.github.io/ubuntu-rockchip-download/
GNU General Public License v3.0
2.49k stars 266 forks source link

Bug Report: Kodi 20.4 in ubuntu 24.04, Python fatal error #1122

Open allidep opened 1 week ago

allidep commented 1 week ago

What happened?

Ubuntu 24.04, Kodi 20.4 works as expected for Radxa Zero 3E 1GiB, using DRM PRIME decoder with PRIME Render Method to Direct to plane. But when browsing the samba shares or sorting the videos or getting movie info, It crashes with error.

Fatal Python error: PyImport_AppendInittab: PyImport_AppendInittab() may not be called after Py_Initialize()
Python runtime state: initialized

Thread 0x0000ffff667ce0c0 (most recent call first):
<no Python frame>
Aborted (core dumped)
Crash report available at /home/user/kodi_crashlog-20241104_174516.log

System Python version 3.12 might be not compatible with Kodi.

So, I have sourced new Kodi-Omega and compiled it with ffmpeg from Nyanmisaka/ffmpeg-rockchip. It work better and no python error, HW acceleration works as expected but now I cannot see controls/UI during video playback, Video playback is always foreground and blocks the UI elements. Kernel shows error on screen error:

[drm:vop2_plane_atomic_check] *ERROR* Esmart0-win0 is invisible(src: pos[0, 0] rect[1920 x 800] dst: pos[0, 0] rect [0 x 0]

This might be related to rockchip dtbs and I have no idea how to fix or debug them. There is a Open Issue here related to same error for different device(Orange pi 5), Not sure if it will work for zero3E. At this point I am looking for any fix related to both problems.

Kernel version

6.1.0-1025-rockchip

SBC model

Radxa Zero 3E

What operating system are you seeing this problem on?

Ubuntu 24.04 LTS (Noble Nombat)

Relevant logs

No response