Bug#876876: kodi-bin: kodi does not work on arm64 - "Failed to find matching visual" in kodi.log

Rafal fatwildcat at gmail.com
Tue Sep 26 15:20:51 UTC 2017


Package: kodi-bin
Version: 2:17.1+dfsg1-3
Severity: important
Tags: patch

The kodi starts but does not display anything. No window appears,
nothing happens.

I have made some investigations. In kodi.log there is an error
"Failed to find matching visual". This error is printed by
CWinSystemX11::SetWindow function located in file
xbmc/windowing/X11/WinSystemX11.cpp. The error is printed because
CGLContextEGL::GetVisual() returns NULL. This function returns NULL
because bad VisualID is passed to XGetVisualInfo function. This id is
obtained from eglGetConfigAttrib but the function is invoked in wrong
way.

Size of VisualID type on arm64 platform equals 8. But eglGetConfigAttrib
function stores VisualID in 4-byte variable. It means, 4 bytes of the
VisualID variable are left uninitialized. I have set to 0 the visualid
variable before eglGetConfigAttrib call and kodi started successfully.

Of course, set to 0 works on arm64 because arm64 is little-endian. I
think some additional variable should be used here.

-- System Information:
Debian Release: 9.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: arm64 (aarch64)

Kernel: Linux 4.11.6+ (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)



More information about the pkg-multimedia-maintainers mailing list