Kodi crashes on Allwinner H3 with prop. userspace mali libs
#1
Hello,

I guess - because of the Allwinner/Cedrus/Mali history in particular - you're not very keen of debugging setups including proprietary components.
I can only ensure you I feel with you, know about the current situation very well, and won't be nagging - especially not about video decoding support in HW Smile

I'm on a Debian with a self compiled kernel (v4.14), compiled the now open-sourced MALI kernel driver (ttps://github.com/mripard/sunxi-mali.git) and installed the proprietary libs from https://github.com/free-electrons/mali-blobs.

Without the proprietary libs Kodi starts just fine (although obviously very slow, due to missing native GLES support). With the MALI blobs (libEGL*.so*, libGLES*.so*) Kodi doesn't start however and crashes the Xorg server with it.

Stacktrace:
Code:

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

################ SYSTEM INFO ################
 Date: Thu Dec  7 02:00:01 CET 2017
 Kodi Options:
 Arch: armv7l
 Kernel: Linux 4.14.0 #2 SMP Tue Dec 5 18:12:36 CET 2017
 Release: Debian GNU/Linux
############## END SYSTEM INFO ##############

############### STACK TRACE #################
=====>  Core file: /home/multi/core (2017-12-07 02:00:00.932289036 +0100)
        =========================================
