Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Kodi can no longer be started using startx
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
redcap
n00b
n00b


Joined: 10 Jul 2010
Posts: 40

PostPosted: Sat Jul 06, 2024 12:36 am    Post subject: [SOLVED] Kodi can no longer be started using startx Reply with quote

Hi there,

I have computer that I mostly use as a server. Every once in while I use it as a media center and to that end I have Kodi installed. It seems that some update in the past few weeks has broken my setup . I wasn't able to start Kodi anymore. Working through the Xserver logs, I noticed some errors which I was able to fix by re-configuring and re-compiling my kernel.

I have verfied that the Xserver is working by

Code:

emerge -1av xclock xterm twm


and invoking startx without a custom .xinitrx. This works without a problem.

However I am unable to start Kodi in that way.

The contents of my ~/.xinitrc atm are:

Code:

exec kodi >> ~/foo.log 2>&1


Invoking startx starts the X-server but immediately shuts it down after a fraction of a second.

The Xorg log file can be found here:
https://bpa.st/4KHA

foo.log contains a single line

Code:

ERROR: Unable to create GUI. Exiting


The Kodi log file (~/.kodi/temp/kodi.log) gives more information:

Code:

2024-07-06 01:38:32.536 T:12544    info <general>: -----------------------------------------------------------------------
2024-07-06 01:38:32.536 T:12544    info <general>: Starting Kodi (21.0 (21.0.0) Git:20240606-nogitfound). Platform: Linux x86 64-bit
2024-07-06 01:38:32.536 T:12544    info <general>: Using Release Kodi x64
2024-07-06 01:38:32.536 T:12544    info <general>: Kodi compiled 2024-06-06 by GCC 13.2.1 for Linux x86 64-bit version 6.6.0 (394752)
2024-07-06 01:38:32.536 T:12544    info <general>: Running on Gentoo Linux 2.15, kernel: Linux x86 64-bit version 6.6.30-gentoo
2024-07-06 01:38:32.536 T:12544    info <general>: FFmpeg version/source: 6.1.1
2024-07-06 01:38:32.536 T:12544    info <general>: Host CPU: Intel(R) Core(TM) i5-4670T CPU @ 2.30GHz, 4 cores available
2024-07-06 01:38:32.536 T:12544    info <general>: special://xbmc/ is mapped to: /usr/share/kodi
2024-07-06 01:38:32.536 T:12544    info <general>: special://xbmcbin/ is mapped to: /usr/lib64/kodi
2024-07-06 01:38:32.536 T:12544    info <general>: special://xbmcbinaddons/ is mapped to: /usr/lib64/kodi/addons
2024-07-06 01:38:32.536 T:12544    info <general>: special://masterprofile/ is mapped to: /home/gwydion/.kodi/userdata
2024-07-06 01:38:32.536 T:12544    info <general>: special://envhome/ is mapped to: /home/gwydion
2024-07-06 01:38:32.536 T:12544    info <general>: special://home/ is mapped to: /home/gwydion/.kodi
2024-07-06 01:38:32.536 T:12544    info <general>: special://temp/ is mapped to: /home/gwydion/.kodi/temp
2024-07-06 01:38:32.536 T:12544    info <general>: special://logpath/ is mapped to: /home/gwydion/.kodi/temp
2024-07-06 01:38:32.536 T:12544    info <general>: Webserver extra whitelist paths:
2024-07-06 01:38:32.536 T:12544    info <general>: The executable running is: /usr/lib64/kodi/kodi-gbm
2024-07-06 01:38:32.536 T:12544    info <general>: Local hostname: parzival
2024-07-06 01:38:32.536 T:12544    info <general>: Log File is located: /home/gwydion/.kodi/temp/kodi.log
2024-07-06 01:38:32.536 T:12544    info <general>: -----------------------------------------------------------------------
2024-07-06 01:38:32.536 T:12544    info <general>: loading settings
2024-07-06 01:38:32.536 T:12544    info <general>: special://profile/ is mapped to: special://masterprofile/
2024-07-06 01:38:32.543 T:12544    info <general>: No settings file to load (special://xbmc/system/advancedsettings.xml)
2024-07-06 01:38:32.544 T:12544    info <general>: No settings file to load (special://masterprofile/advancedsettings.xml)
2024-07-06 01:38:32.544 T:12544    info <general>: Default Video Player: VideoPlayer
2024-07-06 01:38:32.544 T:12544    info <general>: Default Audio Player: paplayer
2024-07-06 01:38:32.544 T:12544    info <general>: Disabled debug logging due to GUI setting. Level 0.
2024-07-06 01:38:32.544 T:12544    info <general>: Log level changed to "info"
2024-07-06 01:38:32.544 T:12544    info <general>: CMediaSourceSettings: loading media sources from special://masterprofile/sources.xml
2024-07-06 01:38:32.546 T:12544    info <general>: New Cache GUI Settings (replacement of cache in advancedsettings.xml) are:
                                                     Buffer Mode: 4
                                                     Memory Size: 20 MB
                                                     Read Factor: 4.00 x
                                                     Chunk Size : 131072 bytes
2024-07-06 01:38:32.546 T:12544    info <general>: creating subdirectories
2024-07-06 01:38:32.546 T:12544    info <general>: userdata folder: special://masterprofile/
2024-07-06 01:38:32.546 T:12544    info <general>: recording folder:
2024-07-06 01:38:32.546 T:12544    info <general>: screenshots folder:
2024-07-06 01:38:32.547 T:12544    info <general>: Running database version Addons33
2024-07-06 01:38:32.547 T:12544   error <general>: GetDirectory - Error getting /usr/lib64/kodi/addons
2024-07-06 01:38:32.547 T:12544   error <general>: GetDirectory - Error getting special://xbmcbin/addons
2024-07-06 01:38:32.557 T:12544 warning <general>: CAddonMgr::FindAddons: Addon 'repository.xbmc.org' already present with higher version 3.4.0 at '/usr/share/kodi/addons/repository.xbmc.org/' - other version 2.1.34 at '/home/gwydion/.kodi/addons/repository.xbmc.org/' will be ignored
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: audioencoder.kodi.builtin.aac v1.0.2 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: audioencoder.kodi.builtin.wma v1.0.2 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: game.controller.default v1.0.42 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: game.controller.keyboard v1.1.40 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: game.controller.mouse v1.0.26 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: game.controller.snes v1.0.40 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: kodi.binary.global.audioengine v1.1.1 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: kodi.binary.global.filesystem v1.1.8 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: kodi.binary.global.general v1.0.5 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: kodi.binary.global.gui v5.15.0 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: kodi.binary.global.main v2.0.2 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: kodi.binary.global.network v1.0.4 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: kodi.binary.global.tools v1.0.4 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: kodi.binary.instance.audiodecoder v4.0.0 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: kodi.binary.instance.audioencoder v3.0.0 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: kodi.binary.instance.game v3.0.2 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: kodi.binary.instance.imagedecoder v3.0.1 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: kodi.binary.instance.inputstream v3.3.0 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: kodi.binary.instance.peripheral v3.0.2 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: kodi.binary.instance.pvr v8.3.0 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: kodi.binary.instance.screensaver v2.2.0 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: kodi.binary.instance.vfs v3.0.1 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: kodi.binary.instance.videocodec v2.1.0 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: kodi.binary.instance.visualization v4.0.0 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: kodi.resource v1.0.0 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: metadata.album.universal v3.1.9 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: metadata.artists.universal v4.3.11 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: metadata.common.allmusic.com v3.2.2 installed
2024-07-06 01:38:32.565 T:12544    info <general>: CAddonMgr::FindAddons: metadata.common.amazon.de v1.0.4 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: metadata.common.fanart.tv v3.6.4 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: metadata.common.hdtrailers.net v2.0.5 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: metadata.common.htbackdrops.com v1.3.4 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: metadata.common.imdb.com v3.2.8 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: metadata.common.last.fm v1.6.2 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: metadata.common.musicbrainz.org v2.2.4 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: metadata.common.theaudiodb.com v2.0.3 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: metadata.common.themoviedb.org v3.2.19 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: metadata.generic.albums v1.0.18 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: metadata.generic.artists v1.0.18 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: metadata.local v1.0.1 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: metadata.musicvideos.theaudiodb.com v1.2.9 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: metadata.themoviedb.org v5.3.0 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: metadata.themoviedb.org.python v3.0.1 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: metadata.tvdb.com v3.3.0 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: metadata.tvshows.themoviedb.org v3.6.0 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: metadata.tvshows.themoviedb.org.python v1.6.6 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: plugin.video.mms v4.1.0 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: plugin.video.youtube v6.8.25+matrix.1 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: repository.xbmc.org v3.4.0 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: resource.images.weathericons.default v1.1.9 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: resource.language.en_gb v2.0.2 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: resource.uisounds.kodi v1.0.1 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: screensaver.xbmc.builtin.black v1.0.34 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: screensaver.xbmc.builtin.dim v1.0.66 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: script.common.plugin.cache v3.0.0 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: script.module.certifi v2023.5.7 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: script.module.chardet v5.1.0 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: script.module.idna v3.4.0 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: script.module.parsedom v2.5.2 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: script.module.pil v5.1.0 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: script.module.pycryptodome v3.4.3 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: script.module.requests v2.31.0 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: script.module.routing v0.2.3+matrix.1 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: script.module.simple.downloader v1.9.5 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: script.module.simplejson v3.19.1+matrix.1 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: script.module.six v1.16.0+matrix.1 installed
2024-07-06 01:38:32.566 T:12544    info <general>: CAddonMgr::FindAddons: script.module.urllib3 v2.1.0 installed
2024-07-06 01:38:32.567 T:12544    info <general>: CAddonMgr::FindAddons: service.xbmc.versioncheck v0.5.30+matrix.1 installed
2024-07-06 01:38:32.567 T:12544    info <general>: CAddonMgr::FindAddons: skin.estuary v4.0.0 installed
2024-07-06 01:38:32.567 T:12544    info <general>: CAddonMgr::FindAddons: weather.wunderground v3.0.9 installed
2024-07-06 01:38:32.567 T:12544    info <general>: CAddonMgr::FindAddons: webinterface.arch v2.0.5 installed
2024-07-06 01:38:32.567 T:12544    info <general>: CAddonMgr::FindAddons: webinterface.chorus v0.3.10 installed
2024-07-06 01:38:32.567 T:12544    info <general>: CAddonMgr::FindAddons: webinterface.default v19.x-2.4.8 installed
2024-07-06 01:38:32.567 T:12544    info <general>: CAddonMgr::FindAddons: xbmc.addon v21.0.0 installed
2024-07-06 01:38:32.567 T:12544    info <general>: CAddonMgr::FindAddons: xbmc.core v0.1.0 installed
2024-07-06 01:38:32.567 T:12544    info <general>: CAddonMgr::FindAddons: xbmc.gui v5.17.0 installed
2024-07-06 01:38:32.567 T:12544    info <general>: CAddonMgr::FindAddons: xbmc.json v13.5.0 installed
2024-07-06 01:38:32.567 T:12544    info <general>: CAddonMgr::FindAddons: xbmc.metadata v2.1.0 installed
2024-07-06 01:38:32.567 T:12544    info <general>: CAddonMgr::FindAddons: xbmc.python v3.0.1 installed
2024-07-06 01:38:32.567 T:12544    info <general>: CAddonMgr::FindAddons: xbmc.webinterface v1.0.0 installed
2024-07-06 01:38:32.568 T:12544    info <general>: CKeyboardLayoutManager: loading keyboard layouts from special://xbmc/system/keyboardlayouts...
2024-07-06 01:38:32.569 T:12544 warning <general>: CKeyboardLayoutManager: unable to open special://xbmc/system/keyboardlayouts/persian.xml
2024-07-06 01:38:32.575 T:12544   error <general>: open_restricted - failed to open /dev/input/event1 (Permission denied)
2024-07-06 01:38:32.575 T:12544   error <general>: open_restricted - failed to open /dev/input/event2 (Permission denied)
2024-07-06 01:38:32.575 T:12544   error <general>: open_restricted - failed to open /dev/input/event0 (Permission denied)
2024-07-06 01:38:32.575 T:12544   error <general>: open_restricted - failed to open /dev/input/event4 (Permission denied)
2024-07-06 01:38:32.575 T:12544   error <general>: open_restricted - failed to open /dev/input/event5 (Permission denied)
2024-07-06 01:38:32.575 T:12544   error <general>: open_restricted - failed to open /dev/input/event6 (Permission denied)
2024-07-06 01:38:32.575 T:12544   error <general>: open_restricted - failed to open /dev/input/event3 (Permission denied)
2024-07-06 01:38:32.576 T:12544   error <general>: open_restricted - failed to open /dev/input/event7 (Permission denied)
2024-07-06 01:38:32.583 T:12544    info <general>: RetroPlayer[RENDER]: Registering renderer factory for DMA
2024-07-06 01:38:32.583 T:12544    info <general>: RetroPlayer[RENDER]: Registering renderer factory for OpenGL
2024-07-06 01:38:32.784 T:12544 critical <general>: CApplication::CreateGUI - unable to init windowing system
2024-07-06 01:38:32.784 T:12544    info <general>: Stopping the application...
2024-07-06 01:38:32.784 T:12544    info <general>: Stopping player
2024-07-06 01:38:32.784 T:12544    info <general>: Storing total System Uptime
2024-07-06 01:38:32.784 T:12544    info <general>: Saving settings
2024-07-06 01:38:32.786 T:12544    info <general>: Saving skin settings
2024-07-06 01:38:32.786 T:12544    info <general>: Stopping all
2024-07-06 01:38:32.786 T:12544    info <general>: Application stopped
2024-07-06 01:38:32.986 T:12544    info <general>: unload skin
2024-07-06 01:38:32.986 T:12544    info <general>: Unloaded skin
2024-07-06 01:38:32.986 T:12544    info <general>: unload sections


So there seem to be some issues with file permissions along with this line

Code:

2024-07-06 01:38:32.784 T:12544 critical <general>: CApplication::CreateGUI - unable to init windowing system


I'm using the `default/linux/amd64/23.0/split-usr (stable)` profile.
Does anyone have any idea about the proper way to resolve these issues?

Thanks in advance for your efforts!


Last edited by redcap on Sat Jul 06, 2024 12:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
redcap
n00b
n00b


Joined: 10 Jul 2010
Posts: 40

PostPosted: Sat Jul 06, 2024 12:05 pm    Post subject: Reply with quote

Ah, never-mind. I was able to solve the problem a few hours later. Apparently, the USE flags for kodi changed some time ago. Activating the X useflag again solved the issue for me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum