KODI segfaults on new install. Worked in same hardware before drive change

  1. A bit of background:

This is an old tech (but bought as new) Gigabyte E2500N CPU/Mobo/GPU combo I got to replace a basic Core i3 mediacenter that became unstable, with video freezes, runtime errors at finally sata errors. I mistakenly assumed the problem was with the mobo, silly me.

I had 15.1 installed on a 640 EVO SSD from the previous Core i3 mobo. I just changed the mobo and, to my delight, the existing openSUSE install reconfigured itself and worked with the E2500N, including the existing KODI installation. So I tought the SSD was OK.

However, the component that borked the Core i3 was actually this SSD, as smartd indicates some prefailure warnings, in special the attribute in bold below:

Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  5 Reallocated_Sector_Ct   PO--CK   100   100   010    -    0
  9 Power_On_Hours          -O--CK   094   094   000    -    25807
 12 Power_Cycle_Count       -O--CK   099   099   000    -    779
177 Wear_Leveling_Count     PO--C-   098   098   000    -    23
179 **Used_Rsvd_Blk_Cnt_Tot   PO--C-   100   001   010    Past 0**
181 Program_Fail_Cnt_Total  -O--CK   100   100   010    -    0
182 Erase_Fail_Count_Total  -O--CK   100   100   010    -    0
183 Runtime_Bad_Block       PO--C-   100   100   010    -    0
187 Uncorrectable_Error_Cnt -O--CK   100   100   000    -    0
190 Airflow_Temperature_Cel -O--CK   070   052   000    -    30
195 ECC_Error_Rate          -O-RC-   200   200   000    -    0
199 CRC_Error_Count         -OSRCK   099   099   000    -    51
235 POR_Recovery_Count      -O--C-   099   099   000    -    359
241 Total_LBAs_Written      -O--CK   099   099   000    -    13171600528
                            ||||||_ K auto-keep
                            |||||__ C event count
                            ||||___ R error rate
                            |||____ S speed/performance
                            ||_____ O updated online
                            |______ P prefailure warning

The box worked for a short time, including KODI, but started to give the same errors, so I reinstalled LEAP 15.1 in a new SSD, keeping the existing /home folder.

Everything works, except KODI that segfaults:

:~> kodi
libva info: VA-API version 1.3.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_3
libva info: va_openDriver() returns 0
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>:<exec_prefix>]
ImportError: No module named site
/usr/bin/kodi, linha 219: 14705 **Falha de segmentação**  *(segfault)* (imagem do núcleo gravada) *(core image recorded)* ${KODI_BINARY} $SAVED_ARGS
Crash report available at /home/blimmer/kodi_crashlog-20200617_173159.log
:~>

The crash log doesn’t seem to help much. I selected what seems relevant below, but of course the whole 167 lines log is available if necessary:

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

################ SYSTEM INFO ################
 Date: qua jun 17 17:31:59 -03 2020
 Kodi Options: 
 Arch: x86_64
 Kernel: Linux 4.12.14-lp151.28.52-default #1 SMP Wed Jun 10 15:32:08 UTC 2020 (464fb5f)
 Release: openSUSE Leap 15.1
############## END SYSTEM INFO ##############

############### STACK TRACE #################
############# END STACK TRACE ###############

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

2020-06-17 17:31:26.546 T:140704195123776  NOTICE: -----------------------------------------------------------------------
2020-06-17 17:31:26.546 T:140704195123776  NOTICE: Starting Kodi (18.7 Git:20200520-20200520-f14f7a8). Platform: Linux x86 64-bit
2020-06-17 17:31:26.547 T:140704195123776  NOTICE: Using Release Kodi x64 build
2020-06-17 17:31:26.547 T:140704195123776  NOTICE: Kodi compiled 2020-05-20 by GCC 8.2.1 for Linux x86 64-bit version 4.15.0 (265984)
2020-06-17 17:31:26.547 T:140704195123776  NOTICE: Running on openSUSE Leap 15.1, kernel: Linux x86 64-bit version 4.12.14-lp151.28.52-default
2020-06-17 17:31:26.547 T:140704195123776  NOTICE: FFmpeg version/source: 4.2.1
2020-06-17 17:31:26.547 T:140704195123776  NOTICE: Host CPU: AMD E1-2500 APU with Radeon(TM) HD Graphics, 2 cores available
...
2020-06-17 20:31:26.716 T:140703629534976 **WARNING**: Pulseaudio module module-allow-passthrough not loaded - opening PT devices might fail
...

