Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DietPi-Software | Kodi: Assure min 128M gpu_mem on noninteractive installs #3173

Closed
glogiotatidis opened this issue Oct 18, 2019 · 7 comments

Comments

@glogiotatidis
Copy link

Creating a bug report/issue

Required Information

Additional Information (if applicable)

  • Software title | Kodi
  • Was the software title installed freshly or updated/migrated? Freshly installed
  • Can this issue be replicated on a fresh installation of DietPi? Yes, used to be OK in 6.25.3

Steps to reproduce

  1. Install Kodi via dietpi-software
  2. $ startkodi

Expected behaviour

  • Kodi should start

Actual behaviour

  • Kodi segfaults

Extra details

Kodi crash log

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

################ SYSTEM INFO ################
 Date: Fri 18 Oct 2019 02:11:54 PM EEST
 Kodi Options: 
 Arch: armv7l
 Kernel: Linux 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019
 Release: Raspbian GNU/Linux 10 (buster)
############## END SYSTEM INFO ##############

############### STACK TRACE #################
gdb not installed, can't get stack trace.
############# END STACK TRACE ###############

################# LOG FILE ##################

2019-10-18 14:11:52.822 T:1899628016  NOTICE: -----------------------------------------------------------------------
2019-10-18 14:11:52.822 T:1899628016  NOTICE: Starting Kodi (18.4 Git:20190906-f5ea6a9b04). Platform: Linux ARM 32-bit
2019-10-18 14:11:52.822 T:1899628016  NOTICE: Using Release Kodi x32 build (version for Raspberry Pi)
2019-10-18 14:11:52.822 T:1899628016  NOTICE: Kodi compiled 2019-09-08 by GCC 8.3.0 for Linux ARM 32-bit version 4.18.20 (266772)
2019-10-18 14:11:52.822 T:1899628016  NOTICE: Running on Raspbian GNU/Linux 10 (buster), kernel: Linux ARM 32-bit version 4.19.75-v7+
2019-10-18 14:11:52.834 T:1899628016  NOTICE: FFmpeg version/source: 4.0.4-Kodi
2019-10-18 14:11:52.834 T:1899628016  NOTICE: Host CPU: ARMv7 Processor rev 4 (v7l), 4 cores available
2019-10-18 14:11:52.834 T:1899628016  NOTICE: ARM Features: Neon enabled
2019-10-18 14:11:52.834 T:1899628016  NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
2019-10-18 14:11:52.834 T:1899628016  NOTICE: special://xbmcbin/ is mapped to: /usr/lib/arm-linux-gnueabihf/kodi
2019-10-18 14:11:52.834 T:1899628016  NOTICE: special://xbmcbinaddons/ is mapped to: /usr/lib/arm-linux-gnueabihf/kodi/addons
2019-10-18 14:11:52.834 T:1899628016  NOTICE: special://masterprofile/ is mapped to: /root/.kodi/userdata
2019-10-18 14:11:52.834 T:1899628016  NOTICE: special://envhome/ is mapped to: /root
2019-10-18 14:11:52.835 T:1899628016  NOTICE: special://home/ is mapped to: /root/.kodi
2019-10-18 14:11:52.835 T:1899628016  NOTICE: special://temp/ is mapped to: /root/.kodi/temp
2019-10-18 14:11:52.835 T:1899628016  NOTICE: special://logpath/ is mapped to: /root/.kodi/temp
2019-10-18 14:11:52.835 T:1899628016  NOTICE: The executable running is: /usr/lib/arm-linux-gnueabihf/kodi/kodi-rbpi_v7
2019-10-18 14:11:52.835 T:1899628016  NOTICE: Local hostname: flix
2019-10-18 14:11:52.835 T:1899628016  NOTICE: Log File is located: /root/.kodi/temp/kodi.log
2019-10-18 14:11:52.840 T:1899628016  NOTICE: -----------------------------------------------------------------------
2019-10-18 14:11:52.860 T:1899628016    INFO: loading settings
2019-10-18 14:11:52.860 T:1899628016  NOTICE: special://profile/ is mapped to: special://masterprofile/
2019-10-18 14:11:52.861 T:1899628016   ERROR: CSettings: unable to load settings from special://masterprofile/guisettings.xml, creating new default settings
2019-10-18 14:11:52.891 T:1899628016   DEBUG: CSkinSettings: no <skinsettings> tag found
2019-10-18 14:11:52.893 T:1899628016  NOTICE: Loaded settings file from special://xbmc/system/advancedsettings.xml
2019-10-18 14:11:52.893 T:1899628016  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>
2019-10-18 14:11:52.893 T:1899628016 WARNING: CSettingsManager: missing version attribute
2019-10-18 14:11:52.895 T:1899628016  NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
2019-10-18 14:11:52.895 T:1899628016  NOTICE: Default Video Player: VideoPlayer
2019-10-18 14:11:52.895 T:1899628016  NOTICE: Default Audio Player: paplayer
2019-10-18 14:11:52.895 T:1899628016  NOTICE: Disabled debug logging due to GUI setting. Level 0.
2019-10-18 14:11:52.895 T:1899628016  NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
2019-10-18 14:11:53.337 T:1899628016  NOTICE: ADDON: audioencoder.kodi.builtin.aac v1.0.0 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: audioencoder.kodi.builtin.wma v1.0.0 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: game.controller.default v1.0.8 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: game.controller.snes v1.0.8 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: kodi.binary.global.audioengine v1.0.1 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: kodi.binary.global.filesystem v1.0.2 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: kodi.binary.global.general v1.0.3 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: kodi.binary.global.gui v5.12.0 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: kodi.binary.global.main v1.0.14 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: kodi.binary.global.network v1.0.0 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: kodi.binary.instance.audiodecoder v2.0.0 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: kodi.binary.instance.audioencoder v2.0.0 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: kodi.binary.instance.game v1.1.0 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: kodi.binary.instance.imagedecoder v2.0.0 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: kodi.binary.instance.inputstream v2.0.8 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: kodi.binary.instance.peripheral v1.3.7 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: kodi.binary.instance.pvr v5.10.3 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: kodi.binary.instance.screensaver v2.0.0 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: kodi.binary.instance.vfs v2.0.0 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: kodi.binary.instance.videocodec v1.0.1 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: kodi.binary.instance.visualization v2.0.1 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: kodi.resource v1.0.0 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: metadata.album.universal v3.1.1 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: metadata.artists.universal v4.3.0 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: metadata.common.allmusic.com v3.2.0 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: metadata.common.fanart.tv v3.6.1 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: metadata.common.imdb.com v3.1.4 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: metadata.common.musicbrainz.org v2.2.1 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: metadata.common.theaudiodb.com v2.0.2 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: metadata.common.themoviedb.org v3.1.9 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: metadata.local v1.0.0 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: metadata.themoviedb.org v5.1.7 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: metadata.tvshows.themoviedb.org v3.1.0 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: repository.xbmc.org v3.1.6 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: resource.images.weathericons.default v1.1.8 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: resource.language.en_gb v2.0.1 installed
2019-10-18 14:11:53.338 T:1899628016  NOTICE: ADDON: resource.uisounds.kodi v1.0.0 installed
2019-10-18 14:11:53.339 T:1899628016  NOTICE: ADDON: screensaver.xbmc.builtin.black v1.0.33 installed
2019-10-18 14:11:53.339 T:1899628016  NOTICE: ADDON: screensaver.xbmc.builtin.dim v1.0.57 installed
2019-10-18 14:11:53.339 T:1899628016  NOTICE: ADDON: script.module.pil v1.1.7 installed
2019-10-18 14:11:53.339 T:1899628016  NOTICE: ADDON: script.module.pycryptodome v3.4.3 installed
2019-10-18 14:11:53.339 T:1899628016  NOTICE: ADDON: service.xbmc.versioncheck v0.4.6 installed
2019-10-18 14:11:53.339 T:1899628016  NOTICE: ADDON: skin.estouchy v2.0.26 installed
2019-10-18 14:11:53.339 T:1899628016  NOTICE: ADDON: skin.estuary v2.0.25 installed
2019-10-18 14:11:53.339 T:1899628016  NOTICE: ADDON: webinterface.default v18.x-2.4.6 installed
2019-10-18 14:11:53.339 T:1899628016  NOTICE: ADDON: xbmc.addon v18.4.0 installed
2019-10-18 14:11:53.339 T:1899628016  NOTICE: ADDON: xbmc.core v0.1.0 installed
2019-10-18 14:11:53.339 T:1899628016  NOTICE: ADDON: xbmc.gui v5.14.0 installed
2019-10-18 14:11:53.339 T:1899628016  NOTICE: ADDON: xbmc.json v10.3.0 installed
2019-10-18 14:11:53.339 T:1899628016  NOTICE: ADDON: xbmc.metadata v2.1.0 installed
2019-10-18 14:11:53.339 T:1899628016  NOTICE: ADDON: xbmc.python v2.26.0 installed
2019-10-18 14:11:53.339 T:1899628016  NOTICE: ADDON: xbmc.webinterface v1.0.0 installed
2019-10-18 14:11:53.390 T:1899628016   ERROR: DBus error: org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UPower was not provided by any .service files
2019-10-18 14:11:53.440 T:1868558560  NOTICE: Found 2 Lists of Devices
2019-10-18 14:11:53.440 T:1868558560  NOTICE: Enumerated ALSA devices:
2019-10-18 14:11:53.440 T:1868558560  NOTICE:     Device 1
2019-10-18 14:11:53.441 T:1868558560  NOTICE:         m_deviceName      : @
2019-10-18 14:11:53.441 T:1868558560  NOTICE:         m_displayName     : Default (bcm2835 ALSA bcm2835 ALSA)
2019-10-18 14:11:53.441 T:1868558560  NOTICE:         m_displayNameExtra:
2019-10-18 14:11:53.441 T:1868558560  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2019-10-18 14:11:53.441 T:1868558560  NOTICE:         m_channels        : FL, FR
2019-10-18 14:11:53.441 T:1868558560  NOTICE:         m_sampleRates     : 8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000
2019-10-18 14:11:53.441 T:1868558560  NOTICE:         m_dataFormats     : AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_U8
2019-10-18 14:11:53.441 T:1868558560  NOTICE:         m_streamTypes     : No passthrough capabilities
2019-10-18 14:11:53.441 T:1868558560  NOTICE:     Device 2
2019-10-18 14:11:53.441 T:1868558560  NOTICE:         m_deviceName      : sysdefault:CARD=ALSA
2019-10-18 14:11:53.441 T:1868558560  NOTICE:         m_displayName     : bcm2835 ALSA
2019-10-18 14:11:53.441 T:1868558560  NOTICE:         m_displayNameExtra: bcm2835 ALSA
2019-10-18 14:11:53.441 T:1868558560  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2019-10-18 14:11:53.441 T:1868558560  NOTICE:         m_channels        : FL, FR
2019-10-18 14:11:53.441 T:1868558560  NOTICE:         m_sampleRates     : 8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000
2019-10-18 14:11:53.441 T:1868558560  NOTICE:         m_dataFormats     : AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_U8
2019-10-18 14:11:53.441 T:1868558560  NOTICE:         m_streamTypes     : No passthrough capabilities
2019-10-18 14:11:53.441 T:1868558560  NOTICE: Enumerated PI devices:
2019-10-18 14:11:53.441 T:1868558560  NOTICE:     Device 1
2019-10-18 14:11:53.441 T:1868558560  NOTICE:         m_deviceName      : HDMI
2019-10-18 14:11:53.441 T:1868558560  NOTICE:         m_displayName     : HDMI
2019-10-18 14:11:53.441 T:1868558560  NOTICE:         m_displayNameExtra:
2019-10-18 14:11:53.441 T:1868558560  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
2019-10-18 14:11:53.441 T:1868558560  NOTICE:         m_channels        : FL, FR
2019-10-18 14:11:53.441 T:1868558560  NOTICE:         m_sampleRates     : 8000,11025,16000,22050,24000,32000,44100,48000,88200,96000,176400,192000
2019-10-18 14:11:53.441 T:1868558560  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
2019-10-18 14:11:53.441 T:1868558560  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
2019-10-18 14:11:53.441 T:1868558560  NOTICE:     Device 2
2019-10-18 14:11:53.441 T:1868558560  NOTICE:         m_deviceName      : Analogue
2019-10-18 14:11:53.441 T:1868558560  NOTICE:         m_displayName     : Analogue
2019-10-18 14:11:53.442 T:1868558560  NOTICE:         m_displayNameExtra:
2019-10-18 14:11:53.442 T:1868558560  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2019-10-18 14:11:53.442 T:1868558560  NOTICE:         m_channels        : FL, FR
2019-10-18 14:11:53.442 T:1868558560  NOTICE:         m_sampleRates     : 48000
2019-10-18 14:11:53.442 T:1868558560  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP
2019-10-18 14:11:53.442 T:1868558560  NOTICE:         m_streamTypes     : No passthrough capabilities
2019-10-18 14:11:53.442 T:1868558560  NOTICE:     Device 3
2019-10-18 14:11:53.442 T:1868558560  NOTICE:         m_deviceName      : Both
2019-10-18 14:11:53.442 T:1868558560  NOTICE:         m_displayName     : HDMI and Analogue
2019-10-18 14:11:53.442 T:1868558560  NOTICE:         m_displayNameExtra:
2019-10-18 14:11:53.442 T:1868558560  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
2019-10-18 14:11:53.442 T:1868558560  NOTICE:         m_channels        : FL, FR
2019-10-18 14:11:53.442 T:1868558560  NOTICE:         m_sampleRates     : 48000
2019-10-18 14:11:53.442 T:1868558560  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP
2019-10-18 14:11:53.442 T:1868558560  NOTICE:         m_streamTypes     : No passthrough capabilities
2019-10-18 14:11:53.458 T:1860165856   ERROR: COMXCore::Initialize - OMXCore failed to init, omx_err(0x80001009)
2019-10-18 14:11:53.459 T:1860165856   ERROR: COMXCoreComponent::Initialize - could not get component handle for OMX.broadcom.audio_render omx_err(0x80001005)
2019-10-18 14:11:53.459 T:1860165856   ERROR: CAESinkPi::Initialize - m_omx_render.Initialize omx_err(0x00000000)
2019-10-18 14:11:53.491 T:1860165856   ERROR: CAESinkPi::GetDelay - error getting OMX_IndexConfigAudioRenderingLatency error 0x80001001
2019-10-18 14:11:53.491 T:1860165856   ERROR: CAESinkPi::AddPackets timeout
2019-10-18 14:11:53.516 T:1860165856   ERROR: CAESinkPi::GetDelay - error getting OMX_IndexConfigAudioRenderingLatency error 0x80001001
2019-10-18 14:11:53.516 T:1860165856   ERROR: CAESinkPi::AddPackets timeout
2019-10-18 14:11:53.541 T:1860165856   ERROR: CAESinkPi::GetDelay - error getting OMX_IndexConfigAudioRenderingLatency error 0x80001001
2019-10-18 14:11:53.541 T:1860165856   ERROR: CAESinkPi::AddPackets timeout
2019-10-18 14:11:53.542 T:1899628016  NOTICE: Raspberry PI firmware version: Sep 24 2019 17:37:47 
                                            Copyright (c) 2012 Broadcom
                                            version 6820edeee4ef3891b95fc01cf02a7abd7ca52f17 (clean) (release) (start_cd)
2019-10-18 14:11:53.542 T:1899628016  NOTICE: ARM mem: 0MB GPU mem: 0MB MPG2:0 WVC1:0
2019-10-18 14:11:53.542 T:1899628016  NOTICE: cache.memorysize: 30MB
2019-10-18 14:11:53.542 T:1899628016  NOTICE: Config:
                                            aphy_params_current=819
                                            arm_freq=1400
                                            audio_pwm_mode=514
                                            config_hdmi_boost=5
                                            core_freq=400
                                            desired_osc_freq=0x331df0
                                            desired_osc_freq_boost=0x3c45b0
                                            disable_commandline_tags=2
                                            disable_l2cache=1
                                            disable_overscan=1
                                            disable_splash=1
                                            display_lcd_rotate=-1
                                            dphy_params_current=547
                                            force_eeprom_read=1
                                            force_pwm_open=1
                                            framebuffer_depth=16
                                            framebuffer_ignore_alpha=1
                                            framebuffer_swap=1
                                            gpu_freq=300
                                            hdmi_channel_map=8
                                            init_uart_clock=0x2dc6c00
                                            lcd_framerate=60
                                            over_voltage_avs=56250
                                            over_voltage_avs_boost=0x27ac4
                                            pause_burst_frames=1
                                            program_serial_random=1
                                            sdram_freq=450
                                            temp_limit=75
                                            hdmi_force_cec_address:0=65535
                                            hdmi_force_cec_address:1=65535
                                            hdmi_pixel_freq_limit:0=0x9a7ec80
                                            hdmi_pixel_freq_limit:1=0x9a7ec80
