Kodi won’t start anymore

Hi guys,

yesterday i wanted to set up my Pi 3 as a WLAN-AP. This worked fine. I followed this tutorial https://www.elektronik-kompendium.de/sit…002171.htm
The things I did were:

Code:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

sudo apt-get install hostapd
sudo nano /etc/hostapd/hostapd.conf
(set up my hostapd.conf)
sudo nano /etc/default/hostapd

sudo apt-get install dnsmasq
sudo nano /etc/dnsmasq.conf
(setup my dnsmasq.conf)
sudo nano /etc/network/interfaces
(setup my interfaces)

sudo reboot

Wlan Acces Point works fine. I can surf and use the Raspberry Pi’s eth0 network through wlan0.

But this somehow broke my kodi.

Kodi was running on TV and while I was setting up the AP things. I needed to restart.
After restarting i wanted to start kodi again and it gave me this error:

Code:
* failed to add service - already in use?
Segmentation fault      (core dumped)
Crash report available....

I deleted ~/.kodi and tried again. Still Error. I purged kodi and kodi-bin and reinstalled, and then i got this:

Code:
* failed to add service - already in use?
*** Error in `/usr/lib/kodi/kodi.bin': free(): invalid pointer: 0x0300a5ec ***
Aborted (core dumped)
Crash report available at /home/pi/kodi_crashlog-20170105_173641.log

Kodi won’t start. I also undid all the AP-related things but error still appears.
How can I fix this?

This is my logfile:

Code:
############## Kodi CRASH LOG ###############

################ SYSTEM INFO ################
Date: Do 5. Jan 17:36:41 CET 2017
Kodi Options:
Arch: armv7l
Kernel: Linux 4.4.38-v7+ #938 SMP Thu Dec 15 15:22:21 GMT 2016
Release: Raspbian GNU/Linux
############## END SYSTEM INFO ##############

############### STACK TRACE #################
=====>  Core file: /home/pi/core (2017-01-05 17:36:41.084183960 +0100)
        =========================================
[New LWP 5336]
[New LWP 5342]
[New LWP 5349]
[New LWP 5353]
[New LWP 5348]
[New LWP 5344]
[New LWP 5347]
[New LWP 5345]
[New LWP 5350]
[New LWP 5346]
[New LWP 5352]
[New LWP 5351]
[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/kodi/kodi.bin --lircdev /var/run/lirc/lircd'.
Program terminated with signal SIGABRT, Aborted.
#0  0x753f645c in raise () from /lib/arm-linux-gnueabihf/libc.so.6

Thread 12 (Thread 0x6e2c63b0 (LWP 5351)):
#0  0x768320c8 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=1, futex_word=0x70b02dac) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
#1  do_futex_wait (sem=sem@entry=0x70b02dac, abstime=0x0) at sem_waitcommon.c:115
#2  0x7683220c in __new_sem_wait_slow (sem=0x70b02dac, abstime=0x0) at sem_waitcommon.c:282
#3  0x7637ab60 in vchiu_queue_pop () from /opt/vc/lib/libvchiq_arm.so
#4  0x71631d70 in ilcs_task () from /opt/vc/lib/libopenmaxil.so
#5  0x7638ecc4 in vcos_thread_entry (arg=0x70b02c68) at /home/dc4/projects/staging/userland/interface/vcos/pthreads/vcos_pthreads.c:144
#6  0x76828ff4 in start_thread (arg=0x6e2c63b0) at pthread_create.c:335
#7  0x7549bb10 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 11 (Thread 0x6caff3b0 (LWP 5352)):
#0  0x7682f9f8 in __pthread_cond_wait (cond=0x1d81510 <g_OMXImage+496>, mutex=0x1d814f4 <g_OMXImage+468>) at pthread_cond_wait.c:186
#1  0x00ca776c in COMXImage::Process() ()
#2  0x0187c5c4 in CThread::Action() ()
#3  0x0187c860 in CThread::staticThread(void*) ()
#4  0x76828ff4 in start_thread (arg=0x6caff3b0) at pthread_create.c:335
#5  0x7549bb10 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 10 (Thread 0x70aff3b0 (LWP 5346)):
#0  0x7549473c in ioctl () from /lib/arm-linux-gnueabihf/libc.so.6
#1  0x76378010 in completion_thread () from /opt/vc/lib/libvchiq_arm.so
#2  0x7638ecc4 in vcos_thread_entry (arg=0x7638b318 <vchiq_instance+16>) at /home/dc4/projects/staging/userland/interface/vcos/pthreads/vcos_pthreads.c:144
#3  0x76828ff4 in start_thread (arg=0x70aff3b0) at pthread_create.c:335
#4  0x7549bb10 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 9 (Thread 0x6eac63b0 (LWP 5350)):
#0  0x7682f9f8 in __pthread_cond_wait (cond=cond@entry=0x70b02c18, mutex=mutex@entry=0x70b02bfc) at pthread_cond_wait.c:186
#1  0x7638eda8 in _timer_thread (arg=0x70b02bf8) at /home/dc4/projects/staging/userland/interface/vcos/pthreads/vcos_pthreads.c:722
#2  0x76828ff4 in start_thread (arg=0x6eac63b0) at pthread_create.c:335
#3  0x7549bb10 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 8 (Thread 0x714ff3b0 (LWP 5345)):
#0  0x75466e70 in nanosleep () from /lib/arm-linux-gnueabihf/libc.so.6
#1  0x00000000 in ?? ()

Thread 7 (Thread 0x702ff3b0 (LWP 5347)):
#0  0x768320c8 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=1, futex_word=0x763cab60 <dispmanx_notify_available_event+24>) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
#1  do_futex_wait (sem=sem@entry=0x763cab60 <dispmanx_notify_available_event+24>, abstime=0x0) at sem_waitcommon.c:115
#2  0x7683220c in __new_sem_wait_slow (sem=0x763cab60 <dispmanx_notify_available_event+24>, abstime=0x0) at sem_waitcommon.c:282
#3  0x763b4b2c in dispmanx_notify_func () from /opt/vc/lib/libbcm_host.so
#4  0x7638ecc4 in vcos_thread_entry (arg=0x763cb8a0 <dispmanx_notify_task>) at /home/dc4/projects/staging/userland/interface/vcos/pthreads/vcos_pthreads.c:144
#5  0x76828ff4 in start_thread (arg=0x702ff3b0) at pthread_create.c:335
#6  0x7549bb10 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 6 (Thread 0x6d4fe3b0 (LWP 5344)):
#0  0x7682fd94 in __pthread_cond_timedwait (cond=0x2f7d588, mutex=0x2f7d5c0, abstime=0x6d4fdd30) at pthread_cond_timedwait.c:198
#1  0x00630aac in ActiveAE::CActiveAE::Process() ()
#2  0x0187c5c4 in CThread::Action() ()
#3  0x0187c860 in CThread::staticThread(void*) ()
#4  0x76828ff4 in start_thread (arg=0x6d4fe3b0) at pthread_create.c:335
#5  0x7549bb10 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 5 (Thread 0x6faff3b0 (LWP 5348)):
#0  0x768320c8 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=1, futex_word=0x763c9cdc <tvservice_notify_available_event+24>) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
#1  do_futex_wait (sem=sem@entry=0x763c9cdc <tvservice_notify_available_event+24>, abstime=0x0) at sem_waitcommon.c:115
#2  0x7683220c in __new_sem_wait_slow (sem=0x763c9cdc <tvservice_notify_available_event+24>, abstime=0x0) at sem_waitcommon.c:282
#3  0x763b0aa0 in tvservice_notify_func () from /opt/vc/lib/libbcm_host.so
#4  0x7638ecc4 in vcos_thread_entry (arg=0x763c9cf0 <tvservice_notify_task>) at /home/dc4/projects/staging/userland/interface/vcos/pthreads/vcos_pthreads.c:144
#5  0x76828ff4 in start_thread (arg=0x6faff3b0) at pthread_create.c:335
#6  0x7549bb10 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 4 (Thread 0x6c2ff3b0 (LWP 5353)):
#0  0x7682fd94 in __pthread_cond_timedwait (cond=0x6c2fec78, mutex=0x6c2fecb0, abstime=0x6c2febc8) at pthread_cond_timedwait.c:198
#1  0x0187a878 in XbmcThreads::CEventGroup::wait(unsigned int) ()
#2  0x00c705d4 in CRemoteControl::Process() ()
#3  0x0187c5c4 in CThread::Action() ()
#4  0x0187c860 in CThread::staticThread(void*) ()
#5  0x76828ff4 in start_thread (arg=0x6c2ff3b0) at pthread_create.c:335
#6  0x7549bb10 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 3 (Thread 0x6f2ff3b0 (LWP 5349)):
#0  0x768320c8 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=1, futex_word=0x763caa64 <cecservice_notify_available_event+24>) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
#1  do_futex_wait (sem=sem@entry=0x763caa64 <cecservice_notify_available_event+24>, abstime=0x0) at sem_waitcommon.c:115
#2  0x7683220c in __new_sem_wait_slow (sem=0x763caa64 <cecservice_notify_available_event+24>, abstime=0x0) at sem_waitcommon.c:282
#3  0x763b1620 in cecservice_notify_func () from /opt/vc/lib/libbcm_host.so
#4  0x7638ecc4 in vcos_thread_entry (arg=0x763caa78 <cecservice_notify_task>) at /home/dc4/projects/staging/userland/interface/vcos/pthreads/vcos_pthreads.c:144
#5  0x76828ff4 in start_thread (arg=0x6f2ff3b0) at pthread_create.c:335
#6  0x7549bb10 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 2 (Thread 0x71e733b0 (LWP 5342)):
#0  0x75492be0 in poll () from /lib/arm-linux-gnueabihf/libc.so.6
#1  0x00000000 in ?? ()

Thread 1 (Thread 0x71e74000 (LWP 5336)):
#0  0x753f645c in raise () from /lib/arm-linux-gnueabihf/libc.so.6
#1  0x753f7824 in abort () from /lib/arm-linux-gnueabihf/libc.so.6
#2  0x00000020 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
############# END STACK TRACE ###############

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

17:36:36 593.295959 T:1910980608  NOTICE: special://profile/ is mapped to: special://masterprofile/
17:36:36 593.296021 T:1910980608  NOTICE: -----------------------------------------------------------------------
17:36:36 593.296082 T:1910980608  NOTICE: Starting Kodi (16.1 Git:2016-04-24-b08ce71-dirty). Platform: Linux ARM 32-bit
17:36:36 593.296082 T:1910980608  NOTICE: Using Release Kodi x32 build (version for Raspberry Pi)
17:36:36 593.296143 T:1910980608  NOTICE: Kodi compiled Apr 24 2016 by GCC 4.9.2 for Linux ARM 32-bit version 3.16.7 (200711)
17:36:36 593.296265 T:1910980608  NOTICE: Running on Raspbian GNU/Linux stretch/sid stable, kernel: Linux ARM 32-bit version 4.4.38-v7+
17:36:36 593.296265 T:1910980608  NOTICE: FFmpeg statically linked, version: 2.8.6-kodi-release/2.8-xbmc
17:36:36 593.296326 T:1910980608  NOTICE: Host CPU: ARMv7 Processor rev 4 (v7l), 4 cores available
17:36:36 593.296326 T:1910980608  NOTICE: ARM Features: Neon enabled
17:36:36 593.296387 T:1910980608  NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
17:36:36 593.296387 T:1910980608  NOTICE: special://xbmcbin/ is mapped to: /usr/lib/kodi
17:36:36 593.296448 T:1910980608  NOTICE: special://masterprofile/ is mapped to: /home/pi/.kodi/userdata
17:36:36 593.296448 T:1910980608  NOTICE: special://home/ is mapped to: /home/pi/.kodi
17:36:36 593.296509 T:1910980608  NOTICE: special://temp/ is mapped to: /home/pi/.kodi/temp
17:36:36 593.296509 T:1910980608  NOTICE: The executable running is: /usr/lib/kodi/kodi.bin
17:36:36 593.296570 T:1910980608  NOTICE: Local hostname: Seed-RaspberryPi
17:36:36 593.296631 T:1910980608  NOTICE: Log File is located: /home/pi/.kodi/temp/kodi.log
17:36:36 593.296692 T:1910980608  NOTICE: -----------------------------------------------------------------------
17:36:36 593.350952 T:1910980608   ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property CanSuspend
17:36:36 593.351685 T:1910980608   ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property CanHibernate
17:36:36 593.352539 T:1910980608  NOTICE: load settings...
17:36:36 593.442993 T:1910980608  NOTICE: Found 2 Lists of Devices
17:36:36 593.443054 T:1910980608  NOTICE: Enumerated PI devices:
17:36:36 593.443054 T:1910980608  NOTICE:     Device 1
17:36:36 593.443298 T:1910980608  NOTICE:         m_deviceName      : HDMI
17:36:36 593.443298 T:1910980608  NOTICE:         m_displayName     : HDMI
17:36:36 593.443359 T:1910980608  NOTICE:         m_displayNameExtra:
17:36:36 593.443359 T:1910980608  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
17:36:36 593.443420 T:1910980608  NOTICE:         m_channels        : FL,FR
17:36:36 593.443420 T:1910980608  NOTICE:         m_sampleRates     : 8000,11025,16000,22050,24000,32000,44100,48000,88200,96000,176400,192000
17:36:36 593.443481 T:1910980608  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,A​E_FMT_S32NEP,AE_FMT_S16NEP,AE_FMT_AC3,AE_FMT_DTS,AE_FMT_EAC3
17:36:36 593.443481 T:1910980608  NOTICE:     Device 2
17:36:36 593.443542 T:1910980608  NOTICE:         m_deviceName      : Analogue
17:36:36 593.443604 T:1910980608  NOTICE:         m_displayName     : Analogue
17:36:36 593.443604 T:1910980608  NOTICE:         m_displayNameExtra:
17:36:36 593.443665 T:1910980608  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
17:36:36 593.443665 T:1910980608  NOTICE:         m_channels        : FL,FR
17:36:36 593.443665 T:1910980608  NOTICE:         m_sampleRates     : 48000
17:36:36 593.443726 T:1910980608  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP​
17:36:36 593.443726 T:1910980608  NOTICE:     Device 3
17:36:36 593.443787 T:1910980608  NOTICE:         m_deviceName      : Both
17:36:36 593.443848 T:1910980608  NOTICE:         m_displayName     : HDMI and Analogue
17:36:36 593.443848 T:1910980608  NOTICE:         m_displayNameExtra:
17:36:36 593.443909 T:1910980608  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
17:36:36 593.443909 T:1910980608  NOTICE:         m_channels        : FL,FR
17:36:36 593.443970 T:1910980608  NOTICE:         m_sampleRates     : 48000
17:36:36 593.443970 T:1910980608  NOTICE:         m_dataFormats     : AE_FMT_FLOAT,AE_FMT_S32LE,AE_FMT_S16LE,AE_FMT_FLOATP,AE_FMT_S32NEP,AE_FMT_S16NEP​
17:36:36 593.444031 T:1910980608  NOTICE: Enumerated ALSA devices:
17:36:36 593.444031 T:1910980608  NOTICE:     Device 1
17:36:36 593.444092 T:1910980608  NOTICE:         m_deviceName      : @
17:36:36 593.444153 T:1910980608  NOTICE:         m_displayName     : Default (bcm2835 ALSA bcm2835 ALSA)
17:36:36 593.444153 T:1910980608  NOTICE:         m_displayNameExtra:
17:36:36 593.444214 T:1910980608  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
17:36:36 593.444214 T:1910980608  NOTICE:         m_channels        : FL,FR
17:36:36 593.444214 T:1910980608  NOTICE:         m_sampleRates     : 8000,11025,16000,22050,32000,44100,48000
17:36:36 593.444275 T:1910980608  NOTICE:         m_dataFormats     : AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_U8
17:36:36 593.446045 T:1910980608   ERROR: CSettings: unable to load settings from special://masterprofile/guisettings.xml, creating new default settings
17:36:36 593.463745 T:1910980608  NOTICE: Loaded settings file from special://xbmc/system/advancedsettings.xml
17:36:36 593.463989 T:1910980608  NOTICE: Contents of special://xbmc/system/advancedsettings.xml are...
                                            <?xml version="1.0" encoding="UTF-8" ?>
                                            <advancedsettings>
                                              <video>
                                                <defaultplayer>dvdplayer</defaultplayer>
                                                <defaultdvdplayer>dvdplayer</defaultdvdplayer>
                                                <subsdelayrange>120</subsdelayrange>
                                                <busydialogdelayms>750</busydialogdelayms>
                                              </video>
                                              <fanartres>720</fanartres>
                                              <imageres>540</imageres>
                                              <samba>
                                                <clienttimeout>30</clienttimeout>
                                              </samba>
                                              <network>
                                                <readbufferfactor>4.0</readbufferfactor>
                                                <cachemembuffersize>31457280</cachemembuffersize>
                                              </network>
                                              <gui>
                                                <algorithmdirtyregions>3</algorithmdirtyregions>
                                                <nofliptimeout>0</nofliptimeout>
                                              </gui>
                                              <splash>false</splash>
                                            </advancedsettings>
17:36:36 593.465210 T:1910980608  NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
17:36:36 593.465271 T:1910980608  NOTICE: Default DVD Player: dvdplayer
17:36:36 593.465271 T:1910980608  NOTICE: Default Video Player: dvdplayer
17:36:36 593.465332 T:1910980608  NOTICE: Default Audio Player: paplayer
17:36:36 593.465332 T:1910980608  NOTICE: Disabled debug logging due to GUI setting. Level 0.
17:36:36 593.465393 T:1910980608  NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
17:36:36 593.465576 T:1910980608  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
17:36:36 593.466248 T:1910980608  NOTICE: Loaded playercorefactory configuration
17:36:36 593.466431 T:1910980608  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
17:36:36 593.466553 T:1910980608  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
17:36:40 598.224182 T:1910980608  NOTICE: ADDONS: Using repository repository.xbmc.org
17:36:40 598.224304 T:1910980608  NOTICE: ADDONS: Using repository repository.popcornmix
17:36:41 598.278503 T:1910980608  NOTICE: Raspberry PI firmware version: Dec  9 2016 15:11:26
                                            Copyright (c) 2012 Broadcom
                                            version 2e557d8dac70add28597c3b449cb52c34588d818 (clean) (release)
17:36:41 598.278625 T:1910980608  NOTICE: ARM mem: 880MB GPU mem: 128MB MPG2:0 WVC1:0
17:36:41 598.278687 T:1910980608  NOTICE: cacheMemBufferSize: 30MB
17:36:41 598.278931 T:1910980608  NOTICE: Config:
                                            arm_freq=1400
                                            audio_pwm_mode=1
                                            config_hdmi_boost=5
                                            core_freq=500
                                            desired_osc_freq=0x36ee80
                                            disable_commandline_tags=2
                                            disable_l2cache=1
                                            force_eeprom_read=1
                                            force_pwm_open=1
                                            framebuffer_ignore_alpha=1
                                            framebuffer_swap=1
                                            gpu_freq=300
                                            hdmi_channel_map=8
                                            hdmi_force_cec_address=65535
                                            hdmi_force_hotplug=1
                                            hdmi_group=1
                                            hdmi_mode=16
                                            init_uart_clock=0x2dc6c00
                                            lcd_framerate=60
                                            mask_gpu_interrupt0=1024
                                            mask_gpu_interrupt1=26370
                                            over_voltage=4
                                            over_voltage_avs=0x10c8e
                                            over_voltage_sdram_p=2
                                            overscan_scale=1
                                            pause_burst_frames=1
                                            program_serial_random=1
                                            sdram_freq=500
                                            temp_limit=85
17:36:41 598.278992 T:1910980608  NOTICE: Config:
                                            device_tree=-
17:36:41 598.279053 T:1910980608  NOTICE: InitWindowSystem: Using EGL Implementation: raspberrypi

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

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