2020-06-17 20:31:26.728 T:140703621142272  NOTICE: PulseAudio: Opened device Default in pcm mode with Buffersize 150 ms
2020-06-17 20:31:26.943 T:140704195123776  NOTICE: Checking resolution 15
2020-06-17 20:31:28.326 T:140704195123776  NOTICE: Using visual 0x21
2020-06-17 20:31:28.452 T:140704195123776  NOTICE: VAAPI::Close - closing decoder context
2020-06-17 20:31:28.454 T:140704195123776  NOTICE: GL_VENDOR = X.Org
2020-06-17 20:31:28.454 T:140704195123776  NOTICE: GL_RENDERER = AMD KABINI (DRM 2.50.0, 4.12.14-lp151.28.52-default, LLVM 7.0.1)
2020-06-17 20:31:28.454 T:140704195123776  NOTICE: GL_VERSION = 4.5 (Core Profile) Mesa 18.3.2
2020-06-17 20:31:28.454 T:140704195123776  NOTICE: GL_SHADING_LANGUAGE_VERSION = 4.50
2020-06-17 20:31:28.454 T:140704195123776  NOTICE: GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX = 2616728
2020-06-17 20:31:28.454 T:140704195123776  NOTICE: GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX = 524288
...
2020-06-17 20:31:28.723 T:140702740875008  NOTICE: Running database version Addons27
2020-06-17 20:31:28.724 T:140702740875008  NOTICE: Running database version ViewModes6
2020-06-17 20:31:28.725 T:140702740875008  NOTICE: Running database version Textures13
2020-06-17 20:31:28.728 T:140702740875008  NOTICE: Running database version MyMusic72
2020-06-17 20:31:28.733 T:140702740875008  NOTICE: Running database version MyVideos116
2020-06-17 20:31:28.734 T:140702740875008  NOTICE: Running database version TV32
2020-06-17 20:31:28.735 T:140702740875008  NOTICE: Running database version Epg12
2020-06-17 20:31:28.736 T:140704195123776  NOTICE: start dvd mediatype detection
2020-06-17 20:31:28.771 T:140704195123776  NOTICE:   load skin from: /usr/share/kodi/addons/skin.estuary (version: 2.0.27)
2020-06-17 20:31:29.072 T:140704195123776 **WARNING**: JSONRPC: Could not parse type "Setting.Details.SettingList"
2020-06-17 20:31:29.120 T:140704195123776  NOTICE: Register - new keyboard device registered on application->keyboard: Keyboard (0000:0000)
2020-06-17 20:31:29.121 T:140704195123776  NOTICE: Register - new mouse device registered on application->mouse: Mouse (0000:0000)
2020-06-17 20:31:29.123 T:140704195123776  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
2020-06-17 20:31:29.123 T:140704195123776  NOTICE: Loaded playercorefactory configuration
2020-06-17 20:31:29.123 T:140704195123776  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
2020-06-17 20:31:29.123 T:140704195123776  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
2020-06-17 20:31:29.136 T:140704195123776  NOTICE: initialize done
2020-06-17 20:31:29.136 T:140704195123776  NOTICE: Running the application...
2020-06-17 20:31:29.150 T:140704195123776  NOTICE: starting zeroconf publishing
2020-06-17 20:31:29.157 T:140702029694720  NOTICE: ES: Starting UDP Event server on port 9777
2020-06-17 20:31:29.157 T:140702029694720  NOTICE: UDP: Listening on port 9777 (ipv6 : false)


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

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

Continued on the next post…

Sometimes KODI crashes right after its splash screen, sometimes after about 30 seconds without any activity.

Note: right after install I switched all packages to the Packman repo. Also, all nfs media shares are mounted and accessible, and there is no problem watching Netflix.

GPU info:

31: PCI 01.0: 0300 VGA compatible controller (VGA)
  [Created at pci.386]
  Unique ID: vSkL.5VRH5Z4+SiE
  SysFS ID: /devices/pci0000:00/0000:00:01.0
  SysFS BusID: 0000:00:01.0
  Hardware Class: graphics card
  Model: "ATI Kabini [Radeon HD 8240 / R3 Series]"
  Vendor: pci 0x1002 "ATI Technologies Inc"
  Device: pci 0x9838 "Kabini [Radeon HD 8240 / R3 Series]"
  SubVendor: pci 0x1458 "Gigabyte Technology Co., Ltd"
  SubDevice: pci 0xd000 
  Driver: "radeon"
  Driver Modules: "radeon"
  Memory Range: 0xc0000000-0xcfffffff (ro,non-prefetchable)
  Memory Range: 0xd0000000-0xd07fffff (ro,non-prefetchable)
  I/O Ports: 0xf000-0xf0ff (rw)
  Memory Range: 0xfeb00000-0xfeb3ffff (rw,non-prefetchable)
  Memory Range: 0x000c0000-0x000dffff (rw,non-prefetchable,disabled)
  IRQ: 33 (53706 events)
  Module Alias: "pci:v00001002d00009838sv00001458sd0000D000bc03sc00i00"
  Driver Info #0:
    Driver Status: radeon is active
    Driver Activation Cmd: "modprobe radeon"
  Driver Info #1:
    Driver Status: amdgpu is active
    Driver Activation Cmd: "modprobe amdgpu"
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  1. Things I tried based on this and kodi’s forum posts (that didn’t work):
  • remove / reinstall Mesa-libva
  • install libva-32bit
  • close KODI, remove ~/.kodi folder and restart
  • install libsec (there’s no -32bit version in the standard repos)
  1. tl;dr

Since KODI worked for the older (but 15.1 x64) install, I’m speculating that I’m missing some library, perhaps -32bit, that was installed. But I have no idea how to check this, or even if the problem lies elsewhere.

Any help will be greatly appreciated.

TIA

Having the same issue. Kodi worked fine in 15.1 and not working at all in 15.2. I can’t understand why.

localhost:/usr/bin # kodi
libva info: VA-API version 1.5.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_5
mesa: for the --simplifycfg-sink-common option: may only occur zero or one times!
mesa: for the --global-isel-abort option: may only occur zero or one times!
libva info: va_openDriver() returns 0
ImportError: No module named site
*** Error in `/usr/lib64/kodi/kodi-x11’: corrupted double-linked list: 0x000000000318c130 ***
/usr/bin/kodi: line 219: 4905 Aborted (core dumped) ${KODI_BINARY} $SAVED_ARGS
Crash report available at /root/kodi_crashlog-20201108_184254.log

No info in log file
2020-11-07 17:37:10.685 T:139969474820736 NOTICE: Contents of special://profile/advancedsettings.xml are…
<advancedsettings version=“1.0”>
<setting>value</setting>
<advancedsettings>
<loglevel hide=“true”>1</loglevel>
</advancedsettings>
<setting>value</setting>
</advancedsettings>
2020-11-07 17:37:10.685 T:139969474820736 NOTICE: Default Video Player: VideoPlayer
2020-11-07 17:37:10.685 T:139969474820736 NOTICE: Default Audio Player: paplayer
2020-11-07 17:37:10.685 T:139969474820736 NOTICE: Disabled debug logging due to GUI setting. Level 0.
2020-11-07 17:37:10.685 T:139969474820736 NOTICE: Log level changed to “LOG_LEVEL_NORMAL”

2020-11-07 17:37:10.942 T:139969474820736 ERROR: DBus error: org.freedesktop.DBus.Error.InvalidArgs - No such property “OnLowBattery”
2020-11-07 17:37:10.943 T:139968905914112 WARNING: Pulseaudio module module-allow-passthrough not loaded - opening PT devices might fail
2020-11-07 17:37:10.944 T:139968905914112 NOTICE: Found 1 Lists of Devices
2020-11-07 17:37:10.944 T:139968905914112 NOTICE: Enumerated PULSE devices:

2020-11-07 17:37:11.301 T:139967883900672 NOTICE: UDP: Listening on port 9777 (ipv6 : true)
2020-11-07 17:37:11.301 T:139969474820736 ERROR: JSONRPC Server: Failed to connect to sdpd

That is abpout it.

In my case I suspect it was multiple hardware issues, not necessarily software, but I couldn’t find why. Now I’m using an old WDTV Live (a great little box), and also a RPi 2 with KODI.

The Mesa errors are noteworthy but the errors I highlighted in red look like showstoppers.
I doubt those kinds of errors are anything you can fix, recommend submitting a bug to https://bugzilla.openssuse.org

TSU