2019-10-18 14:11:53.543 T:1899628016  NOTICE: Config:
                                            device_tree=-
                                            hdmi_cvt:0=
                                            hdmi_cvt:1=
                                            hdmi_edid_filename:0=
                                            hdmi_edid_filename:1=
                                            hdmi_timings:0=
                                            hdmi_timings:1=
2019-10-18 14:11:53.544 T:1899628016  NOTICE: Found resolution 640 x 480 with 640 x 480 @ 60.000000 Hz
2019-10-18 14:11:53.544 T:1899628016  NOTICE: Found resolution 640 x 480 with 640 x 480 @ 59.940063 Hz
2019-10-18 14:11:53.544 T:1899628016  NOTICE: Found resolution 640 x 480 with 640 x 480 @ 75.000000 Hz
2019-10-18 14:11:53.544 T:1899628016  NOTICE: Found resolution 800 x 600 with 800 x 600 @ 56.000000 Hz
2019-10-18 14:11:53.544 T:1899628016  NOTICE: Found resolution 800 x 600 with 800 x 600 @ 60.000000 Hz
2019-10-18 14:11:53.544 T:1899628016  NOTICE: Found resolution 800 x 600 with 800 x 600 @ 59.940063 Hz
2019-10-18 14:11:53.544 T:1899628016  NOTICE: Found resolution 800 x 600 with 800 x 600 @ 75.000000 Hz
2019-10-18 14:11:53.544 T:1899628016  NOTICE: Found resolution 1024 x 768 with 1024 x 768 @ 60.000000 Hz
2019-10-18 14:11:53.544 T:1899628016  NOTICE: Found resolution 1024 x 768 with 1024 x 768 @ 59.940063 Hz
2019-10-18 14:11:53.544 T:1899628016  NOTICE: Found resolution 1024 x 768 with 1024 x 768 @ 75.000000 Hz
2019-10-18 14:11:53.544 T:1899628016  NOTICE: Found resolution 1152 x 864 with 1152 x 864 @ 75.000000 Hz
2019-10-18 14:11:53.544 T:1899628016  NOTICE: Found resolution 1280 x 960 with 1280 x 960 @ 60.000000 Hz
2019-10-18 14:11:53.544 T:1899628016  NOTICE: Found resolution 1280 x 960 with 1280 x 960 @ 59.940063 Hz
2019-10-18 14:11:53.544 T:1899628016  NOTICE: Found resolution 1280 x 1024 with 1280 x 1024 @ 60.000000 Hz
2019-10-18 14:11:53.544 T:1899628016  NOTICE: Found resolution 1280 x 1024 with 1280 x 1024 @ 59.940063 Hz
2019-10-18 14:11:53.544 T:1899628016  NOTICE: Found resolution 1280 x 1024 with 1280 x 1024 @ 75.000000 Hz
2019-10-18 14:11:53.544 T:1899628016  NOTICE: Found resolution 1440 x 900 with 1440 x 900 @ 60.000000 Hz
2019-10-18 14:11:53.544 T:1899628016  NOTICE: Found resolution 1440 x 900 with 1440 x 900 @ 59.940063 Hz
2019-10-18 14:11:53.545 T:1899628016  NOTICE: Found resolution 1680 x 1050 with 1680 x 1050 @ 60.000000 Hz
2019-10-18 14:11:53.545 T:1899628016  NOTICE: Found resolution 1680 x 1050 with 1680 x 1050 @ 59.940063 Hz
2019-10-18 14:11:53.545 T:1899628016  NOTICE: Found (1680x1050@60.000000) at 34, setting to RES_DESKTOP at 16


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

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

@MichaIng
Copy link
Owner

@glogiotatidis
Many thanks for your report.

You as well used the RPi Buster image with v6.25, right? Or was it Stretch?
Since there was no real RPi-compatible Kodi release available before on RPi Buster.

However from the error log I am not 100% sure, which finally caused the crash, at least looks like it has some audio issues.
Do you use RPi onboard audio? HDMI or 3.5mm jack in case? Any error messages when you enable/chose one of those via dietpi-config?

@glogiotatidis
Copy link
Author

You as well used the RPi Buster image with v6.25, right? Or was it Stretch?

Yes it's 10.1. Actually I downloaded a fresh image a couple of days ago that worked (except for the polkit issue) and then today another fresh image that doesn't.

Same HW, same setup.

I don't have altered any audio settings. It defaults to rpi-bcm2835-auto and it has HDMI plugged.

Forcing HDMI audio, or disabling audio altogether do not fix the issue.

Enabled Kodi debug logs and tried installing a few packages mentioned like udisks2 and upower, nothing

@glogiotatidis
Copy link
Author

Fix: It was the default GPU memory split!

Kodi was installed non-interactivelly with AUTO_SETUP_AUTOMATED=1 which doesn't give the option to setup the memory split. Setting the mem split via the dietpi-config tool, fixes the issue