[New LWP 9723]
[New LWP 9734]
[New LWP 9726]
[New LWP 9729]
[New LWP 9728]
[New LWP 9725]
[New LWP 9733]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Core was generated by `/usr/lib/arm-linux-gnueabihf/kodi/kodi.bin'.
Program terminated with signal SIGABRT, Aborted.
#0  __libc_do_syscall () at ../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:47
[Current thread is 1 (Thread 0xaeb6f010 (LWP 9723))]

Thread 7 (Thread 0xa73ff190 (LWP 9733)):
#0  0xb46bf0e6 in ioctl () at ../sysdeps/unix/syscall-template.S:84
#1  0xb694b072 in _mali_uku_wait_for_notification () at /usr/local/lib/libGLESv2.so.2

Thread 6 (Thread 0xaeb6c190 (LWP 9725)):
#0  0xb6af6034 in __libc_do_syscall () at ../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:46
#1  0xb6af0bd8 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x19b9608) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#2  0xb6af0bd8 in __pthread_cond_wait_common (abstime=0x0, mutex=<optimized out>, cond=0x19b95e0) at pthread_cond_wait.c:502
#3  0xb6af0bd8 in __pthread_cond_wait (cond=0x19b95e0, mutex=<optimized out>) at pthread_cond_wait.c:655
#4  0x00a67658 in ANNOUNCEMENT::CAnnouncementManager:Tonguerocess() ()
#5  0x00f0e848 in CThread::Action() ()
#6  0x00f0ea2c in CThread:ConfusedtaticThread(void*) ()
#7  0xb6aeb7ea in start_thread (arg=0x0) at pthread_create.c:458
#8  0xb46c464c in  () at ../sysdeps/unix/sysv/linux/arm/clone.S:76

Thread 5 (Thread 0xa8fff190 (LWP 9728)):
#0  0xb6af6034 in __libc_do_syscall () at ../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:46
#1  0xb6af0f78 in futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0xa8ffeafc, expected=0, futex_word=0x19c1524) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
#2  0xb6af0f78 in __pthread_cond_wait_common (abstime=0xa8ffeafc, mutex=<optimized out>, cond=0x19c14f8) at pthread_cond_wait.c:539
#3  0xb6af0f78 in __pthread_cond_timedwait (cond=0x19c14f8, mutex=<optimized out>, abstime=0xa8ffeafc) at pthread_cond_wait.c:667
#4  0x00940958 in ActiveAE::CActiveAE:Tonguerocess() ()
#5  0x00f0e848 in CThread::Action() ()
#6  0x00f0ea2c in CThread:ConfusedtaticThread(void*) ()
#7  0xb6aeb7ea in start_thread (arg=0x0) at pthread_create.c:458
#8  0xb46c464c in  () at ../sysdeps/unix/sysv/linux/arm/clone.S:76

Thread 4 (Thread 0xa85ff190 (LWP 9729)):
#0  0xb46bf0e6 in ioctl () at ../sysdeps/unix/syscall-template.S:84
#1  0xb60d85e8 in  () at /usr/lib/arm-linux-gnueabihf/libasound.so.2

Thread 3 (Thread 0xaa1ff190 (LWP 9726)):
#0  0xb46bdb74 in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00d1de7c in CFDEventMonitor:Tonguerocess() ()
#2  0x00f0e848 in CThread::Action() ()
#3  0x00f0ea2c in CThread:ConfusedtaticThread(void*) ()
#4  0xb6aeb7ea in start_thread (arg=0x0) at pthread_create.c:458
#5  0xb46c464c in  () at ../sysdeps/unix/sysv/linux/arm/clone.S:76

Thread 2 (Thread 0xb6f60b40 (LWP 9734)):
#0  0xb4494ac6 in __libc_do_syscall () at ../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:47
#1  0xb4494bb6 in timer_helper_thread (arg=<optimized out>) at ../sysdeps/unix/sysv/linux/timer_routines.c:89
#2  0xb6aeb7ea in start_thread (arg=0x0) at pthread_create.c:458
#3  0xb46c464c in  () at ../sysdeps/unix/sysv/linux/arm/clone.S:76

Thread 1 (Thread 0xaeb6f010 (LWP 9723)):
#0  0xb4641936 in __libc_do_syscall () at ../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:47
#1  0xb464fb0a in __libc_signal_restore_set (set=0xbe802334) at ../sysdeps/unix/sysv/linux/nptl-signals.h:79
#2  0xb464fb0a in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:48
#3  0xb4650a58 in __GI_abort () at abort.c:89
#4  0xb467945a in __libc_message (do_abort=do_abort@entry=2, fmt=<optimized out>) at ../sysdeps/posix/libc_fatal.c:175
#5  0xb467dc0a in malloc_printerr (action=<optimized out>, str=0xb4701768 "double free or corruption (out)", ptr=<optimized out>, ar_ptr=<optimized out>) at malloc.c:5079
#6  0xb467e34c in _int_free (av=0xb471e7ac <main_arena>, p=0x1ae6ad8, have_lock=<optimized out>) at malloc.c:3875
#7  0x00d83f88 in std::_Rb_tree<int, std::pair<int const, RssSet>, std::_Select1st<std::pair<int const, RssSet> >, std::less<int>, std::allocator<std::pair<int const, RssSet> > >::_M_erase(std::_Rb_tree_node<std::pair<int const, RssSet> >*) ()
############# END STACK TRACE ###############

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

01:59:23.271 T:2931224592  NOTICE: special://profile/ is mapped to: special://masterprofile/
01:59:23.272 T:2931224592  NOTICE: -----------------------------------------------------------------------
01:59:23.272 T:2931224592  NOTICE: Starting Kodi from Debian (17.3 Debian package version: 2:17.3+dfsg1-5+b2). Platform: Linux ARM (Thumb) 32-bit
01:59:23.272 T:2931224592  NOTICE: Using Release Kodi from Debian x32 build
01:59:23.272 T:2931224592  NOTICE: Kodi from Debian compiled from 2:17.3+dfsg1-5+b2 by GCC 6.4.0 for Linux ARM (Thumb) 32-bit version 4.13.10 (265482)
01:59:23.272 T:2931224592  NOTICE: Running on Debian GNU/Linux buster/sid 0.0, kernel: Linux ARM 32-bit version 4.14.0
01:59:23.272 T:2931224592  NOTICE: FFmpeg version/source: 3.4-4
01:59:23.272 T:2931224592  NOTICE: Host CPU: ARMv7 Processor rev 5 (v7l), 4 cores available
01:59:23.272 T:2931224592  NOTICE: ARM Features: Neon disabled
01:59:23.272 T:2931224592  NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
01:59:23.272 T:2931224592  NOTICE: special://xbmcbin/ is mapped to: /usr/lib/arm-linux-gnueabihf/kodi
01:59:23.272 T:2931224592  NOTICE: special://xbmcbinaddons/ is mapped to: /usr/lib/arm-linux-gnueabihf/kodi/addons
01:59:23.272 T:2931224592  NOTICE: special://masterprofile/ is mapped to: /home/multi/.kodi/userdata
01:59:23.273 T:2931224592  NOTICE: special://envhome/ is mapped to: /home/multi
01:59:23.273 T:2931224592  NOTICE: special://home/ is mapped to: /home/multi/.kodi
01:59:23.273 T:2931224592  NOTICE: special://temp/ is mapped to: /home/multi/.kodi/temp
01:59:23.273 T:2931224592  NOTICE: special://logpath/ is mapped to: /home/multi/.kodi/temp
01:59:23.273 T:2931224592  NOTICE: The executable running is: /usr/lib/arm-linux-gnueabihf/kodi/kodi.bin
01:59:23.273 T:2931224592  NOTICE: Local hostname: opilite
01:59:23.273 T:2931224592  NOTICE: Log File is located: /home/multi/.kodi/temp//kodi.log
01:59:23.273 T:2931224592  NOTICE: -----------------------------------------------------------------------
01:59:23.399 T:2931224592   ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property 'CanSuspend'
01:59:23.401 T:2931224592   ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property 'CanHibernate'
01:59:23.403 T:2931224592  NOTICE: load settings...
01:59:23.465 T:2931224592   ERROR: PulseAudio: Failed to connect context
01:59:23.465 T:2931224592  NOTICE: PulseAudio might not be running. Context was not created.
01:59:23.512 T:2931224592  NOTICE: Found 1 Lists of Devices
01:59:23.512 T:2931224592  NOTICE: Enumerated ALSA devices:
01:59:23.512 T:2931224592  NOTICE:     Device 1
01:59:23.512 T:2931224592  NOTICE:         m_deviceName      : @
01:59:23.512 T:2931224592  NOTICE:         m_displayName     : Default (allwinner,hdmi Analog)
01:59:23.512 T:2931224592  NOTICE:         m_displayNameExtra:
01:59:23.513 T:2931224592  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
01:59:23.513 T:2931224592  NOTICE:         m_channels        : FL,FR
01:59:23.513 T:2931224592  NOTICE:         m_sampleRates     : 32000,44100,48000,88200,96000,176400,192000
01:59:23.513 T:2931224592  NOTICE:         m_dataFormats     : AE_FMT_S16NE,AE_FMT_S16LE
01:59:23.513 T:2931224592  NOTICE:         m_streamTypes     : No passthrough capabilities
01:59:23.527 T:2931224592  NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml)
01:59:23.528 T:2931224592  NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
01:59:23.528 T:2931224592  NOTICE: Default Video Player: VideoPlayer
01:59:23.528 T:2931224592  NOTICE: Default Audio Player: paplayer
01:59:23.528 T:2931224592  NOTICE: Disabled debug logging due to GUI setting. Level 0.
01:59:23.528 T:2931224592  NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
01:59:23.528 T:2931224592  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
01:59:23.529 T:2931224592  NOTICE: Loaded playercorefactory configuration
01:59:23.529 T:2931224592  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
01:59:23.530 T:2931224592  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
01:59:23.556 T:2931224592  NOTICE: Running database version Addons27
01:59:24.335 T:2931224592  NOTICE: Checking resolution 16
01:59:24.335 T:2931224592  NOTICE: CWinSystemX11GLESContext::CreateNewWindow
01:59:24.338 T:2931224592  NOTICE: CWinSystemX11GLESContext::GetVisual() m_pGLContextSadnil) GetVisual
01:59:24.338 T:2931224592  NOTICE: Create new CGLContextEGL at CWinSystemX11GLESContext::CreateNewWindow, m_dpy=0x1aed418


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

############ END Kodi CRASH LOG #############
Now I'm kinda clueless how to proceed next, don't know what to make out of the stackstrace. Any hint or pointer would be higly appreciated.

Thanks a lot!

  daten
Reply
#2
Moved to Linux
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi crashes on Allwinner H3 with prop. userspace mali libs0