rimago / rpi-kodi

Dockerized Kodi with audio and video
https://hub.docker.com/r/rimago/rpi-kodi
GNU General Public License v3.0
15 stars 6 forks source link

DBus issue with Raspberry Pi 4 and Ubuntu 20.04 #5

Open SteiMi opened 3 years ago

SteiMi commented 3 years ago

Hello,

first of all, thank you for your work on running kodi in docker for Raspberry Pi.

I have an issue on my Raspberry Pi 4 (8 GB) running Ubuntu 20.04.2 LTS (Focal Fossa). I run your image with your docker-compose.yml but Kodi encounters the following issue during startup:

kodi        | ---> starting Kodi with command: kodi-standalone
kodi        | [E] Failed to initialize VCHI (ret=-1)
kodi        | Cannot connect to server socket err = No such file or directory
kodi        | Cannot connect to server request channel
kodi        | jack server is not running or cannot be started
kodi        | JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
kodi        | JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
kodi        | corrupted double-linked list
kodi        | Segmentation fault (core dumped)
kodi        | Crash report available at /home/kodi/kodi_crashlog-20210328_123656.log
kodi        | [E] Invalid arguments ' '

In the crashlog everything looks fine until it has an issue with DBus:

...
2021-03-28 12:37:05.497 T:4056049696 WARNING: DBus connection failed: org.freedesktop.DBus.Error.FileNotFound - Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
2021-03-28 12:37:05.531 T:4045394128  NOTICE: Found 1 Lists of Devices
2021-03-28 12:37:05.531 T:4045394128  NOTICE: Enumerated PI devices:
2021-03-28 12:37:05.531 T:4045394128  NOTICE:     Device 1
2021-03-28 12:37:05.532 T:4045394128  NOTICE:         m_deviceName      : HDMI
2021-03-28 12:37:05.532 T:4045394128  NOTICE:         m_displayName     : HDMI
2021-03-28 12:37:05.532 T:4045394128  NOTICE:         m_displayNameExtra:
2021-03-28 12:37:05.532 T:4045394128  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
2021-03-28 12:37:05.532 T:4045394128  NOTICE:         m_channels        : FL, FR
2021-03-28 12:37:05.532 T:4045394128  NOTICE:         m_sampleRates     : 8000,11025,16000,22050,24000,32000,44100,48000,88200,96000,176400,192000
2021-03-28 12:37:05.532 T:4045394128  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP,AE_FMT_RAW
2021-03-28 12:37:05.532 T:4045394128  NOTICE:         m_streamTypes     : STREAM_TYPE_AC3,STREAM_TYPE_EAC3,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_512
2021-03-28 12:37:05.532 T:4045394128  NOTICE:     Device 2
2021-03-28 12:37:05.532 T:4045394128  NOTICE:         m_deviceName      : Analogue
2021-03-28 12:37:05.532 T:4045394128  NOTICE:         m_displayName     : Analogue
2021-03-28 12:37:05.532 T:4045394128  NOTICE:         m_displayNameExtra:
2021-03-28 12:37:05.532 T:4045394128  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2021-03-28 12:37:05.532 T:4045394128  NOTICE:         m_channels        : FL, FR
2021-03-28 12:37:05.532 T:4045394128  NOTICE:         m_sampleRates     : 48000
2021-03-28 12:37:05.532 T:4045394128  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP
2021-03-28 12:37:05.532 T:4045394128  NOTICE:         m_streamTypes     : No passthrough capabilities
2021-03-28 12:37:05.532 T:4045394128  NOTICE:     Device 3
2021-03-28 12:37:05.532 T:4045394128  NOTICE:         m_deviceName      : Both
2021-03-28 12:37:05.532 T:4045394128  NOTICE:         m_displayName     : HDMI and Analogue
2021-03-28 12:37:05.532 T:4045394128  NOTICE:         m_displayNameExtra:
2021-03-28 12:37:05.532 T:4045394128  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2021-03-28 12:37:05.532 T:4045394128  NOTICE:         m_channels        : FL, FR
2021-03-28 12:37:05.532 T:4045394128  NOTICE:         m_sampleRates     : 48000
2021-03-28 12:37:05.532 T:4045394128  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP
2021-03-28 12:37:05.532 T:4045394128  NOTICE:         m_streamTypes     : No passthrough capabilities