Can we have memory split conf values in dietpi.txt?

@MichaIng
Copy link
Owner

@glogiotatidis
Ah interesting, actually it should apply 320 MiB GPU memory automatically. Was it still 16 MiB in your case? Let me recheck the code.

@MichaIng
Copy link
Owner

MichaIng commented Oct 18, 2019

Found the issue: https://github.com/MichaIng/DietPi/blob/master/dietpi/dietpi-software#L12192-L12197

  • On noninteractive install, the inceased memory split is not applied automatically. User would be asked, but these G_WHIP_YESNO dialogs are answered with "No" by default.

Hmm since Kodi requires AFAIK min 128 MiB, we should force this (if lower value found) in every case, then ask user if recommended value 320 MiB should be applied. Although on RPi4 256 MiB should be more then sufficient since several GPU features have been moved over to system memory with that model. However this is another topic.


I am not keen to add a non-effective dietpi.txt setting since the effective value can be changed in config.txt already: https://github.com/MichaIng/DietPi/blob/master/config.txt#L59-L61

However either as above, strictly required values should be applied in every case on install, and probably we should add some hint to dietpi.txt or online docs (getting started thread) that device specific boot configs (config.txt on RPi) can be used additionally to apply values from first boot on.

@MichaIng MichaIng added this to the v6.27 milestone Oct 18, 2019
@MichaIng MichaIng changed the title DietPi-Software | Kodi: Segfaults and won't start DietPi-Software | Kodi: Assure min 128M gpu_mem on noninteractive installs Oct 18, 2019
@glogiotatidis
Copy link
Author

Neat, thanks for the quick debug session @MichaIng

@MichaIng MichaIng modified the milestones: v6.27, v6.28 Nov 18, 2019
@MichaIng MichaIng modified the milestones: v6.28, v6.29 Jan 3, 2020
MichaIng added a commit that referenced this issue Mar 19, 2020
+ DietPi-Software | Kodi: Apply minimal required 128 MiB GPU memory on RPi automatically during install, even when running a non-interactive install: #3173
@MichaIng
Copy link
Owner

Okay, the minimum 128 MiB, required for Kodi to start, is now applied automatically: 309688a

@MichaIng MichaIng added the Solution available 🥂 Definite solution has been done label Mar 19, 2020
@MichaIng MichaIng closed this as completed May 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants