Manjaro Linux Desktop Kodi Issue

I was testing Manjaro 19.07 KDE with Linux 5.2.1 and installed from this Kodi-c2.

When I tried running kodi it was throwing libmariad.so.3 not found error then I installed libmariadb, this helped resolve the lib error,

But now it is throwing

ERROR: Unable to create GUI. Exiting

Crash Log.

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

################ SYSTEM INFO ################
 Date: Sat 27 Jul 23:00:26 +03 2019
 Kodi Options: 
 Arch: aarch64
 Kernel: Linux 5.2.0-1 #1 SMP PREEMPT Wed Jul 17 18:24:57 UTC 2019
 Release: Manjaro-ARM
############## END SYSTEM INFO ##############

############### STACK TRACE #################
=====>  Core file: /home/spikerguy/core (2019-07-27 23:00:27.829861469 +0300)
        =========================================
[New LWP 7368]
[New LWP 7376]
[New LWP 7374]
[New LWP 7373]
[New LWP 7379]
[New LWP 7377]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/usr/lib/kodi/kodi.bin'.
Program terminated with signal SIGABRT, Aborted.
#0  0x0000ffffa58df854 in raise () from /usr/lib/libc.so.6
[Current thread is 1 (Thread 0xffffa13a7c10 (LWP 7368))]

Thread 6 (Thread 0xffff9affce50 (LWP 7377)):
#0  0x0000ffffa5976cd8 in ioctl () from /usr/lib/libc.so.6
#1  0x0000ffffa61e5058 in ?? () from /usr/lib/libasound.so.2
#2  0x0000aaaab0385458 in CAESinkALSA::AddPackets(unsigned char**, unsigned int, unsigned int) ()
#3  0x0000aaaab037321c in ActiveAE::CActiveAESink::OutputSamples(ActiveAE::CSampleBuffer*) ()
#4  0x0000aaaab0374dd0 in ActiveAE::CActiveAESink::StateMachine(int, Actor::Protocol*, Actor::Message*) ()
#5  0x0000aaaab03757a0 in ActiveAE::CActiveAESink::Process() ()
#6  0x0000aaaaafa00df0 in CThread::Action() ()
#7  0x0000aaaaafa01120 in CThread::staticThread(void*) ()
#8  0x0000ffffa6f7b5d4 in start_thread () from /usr/lib/libpthread.so.0
#9  0x0000ffffa597e41c in thread_start () from /usr/lib/libc.so.6

Thread 5 (Thread 0xffff99ffae50 (LWP 7379)):
#0  0x0000ffffa6f81880 in pthread_cond_wait@@GLIBC_2.17 () from /usr/lib/libpthread.so.0
#1  0x0000ffffa5f7bc98 in _mali_osu_lock_wait () from /usr/lib/mali-egl/libGLESv2.so.2
#2  0x0000ffffa5f78ca0 in ?? () from /usr/lib/mali-egl/libGLESv2.so.2
#3  0x0000ffffd1262f10 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 4 (Thread 0xffffa13a3e50 (LWP 7373)):
#0  0x0000ffffa6f81880 in pthread_cond_wait@@GLIBC_2.17 () from /usr/lib/libpthread.so.0
#1  0x0000aaaab01f9058 in ANNOUNCEMENT::CAnnouncementManager::Process() ()
#2  0x0000aaaaafa00df0 in CThread::Action() ()
#3  0x0000aaaaafa01120 in CThread::staticThread(void*) ()
#4  0x0000ffffa6f7b5d4 in start_thread () from /usr/lib/libpthread.so.0
#5  0x0000ffffa597e41c in thread_start () from /usr/lib/libc.so.6

Thread 3 (Thread 0xffffa0ba2e50 (LWP 7374)):
#0  0x0000ffffa5974f68 in poll () from /usr/lib/libc.so.6
#1  0x0000aaaaaf6e7f80 in CFDEventMonitor::Process() ()
#2  0x0000aaaaafa00df0 in CThread::Action() ()
#3  0x0000aaaaafa01120 in CThread::staticThread(void*) ()
#4  0x0000ffffa6f7b5d4 in start_thread () from /usr/lib/libpthread.so.0
#5  0x0000ffffa597e41c in thread_start () from /usr/lib/libc.so.6

Thread 2 (Thread 0xffff9b7fde50 (LWP 7376)):
#0  0x0000ffffa6f81ba0 in pthread_cond_timedwait@@GLIBC_2.17 () from /usr/lib/libpthread.so.0
#1  0x0000aaaab036bbcc in ActiveAE::CActiveAE::Process() ()
#2  0x0000aaaaafa00df0 in CThread::Action() ()
#3  0x0000aaaaafa01120 in CThread::staticThread(void*) ()
#4  0x0000ffffa6f7b5d4 in start_thread () from /usr/lib/libpthread.so.0
#5  0x0000ffffa597e41c in thread_start () from /usr/lib/libc.so.6

Thread 1 (Thread 0xffffa13a7c10 (LWP 7368)):
#0  0x0000ffffa58df854 in raise () from /usr/lib/libc.so.6
#1  0x0000ffffa58cd2a8 in abort () from /usr/lib/libc.so.6
#2  0x0000ffffa591a4f0 in __libc_message () from /usr/lib/libc.so.6
#3  0x0000ffffa5920d8c in malloc_printerr () from /usr/lib/libc.so.6
#4  0x0000ffffa5922828 in _int_free () from /usr/lib/libc.so.6
#5  0x0000aaaaaf9963d4 in non-virtual thunk to CRssManager::OnSettingsUnloaded() ()
#6  0x0000aaaaafe494c4 in CSettingsManager::Unload() ()
#7  0x0000aaaaafe4c400 in CSettingsManager::Clear() ()
#8  0x0000aaaaafea9d04 in CSettings::Uninitialize() ()
#9  0x0000aaaaafeaa360 in CSettings::~CSettings() ()
#10 0x0000ffffa58e1f80 in __run_exit_handlers () from /usr/lib/libc.so.6
#11 0x0000ffffa58e20ec in exit () from /usr/lib/libc.so.6
#12 0x0000ffffa58cd6e8 in __libc_start_main () from /usr/lib/libc.so.6
#13 0x0000aaaaaf53e9d0 in _start ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
############# END STACK TRACE ###############

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

22:32:41.405 T:281472788745232  NOTICE: special://profile/ is mapped to: special://masterprofile/
22:32:41.406 T:281472788745232  NOTICE: -----------------------------------------------------------------------
22:32:41.406 T:281472788745232  NOTICE: Starting Kodi (17.6 Git:20190623-nogitfound). Platform: Linux ARM 64-bit
22:32:41.406 T:281472788745232  NOTICE: Using Release Kodi x64 build
22:32:41.406 T:281472788745232  NOTICE: Kodi compiled Jun 23 2019 by GCC 8.3.0 for Linux ARM 64-bit version 5.1.0 (327936)
22:32:41.406 T:281472788745232  NOTICE: Running on Manjaro ARM 19.06, kernel: Linux ARM 64-bit version 5.2.0-1
22:32:41.415 T:281472788745232  NOTICE: FFmpeg version/source: ffmpeg-3.1-kodi
22:32:41.415 T:281472788745232  NOTICE: Host CPU: ARMv8 Processor rev 4 (v8l), 4 cores available
22:32:41.415 T:281472788745232  NOTICE: ARM Features: Neon disabled
22:32:41.415 T:281472788745232  NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
22:32:41.415 T:281472788745232  NOTICE: special://xbmcbin/ is mapped to: /usr/lib/kodi
22:32:41.415 T:281472788745232  NOTICE: special://xbmcbinaddons/ is mapped to: /usr/lib/kodi/addons
22:32:41.415 T:281472788745232  NOTICE: special://masterprofile/ is mapped to: /root/.kodi/userdata
22:32:41.416 T:281472788745232  NOTICE: special://envhome/ is mapped to: /root
22:32:41.416 T:281472788745232  NOTICE: special://home/ is mapped to: /root/.kodi
22:32:41.416 T:281472788745232  NOTICE: special://temp/ is mapped to: /root/.kodi/temp
22:32:41.416 T:281472788745232  NOTICE: special://logpath/ is mapped to: /root/.kodi/temp
22:32:41.416 T:281472788745232  NOTICE: The executable running is: /usr/lib/kodi/kodi.bin
22:32:41.416 T:281472788745232  NOTICE: Local hostname: spikerguy-pc
22:32:41.416 T:281472788745232  NOTICE: Log File is located: /root/.kodi/temp//kodi.log
22:32:41.416 T:281472788745232  NOTICE: -----------------------------------------------------------------------
22:32:41.569 T:281472788745232   ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property “CanSuspend”
22:32:41.572 T:281472788745232   ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property “CanHibernate”
22:32:41.581 T:281472788745232  NOTICE: load settings...
22:32:41.687 T:281472788745232  NOTICE: Found 1 Lists of Devices
22:32:41.687 T:281472788745232  NOTICE: Enumerated ALSA devices:
22:32:41.687 T:281472788745232  NOTICE:     Device 1
22:32:41.687 T:281472788745232  NOTICE:         m_deviceName      : default
22:32:41.687 T:281472788745232  NOTICE:         m_displayName     : Default (HDMI S/PDIF)
22:32:41.687 T:281472788745232  NOTICE:         m_displayNameExtra:
22:32:41.687 T:281472788745232  NOTICE:         m_deviceType      : AE_DEVTYPE_IEC958
22:32:41.687 T:281472788745232  NOTICE:         m_channels        : FL,FR
22:32:41.687 T:281472788745232  NOTICE:         m_sampleRates     : 32000,44100,48000,88200,96000,176400,192000
22:32:41.687 T:281472788745232  NOTICE:         m_dataFormats     : AE_FMT_RAW,AE_FMT_S24NE4,AE_FMT_S16NE,AE_FMT_S16LE
22:32:41.687 T:281472788745232  NOTICE:         m_streamTypes     : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512
22:32:41.706 T:281472788745232  NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml)
22:32:41.707 T:281472788745232  NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
22:32:41.707 T:281472788745232  NOTICE: Default Video Player: VideoPlayer
22:32:41.707 T:281472788745232  NOTICE: Default Audio Player: paplayer
22:32:41.707 T:281472788745232  NOTICE: Disabled debug logging due to GUI setting. Level 0.
22:32:41.707 T:281472788745232  NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
22:32:41.707 T:281472788745232  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
22:32:41.709 T:281472788745232  NOTICE: Loaded playercorefactory configuration
22:32:41.709 T:281472788745232  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
22:32:41.709 T:281472788745232  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
19:32:41.754 T:281472788745232  NOTICE: Running database version Addons27
19:32:41.977 T:281472788745232  NOTICE: ADDONS: Using repository repository.xbmc.org
19:32:42.114 T:281472788745232  NOTICE: InitWindowSystem: Using EGL Implementation: amlogic
19:32:42.114 T:281472788745232   ERROR: GetString: error reading /sys/class/display/mode
19:32:42.131 T:281472788745232   ERROR: EGL error in InitDisplay: 3003
19:32:42.132 T:281472788745232   ERROR: InitWindowSystem: Could not create display
19:32:42.132 T:281472788745232   FATAL: CApplication::Create: Unable to init windowing system


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

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

My question is can I run kodi-c2 which is built for OD c2 run on Kvim1, if yes then what is the crash log about?

@balbes150 can you advice me how I can build kodi on kvim1 with manjaro?

If in case you have any old pkgbuild for kodi then please share so I can try compiling it from scratch and see if it will work… As @chewitt advice to complie kodi on the current build

To do this, you need to look at the Kodi build logic in LE.

Old KODI builds will not work on the new kernel, it uses a different build principle (a set of options and associated components).

I have been going through the builds, I will check the difference and try it.

But the kodi-c2 from archlinuxarm was built just last week.

It uses the old private version of the drivers (only for the old kernel) which is not supported in the new kernel.

2 Likes

Oh ok. I will look into this section now.

Thanks alot

Update:
I tried building Kodi using the PKGBUILD from the ArchArmLinux page.
My Observation:

  1. The Repo used for xmbc and ffmpeg is very old but was made for amlogic s905x.

I tried to make the built with the existing repo of Owen with PKGBUILD but I got error.

[ 91%] Building CXX object     build/cores/VideoPlayer/videorenderers/CMakeFiles/videorenderers.dir/OverlayRenderer.cpp.o
[ 91%] Building CXX object build/cores/VideoPlayer/videorenderers/CMakeFiles/videorenderers.dir/OverlayRendererGUI.cpp.o
[ 91%] Building CXX object build/cores/VideoPlayer/videorenderers/CMakeFiles/videorenderers.dir/OverlayRendererUtil.cpp.o
[ 91%] Building CXX object build/cores/VideoPlayer/videorenderers/CMakeFiles/videorenderers.dir/RenderCapture.cpp.o
[ 91%] Building CXX object build/cores/VideoPlayer/videorenderers/CMakeFiles/videorenderers.dir/RenderFlags.cpp.o
[ 91%] Building CXX object build/cores/VideoPlayer/videorenderers/CMakeFiles/videorenderers.dir/RenderManager.cpp.o
/home/spikerguy/Desktop/Kodi-vim1/src/xbmc-7e7160eacdcb0c5b70e91dd4265d20358ba33c26/xbmc/cores/VideoPlayer/VideoRenderers/RenderManager.cpp: In member function ‘void CRenderManager::CreateRenderer()’:
/home/spikerguy/Desktop/Kodi-vim1/src/xbmc-7e7160eacdcb0c5b70e91dd4265d20358ba33c26/xbmc/cores/VideoPlayer/VideoRenderers/RenderManager.cpp:582:25: error: ‘CRendererAML’ does not name a type; did you mean ‘CRenderInfo’?
       m_pRenderer = new CRendererAML;
                         ^~~~~~~~~~~~
                         CRenderInfo
make[2]: *** [build/cores/VideoPlayer/videorenderers/CMakeFiles/videorenderers.dir/build.make:154: build/cores/VideoPlayer/videorenderers/CMakeFiles/videorenderers.dir/RenderManager.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:7818: build/cores/VideoPlayer/videorenderers/CMakeFiles/videorenderers.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

I tried using balbes kodi repo also and the xbmc core repo also had problem with patch or sometime CheckFunction Error.

Run Build Command(s):/usr/bin/make cmTC_a2c74/fast && /usr/bin/make -f CMakeFiles/cmTC_a2c74.dir/build.make CMakeFiles/cmTC_a2c74.dir/build
make[1]: Entering directory '/home/spikerguy/Desktop/Kodi-vim1/src/kodi-build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_a2c74.dir/CheckFunctionExists.c.o
/usr/bin/cc   -march=armv8-a  -O2 -pipe -fstack-protector-strong -fno-plt -DPLATFORM_SETTINGS_FILE=x11.xml -Wall -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_a2c74.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.15/Modules/CheckFunctionExists.c
Linking C executable cmTC_a2c74
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a2c74.dir/link.txt --verbose=1
/usr/bin/cc -march=armv8-a  -O2 -pipe -fstack-protector-strong -fno-plt -DPLATFORM_SETTINGS_FILE=x11.xml -Wall -DCHECK_FUNCTION_EXISTS=pthread_create  -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -fuse-ld=gold  CMakeFiles/cmTC_a2c74.dir/CheckFunctionExists.c.o  -o cmTC_a2c74 -lpthreads 
/usr/bin/ld.gold: error: cannot find -lpthreads
CMakeFiles/cmTC_a2c74.dir/CheckFunctionExists.c.o:CheckFunctionExists.c:function main: error: undefined reference to 'pthread_create'
CMakeFiles/cmTC_a2c74.dir/CheckFunctionExists.c.o:CheckFunctionExists.c:function main: error: undefined reference to 'pthread_create'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_a2c74.dir/build.make:87: cmTC_a2c74] Error 1
make[1]: Leaving directory '/home/spikerguy/Desktop/Kodi-vim1/src/kodi-build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_a2c74/fast] Error 2

Anyone have any idea about this ? If there is anyone maintaining the kodi repo for amlogic s905x or khadas vim then please share with me.

Hello,

I tried compiling with x11=OFF and this error didnt appear but then it have another error which is related to audio.

Error Log HERE

Anyone have any idea about this error?