############### END LOG FILE ################

############ END Kodi CRASH LOG #############

I also attached the complete crashlog to this issue. kodi_crashlog-20210328_125330.log

I suspect that this is an issue with having Ubuntu as the Host OS since it is likely to be tested with Raspbian (I assume). In the Host OS dbus seems to be fine and there is a system_bus_socket. Do you have any idea how this could be fixed?

Thank you

matt2005 commented 2 years ago

Try adding this to the volumes

      - "/var/run/dbus:/var/run/dbus"

that resolved the first error but then i got one about UPower not found so i installed upower in the host.

sudo apt install -y upower
DaCHack commented 2 years ago

Hi @matt2005 and @rimago ,

also thanks from my side on your work @rimago. I added the volume but still do not get display output. By the way: I booted the raspberry running docker once without the volumes added and kodi showed up, but I could not reproduce this.

Could you please have a look at my log file and point me towards a possible solution?

Did I get this right, that no X server is required on the host?

Edit: I am running Docker/Portainer on Raspberry Pi OS Bullseye with 64bit enabled on my Rpi4 2GB. Hope, this is not the issue..?

Log in Portainer:

---> starting Kodi with command: kodi-standalone
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

kodi-log

2021-12-27 19:57:18.667 T:4060269696  NOTICE: -----------------------------------------------------------------------
2021-12-27 19:57:18.667 T:4060269696  NOTICE: Starting Kodi (18.7 Git:20200528-2c5354e70a). Platform: Linux ARM 32-bit
2021-12-27 19:57:18.667 T:4060269696  NOTICE: Using Release Kodi x32 build
2021-12-27 19:57:18.668 T:4060269696  NOTICE: Kodi compiled 2020-06-12 by GCC 8.3.0 for Linux ARM 32-bit version 4.18.20 (266772)
2021-12-27 19:57:18.668 T:4060269696  NOTICE: Running on Raspbian GNU/Linux 10 (buster), kernel: Linux ARM 64-bit version 5.10.83-v8+
2021-12-27 19:57:18.668 T:4060269696  NOTICE: FFmpeg version/source: 4.0.4-Kodi
2021-12-27 19:57:18.668 T:4060269696  NOTICE: 4 CPU cores available
2021-12-27 19:57:18.668 T:4060269696  NOTICE: ARM Features: Neon enabled
2021-12-27 19:57:18.668 T:4060269696  NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
2021-12-27 19:57:18.668 T:4060269696  NOTICE: special://xbmcbin/ is mapped to: /usr/lib/arm-linux-gnueabihf/kodi
2021-12-27 19:57:18.668 T:4060269696  NOTICE: special://xbmcbinaddons/ is mapped to: /usr/lib/arm-linux-gnueabihf/kodi/addons
2021-12-27 19:57:18.668 T:4060269696  NOTICE: special://masterprofile/ is mapped to: /home/kodi/.kodi/userdata
2021-12-27 19:57:18.668 T:4060269696  NOTICE: special://envhome/ is mapped to: /home/kodi
2021-12-27 19:57:18.668 T:4060269696  NOTICE: special://home/ is mapped to: /home/kodi/.kodi
2021-12-27 19:57:18.668 T:4060269696  NOTICE: special://temp/ is mapped to: /home/kodi/.kodi/temp
2021-12-27 19:57:18.668 T:4060269696  NOTICE: special://logpath/ is mapped to: /home/kodi/.kodi/temp
2021-12-27 19:57:18.668 T:4060269696  NOTICE: The executable running is: /usr/lib/arm-linux-gnueabihf/kodi/kodi.bin_v8
2021-12-27 19:57:18.668 T:4060269696  NOTICE: Local hostname: homeserver
2021-12-27 19:57:18.668 T:4060269696  NOTICE: Log File is located: /home/kodi/.kodi/temp/kodi.log
2021-12-27 19:57:18.668 T:4060269696  NOTICE: -----------------------------------------------------------------------
2021-12-27 19:57:18.668 T:4060269696    INFO: loading settings
2021-12-27 19:57:18.669 T:4060269696  NOTICE: special://profile/ is mapped to: special://masterprofile/
2021-12-27 19:57:18.684 T:4060269696   DEBUG: CSkinSettings: no <skinsettings> tag found
2021-12-27 19:57:18.684 T:4060269696  NOTICE: Loaded settings file from special://xbmc/system/advancedsettings.xml
2021-12-27 19:57:18.684 T:4060269696  NOTICE: Contents of special://xbmc/system/advancedsettings.xml are...
                                            <?xml version="1.0" encoding="UTF-8" ?>
                                            <advancedsettings>
                                              <fanartres>720</fanartres>
                                              <imageres>540</imageres>
                                              <video>
                                                <busydialogdelayms>750</busydialogdelayms>
                                              </video>
                                              <samba>
                                                <clienttimeout>30</clienttimeout>
                                              </samba>
                                              <cache>
                                                <memorysize>31457280</memorysize>
                                              </cache>
                                            </advancedsettings>
2021-12-27 19:57:18.685 T:4060269696 WARNING: CSettingsManager: missing version attribute
2021-12-27 19:57:18.685 T:4060269696  NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
2021-12-27 19:57:18.685 T:4060269696  NOTICE: Default Video Player: VideoPlayer
2021-12-27 19:57:18.685 T:4060269696  NOTICE: Default Audio Player: paplayer
2021-12-27 19:57:18.685 T:4060269696  NOTICE: Disabled debug logging due to GUI setting. Level 0.
2021-12-27 19:57:18.685 T:4060269696  NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
2021-12-27 19:57:18.721 T:4060269696  NOTICE: PulseAudio: Server not running
2021-12-27 19:57:18.727 T:4060269696  NOTICE: Running database version Addons27
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: audioencoder.kodi.builtin.aac v1.0.0 installed
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: audioencoder.kodi.builtin.wma v1.0.0 installed
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: game.controller.default v1.0.19 installed
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: game.controller.snes v1.0.18 installed
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: inputstream.adaptive v2.4.4 installed
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: inputstream.rtmp v2.0.6 installed
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: kodi.binary.global.audioengine v1.0.1 installed
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: kodi.binary.global.filesystem v1.0.2 installed
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: kodi.binary.global.general v1.0.3 installed
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: kodi.binary.global.gui v5.12.0 installed
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: kodi.binary.global.main v1.0.14 installed
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: kodi.binary.global.network v1.0.0 installed
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: kodi.binary.instance.audiodecoder v2.0.0 installed
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: kodi.binary.instance.audioencoder v2.0.0 installed
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: kodi.binary.instance.game v1.1.0 installed
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: kodi.binary.instance.imagedecoder v2.0.0 installed
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: kodi.binary.instance.inputstream v2.0.8 installed
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: kodi.binary.instance.peripheral v1.3.7 installed
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: kodi.binary.instance.pvr v5.10.3 installed
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: kodi.binary.instance.screensaver v2.0.0 installed
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: kodi.binary.instance.vfs v2.0.0 installed
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: kodi.binary.instance.videocodec v1.0.1 installed
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: kodi.binary.instance.visualization v2.0.1 installed
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: kodi.resource v1.0.0 installed
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: metadata.album.universal v3.1.6 installed
2021-12-27 19:57:18.761 T:4060269696  NOTICE: ADDON: metadata.artists.universal v4.3.6 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: metadata.common.allmusic.com v3.2.2 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: metadata.common.fanart.tv v3.6.3 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: metadata.common.imdb.com v3.2.4 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: metadata.common.musicbrainz.org v2.2.4 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: metadata.common.theaudiodb.com v2.0.3 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: metadata.common.themoviedb.org v3.2.17 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: metadata.local v1.0.0 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: metadata.themoviedb.org v5.2.6 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: metadata.tvshows.themoviedb.org v3.5.13 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: peripheral.joystick v1.4.8 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: pvr.argustv v3.5.5 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: pvr.dvblink v4.7.3 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: pvr.dvbviewer v3.7.13 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: pvr.filmon v2.4.5 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: pvr.hdhomerun v3.5.0 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: pvr.hts v4.4.20 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: pvr.iptvsimple v3.8.8 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: pvr.mediaportal.tvserver v3.5.19 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: pvr.mythtv v5.10.15 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: pvr.nextpvr v3.3.18 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: pvr.njoy v3.4.3 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: pvr.pctv v2.4.6 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: pvr.stalker v3.4.10 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: pvr.teleboy v18.2.1 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: pvr.vbox v4.7.0 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: pvr.vdr.vnsi v3.6.3 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: pvr.vuplus v3.28.9 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: pvr.wmc v2.4.5 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: pvr.zattoo v18.1.11 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: repository.xbmc.org v3.1.6 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: resource.images.weathericons.default v1.1.8 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: resource.language.en_gb v2.0.1 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: resource.uisounds.kodi v1.0.0 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: screensaver.biogenesis v2.2.2 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: screensaver.matrixtrails v2.2.1 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: screensaver.pyro v3.0.0 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: screensaver.stars v2.1.3 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: screensaver.xbmc.builtin.black v1.0.33 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: screensaver.xbmc.builtin.dim v1.0.59 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: script.module.pil v1.1.7 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: script.module.pycryptodome v3.4.3 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: service.xbmc.versioncheck v0.5.21 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: skin.estouchy v2.0.28 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: skin.estuary v2.0.27 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: webinterface.default v18.x-2.4.6 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: xbmc.addon v18.7 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: xbmc.core v0.1.0 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: xbmc.gui v5.14.0 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: xbmc.json v10.3.0 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: xbmc.metadata v2.1.0 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: xbmc.python v2.26.0 installed
2021-12-27 19:57:18.762 T:4060269696  NOTICE: ADDON: xbmc.webinterface v1.0.0 installed
2021-12-27 19:57:18.805 T:4060269696   ERROR: DBus error: org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UPower was not provided by any .service files
2021-12-27 19:57:18.862 T:4049588416  NOTICE: Found 1 Lists of Devices
2021-12-27 19:57:18.862 T:4049588416  NOTICE: Enumerated PI devices:
2021-12-27 19:57:18.862 T:4049588416  NOTICE:     Device 1
2021-12-27 19:57:18.862 T:4049588416  NOTICE:         m_deviceName      : HDMI
2021-12-27 19:57:18.862 T:4049588416  NOTICE:         m_displayName     : HDMI
2021-12-27 19:57:18.862 T:4049588416  NOTICE:         m_displayNameExtra:
2021-12-27 19:57:18.862 T:4049588416  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
2021-12-27 19:57:18.862 T:4049588416  NOTICE:         m_channels        : FL, FR
2021-12-27 19:57:18.862 T:4049588416  NOTICE:         m_sampleRates     : 8000,11025,16000,22050,24000,32000,44100,48000,88200,96000,176400,192000
2021-12-27 19:57:18.862 T:4049588416  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP,AE_FMT_RAW
2021-12-27 19:57:18.862 T:4049588416  NOTICE:         m_streamTypes     : STREAM_TYPE_AC3,STREAM_TYPE_EAC3,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_512
2021-12-27 19:57:18.862 T:4049588416  NOTICE:     Device 2
2021-12-27 19:57:18.862 T:4049588416  NOTICE:         m_deviceName      : Analogue
2021-12-27 19:57:18.862 T:4049588416  NOTICE:         m_displayName     : Analogue
2021-12-27 19:57:18.862 T:4049588416  NOTICE:         m_displayNameExtra:
2021-12-27 19:57:18.863 T:4049588416  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2021-12-27 19:57:18.863 T:4049588416  NOTICE:         m_channels        : FL, FR
2021-12-27 19:57:18.863 T:4049588416  NOTICE:         m_sampleRates     : 48000
2021-12-27 19:57:18.863 T:4049588416  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP
2021-12-27 19:57:18.863 T:4049588416  NOTICE:         m_streamTypes     : No passthrough capabilities
2021-12-27 19:57:18.863 T:4049588416  NOTICE:     Device 3
2021-12-27 19:57:18.863 T:4049588416  NOTICE:         m_deviceName      : Both
2021-12-27 19:57:18.863 T:4049588416  NOTICE:         m_displayName     : HDMI and Analogue
2021-12-27 19:57:18.863 T:4049588416  NOTICE:         m_displayNameExtra:
2021-12-27 19:57:18.863 T:4049588416  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2021-12-27 19:57:18.863 T:4049588416  NOTICE:         m_channels        : FL, FR
2021-12-27 19:57:18.863 T:4049588416  NOTICE:         m_sampleRates     : 48000
2021-12-27 19:57:18.863 T:4049588416  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP
2021-12-27 19:57:18.863 T:4049588416  NOTICE:         m_streamTypes     : No passthrough capabilities
2021-12-27 19:57:18.889 T:4060269696  NOTICE: Raspberry PI firmware version: Dec  1 2021 11:40:59 
                                            Copyright (c) 2012 Broadcom
                                            version be18b6271a0f99f896fc81249da5da6658422558 (clean) (release) (start)
2021-12-27 19:57:18.889 T:4060269696  NOTICE: ARM mem: 768MB GPU mem: 256MB MPG2:0 WVC1:0
2021-12-27 19:57:18.890 T:4060269696  NOTICE: Config:
                                            arm_64bit=1
                                            arm_boost=1
                                            arm_freq=1800
                                            audio_pwm_mode=514
                                            config_hdmi_boost=5
                                            core_freq=500
                                            core_freq_min=200
                                            disable_commandline_tags=2
                                            disable_l2cache=1
                                            disable_overscan=1
                                            display_hdmi_rotate=-1
                                            display_lcd_rotate=-1
                                            dvfs=3
                                            enable_gic=1
                                            force_eeprom_read=1
                                            force_pwm_open=1
                                            framebuffer_ignore_alpha=1
                                            framebuffer_swap=1
                                            gpu_freq=500
                                            gpu_freq_min=250
                                            hdmi_channel_map=8
                                            init_uart_clock=0x2dc6c00
                                            lcd_framerate=60
                                            mask_gpu_interrupt0=1024
                                            mask_gpu_interrupt1=0x10000
                                            max_framebuffers=2
                                            over_voltage_avs=-30000
                                            pause_burst_frames=1
                                            program_serial_random=1
                                            total_mem=2048
                                            hdmi_drive:0=2
                                            hdmi_force_cec_address:0=65535
                                            hdmi_force_cec_address:1=65535
                                            hdmi_force_hotplug:0=1
                                            hdmi_group:0=1
                                            hdmi_ignore_cec_init:0=1
                                            hdmi_mode:0=16
                                            hdmi_pixel_encoding:0=1
                                            hdmi_pixel_freq_limit:0=0x11e1a300
                                            hdmi_pixel_freq_limit:1=0x11e1a300
2021-12-27 19:57:18.890 T:4060269696  NOTICE: Config:
                                            cec_osd_name=HomeServer
                                            device_tree=-
                                            overlay_prefix=overlays/
                                            hdmi_cvt:0=
                                            hdmi_cvt:1=
                                            hdmi_edid_filename:0=
                                            hdmi_edid_filename:1=
                                            hdmi_timings:0=
                                            hdmi_timings:1=
2021-12-27 19:57:19.619 T:4060269696 WARNING: CDRMUtils::FindPlane - could not find plane
2021-12-27 19:57:20.551 T:4060269696  NOTICE: Found resolution 1920x1080 with 1920x1080 @ 59.940063 Hz
2021-12-27 19:57:20.552 T:4060269696  NOTICE: Found resolution 1024x768 with 1024x768 @ 60.000000 Hz
2021-12-27 19:57:20.552 T:4060269696  NOTICE: Found resolution 800x600 with 800x600 @ 60.000000 Hz
2021-12-27 19:57:20.552 T:4060269696  NOTICE: Found resolution 800x600 with 800x600 @ 56.000000 Hz
2021-12-27 19:57:20.552 T:4060269696  NOTICE: Found resolution 848x480 with 848x480 @ 60.000000 Hz
2021-12-27 19:57:20.552 T:4060269696  NOTICE: Found resolution 640x480 with 640x480 @ 60.000000 Hz
2021-12-27 19:57:20.554 T:4060269696  NOTICE: EGL_VERSION = 1.4
2021-12-27 19:57:20.554 T:4060269696  NOTICE: EGL_VENDOR = Mesa Project
2021-12-27 19:57:20.554 T:4060269696  NOTICE: EGL_EXTENSIONS = EGL_ANDROID_blob_cache EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_image_dma_buf_export EGL_MESA_query_driver
2021-12-27 19:57:20.554 T:4060269696  NOTICE: EGL_CLIENT_EXTENSIONS = EGL_EXT_device_base EGL_EXT_device_enumeration EGL_EXT_device_query EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses EGL_EXT_client_extensions EGL_KHR_debug EGL_EXT_platform_wayland EGL_EXT_platform_x11 EGL_MESA_platform_gbm EGL_MESA_platform_surfaceless EGL_EXT_platform_device
2021-12-27 19:57:20.572 T:4060269696  NOTICE: Checking resolution 16
2021-12-27 19:57:20.676 T:4060269696 WARNING: CGBMUtils::DestroySurface - surface already destroyed
2021-12-27 19:57:20.754 T:4060269696  NOTICE: GL_VENDOR = VMware, Inc.
2021-12-27 19:57:20.754 T:4060269696  NOTICE: GL_RENDERER = llvmpipe (LLVM 9.0.1, 128 bits)
2021-12-27 19:57:20.754 T:4060269696  NOTICE: GL_VERSION = OpenGL ES 3.1 Mesa 19.3.2
2021-12-27 19:57:20.754 T:4060269696  NOTICE: GL_SHADING_LANGUAGE_VERSION = OpenGL ES GLSL ES 3.10
2021-12-27 19:57:20.754 T:4060269696  NOTICE: GL_EXTENSIONS = GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_compression_s3tc GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_format_BGRA8888 GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_stencil8 GL_OES_texture_3D GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_half_float GL_EXT_texture_sRGB_decode GL_OES_EGL_image GL_OES_depth_texture GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV GL_NV_conditional_render GL_OES_get_program_binary GL_APPLE_texture_max_level GL_EXT_discard_framebuffer GL_EXT_read_format_bgra GL_EXT_frag_depth GL_NV_fbo_color_attachments GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_array_object GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_EXT_occlusion_query_boolean GL_EXT_texture_rg GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug GL_KHR_texture_compression_astc_ldr GL_OES_depth_texture_cube_map GL_OES_required_internalformat GL_OES_surfaceless_context GL_EXT_color_buffer_float GL_EXT_sRGB_write_control GL_EXT_separate_shader_objects GL_EXT_shader_implicit_conversions GL_EXT_shader_integer_mix GL_EXT_base_instance GL_EXT_compressed_ETC1_RGB8_sub_texture GL_EXT_copy_image GL_EXT_draw_buffers_indexed GL_EXT_draw_elements_base_vertex GL_EXT_polygon_offset_clamp GL_EXT_render_snorm GL_EXT_shader_io_blocks GL_EXT_texture_border_clamp GL_EXT_texture_buffer GL_EXT_texture_norm16 GL_EXT_texture_view GL_KHR_context_flush_control GL_NV_image_formats GL_OES_copy_image GL_OES_draw_buffers_indexed GL_OES_draw_elements_base_vertex GL_OES_shader_io_blocks GL_OES_texture_border_clamp GL_OES_texture_buffer GL_OES_texture_stencil8 GL_OES_texture_storage_multisample_2d_array GL_OES_texture_view GL_EXT_blend_func_extended GL_EXT_buffer_storage GL_EXT_float_blend GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_OES_EGL_image_external_essl3 GL_OES_shader_image_atomic GL_EXT_clip_cull_distance GL_EXT_disjoint_timer_query GL_EXT_texture_compression_s3tc_srgb GL_MESA_shader_integer_functions GL_EXT_clip_control GL_EXT_texture_compression_bptc GL_KHR_parallel_shader_compile GL_EXT_texture_sRGB_R8 GL_MESA_framebuffer_flip_y GL_EXT_depth_clamp GL_EXT_texture_query_lod
2021-12-27 19:57:21.429 T:4060269696 WARNING: CLangInfo: could not find language add-on 'resource.language.de_de', loading default..
2021-12-27 19:57:21.490 T:3786281152  NOTICE: Running database version Addons27
2021-12-27 19:57:21.491 T:3786281152  NOTICE: Running database version ViewModes6
2021-12-27 19:57:21.492 T:3786281152  NOTICE: Running database version Textures13
2021-12-27 19:57:21.494 T:3786281152  NOTICE: Running database version MyMusic72
2021-12-27 19:57:21.497 T:3786281152  NOTICE: Running database version MyVideos116
2021-12-27 19:57:21.498 T:3786281152  NOTICE: Running database version TV32
2021-12-27 19:57:21.498 T:3786281152  NOTICE: Running database version Epg12
2021-12-27 19:57:21.548 T:4060269696  NOTICE: start dvd mediatype detection
2021-12-27 19:57:21.616 T:4060269696  NOTICE:   load skin from: /usr/share/kodi/addons/skin.estuary (version: 2.0.27)
2021-12-27 19:57:21.827 T:4060269696 WARNING: JSONRPC: Could not parse type "Setting.Details.SettingList"
2021-12-27 19:57:21.866 T:4060269696  NOTICE: Register - new keyboard device registered on application->keyboard: Keyboard (0000:0000)
2021-12-27 19:57:21.866 T:4060269696  NOTICE: Register - new mouse device registered on application->mouse: Mouse (0000:0000)
2021-12-27 19:57:21.868 T:4060269696  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
2021-12-27 19:57:21.869 T:4060269696  NOTICE: Loaded playercorefactory configuration
2021-12-27 19:57:21.869 T:4060269696  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
2021-12-27 19:57:21.869 T:4060269696  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
2021-12-27 19:57:21.881 T:4060269696  NOTICE: initialize done
2021-12-27 19:57:21.881 T:4060269696  NOTICE: Running the application...
2021-12-27 19:57:21.886 T:4060269696  NOTICE: starting zeroconf publishing
2021-12-27 19:57:21.892 T:3684389056  NOTICE: ES: Starting UDP Event server on port 9777
2021-12-27 19:57:21.892 T:3684389056  NOTICE: UDP: Listening on port 9777 (ipv6 : false)
2021-12-27 19:57:21.904 T:4060269696  NOTICE: VideoPlayer::OpenFile: /var/run/lirc/lircd
2021-12-27 19:57:21.912 T:3648671936  NOTICE: Creating InputStream
2021-12-27 19:57:21.913 T:3648671936   ERROR: CVideoPlayer::OpenInputStream - error opening [/var/run/lirc/lircd]
2021-12-27 19:57:21.913 T:3648671936  NOTICE: CVideoPlayer::OnExit()
2021-12-27 19:57:21.918 T:3735007424  NOTICE: Register - new cec device registered on cec->RPI: CEC Adapter (2708:1001)
2021-12-27 19:57:23.116 T:4060269696  NOTICE: CVideoPlayer::CloseFile()
2021-12-27 19:57:23.116 T:4060269696  NOTICE: VideoPlayer: waiting for threads to exit
2021-12-27 19:57:23.116 T:4060269696  NOTICE: VideoPlayer: finished waiting

Many thanks!

rimago commented 2 years ago

Hi @DaCHack yes, no xserver is required on the host and the hdmi out should not be used by any other application, such as the xserver. Is your display connected to hdmi 1 or hdmi2? Are you running docker with the privileged flag?

If you want you could also try my latest docker-compose.yml:

version: "3.7"
services:
  rpi-kodi:
    image: rimago/rpi-kodi
    container_name: "kodi"
    user: kodi
    network_mode: host
    restart: always
    devices:
      - /dev/fb0:/dev/fb0
      - /dev/vchiq:/dev/vchiq
      - /dev/vcio:/dev/vcio
      - /dev/vcsm-cma:/dev/vcsm-cma
      - /dev/dma_heap:/dev/dma_heap
      - /dev/dri:/dev/dri
    volumes:
      - /home/pi/kodi/home:/home/kodi
      - "/etc/timezone:/etc/timezone:ro"
      - "/etc/localtime:/etc/localtime:ro"
    tmpfs:
      - /tmp
    environment:
      - PULSE_SERVER=127.0.0.1

It workes without the privileged flag, but needs the kodi user on the host to be in the "video" group.

Hope this helps.

DaCHack commented 2 years ago

Thanks, @rimago for the snippet. I took over the additional devices next to fb0 and vchiq which I had already. Unfortunately, still the same issue.

I use HDMI0 and connect the cable to HDMI0. I am running with the priviledged flag but also have the kodi user in my host's video group.

Any other ideas?

Best DaC

Edit: Kodi seems to be running but just gives no output. At least ps in the container shows a couple of running kodi processes with a significant load:

top - 17:34:01 up 9 min,  0 users,  load average: 0.42, 0.36, 0.22
Tasks:   6 total,   1 running,   5 sleeping,   0 stopped,   0 zombie
%Cpu(s): 19.7 us,  0.8 sy,  0.0 ni, 79.6 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :   1670.3 total,    888.6 free,    282.1 used,    499.6 buff/cache
MiB Swap:    100.0 total,    100.0 free,      0.0 used.   1321.7 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                                                      
     40 kodi      20   0  581372 130364  76960 S  80.7   7.6   0:27.48 kodi.bin_v8                                                                                                  
      1 kodi      20   0    4472   2244   2104 S   0.0   0.1   0:00.03 entrypoint.sh                                                                                                
      7 kodi      20   0    1484    408    364 S   0.0   0.0   0:00.00 kodi-standalone                                                                                              
     11 kodi      20   0    1484   1024    932 S   0.0   0.1   0:00.00 kodi                                                                                                         
     70 kodi      20   0    4604   2244   2120 S   0.0   0.1   0:00.02 bash                                                                                                         
     98 kodi      20   0    6856   2476   2096 R   0.0   0.1   0:00.01 top 
DaCHack commented 2 years ago

I did some further checking today and seemingly figured it out: I needed to add hdmi_safe=1 into /boot/config.txt. Not sure why this was the case since I did not use any exotic HDMI-related options in the rest of my config.txt:

hdmi_force_hotplug=1
hdmi_ignore_cec_init=1
hdmi_pixel_encoding=1
hdmi_group=1
hdmi_mode=16
hdmi_drive=2

Feel free to let me know whether one of the options rings a bell for you so maybe I could work without the safe mode.

Another issue could be my HDMI splitter I have in between. Sometimes it passes through HDMI without being turned on (because its focus is to just extract audio signals from HDMI and split them to analog audio out). Sometimes this seems not to work.

Other topic: The KODI GUI seems to be quite heavy-weight. Is it expected that the main menu in 1080p is already quite choppy and causes >80% load just to switch menu options on a RPI4 with 2GB (thereof: 256MB for the GPU)? I needed to downgrade to 720p to make it somewhat fluent. What are your experiences?

emailyc commented 2 years ago

I did some further checking today and seemingly figured it out: I needed to add hdmi_safe=1 into /boot/config.txt. Not sure why this was the case since I did not use any exotic HDMI-related options in the rest of my config.txt:

hdmi_force_hotplug=1
hdmi_ignore_cec_init=1
hdmi_pixel_encoding=1
hdmi_group=1
hdmi_mode=16
hdmi_drive=2

Feel free to let me know whether one of the options rings a bell for you so maybe I could work without the safe mode.

Another issue could be my HDMI splitter I have in between. Sometimes it passes through HDMI without being turned on (because its focus is to just extract audio signals from HDMI and split them to analog audio out). Sometimes this seems not to work.

Other topic: The KODI GUI seems to be quite heavy-weight. Is it expected that the main menu in 1080p is already quite choppy and causes >80% load just to switch menu options on a RPI4 with 2GB (thereof: 256MB for the GPU)? I needed to downgrade to 720p to make it somewhat fluent. What are your experiences?

What would be the equivalent file if I'm running Ubuntu server on my Pi4?

DaCHack commented 2 years ago

What would be the equivalent file if I'm running Ubuntu server on my Pi4?

I think you need to create it from scratch, but not sure since I am not an Ubuntu user on the RPI and this stuff is highly RPI-specific: https://jamesachambers.com/raspberry-pi-ubuntu-server-18-04-2-installation-guide/

Anyways, not sure whether this image is really the right one for you in this case. There are other non-RPI-specific packages out there.