Iniciando xbmc falha com a TV conectada, “incapaz de criar GUI”

1

Eu tenho um Banana Pi com Bananian em execução. Eu instalei xbmc nele. Quando conecto meu Banana Pi à minha TV com um cabo HDMI, ele mostra um TTY como esperado. Quando tento executar xinit /usr/bin/xbmc --standalone de uma sessão PuTTY , recebo este erro:

ERROR: Unable to create GUI. Exiting
Segmentation fault (core dumped)

Relatório de falhas:

############## XBMC CRASH LOG ###############

################ SYSTEM INFO ################
 Date: Wed Sep  9 13:31:03 CEST 2015
 XBMC Options:
 Arch: armv7l
 Kernel: Linux 3.4.108-bananian #2 SMP PREEMPT Thu Aug 13 06:08:25 UTC 2015
 Release: Debian GNU/Linux 8 (jessie)
############## END SYSTEM INFO ##############

############### STACK TRACE #################
gdb not installed, can't get stack trace.
############# END STACK TRACE ###############

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

13:31:02 T:3000336384  NOTICE: special://profile/ is mapped to: special://masterprofile/
13:31:02 T:3000336384  NOTICE: -----------------------------------------------------------------------
13:31:02 T:3000336384  NOTICE: Starting XBMC from Debian (13.2 Debian package version:2:13.2+dfsg1-4). Platform: ARM (Thumb) Linux 32-bit
13:31:02 T:3000336384  NOTICE: Using Debug XBMC x32 build, compiled Nov  8 2014 by GCC 4.9.2 for ARM (Thumb) Linux 32-bit 3.16.5
13:31:02 T:3000336384  NOTICE: Running on Linux 32-bit (Debian GNU/Linux 8 (jessie), 3.4.108-bananian armv7l)
13:31:02 T:3000336384  NOTICE: Host CPU: ARMv7 Processor rev 4 (v7l), 2 cores available
13:31:02 T:3000336384  NOTICE: ARM Features: Neon enabled
13:31:02 T:3000336384  NOTICE: special://xbmc/ is mapped to: /usr/share/xbmc
13:31:02 T:3000336384  NOTICE: special://xbmcbin/ is mapped to: /usr/lib/xbmc
13:31:02 T:3000336384  NOTICE: special://masterprofile/ is mapped to: /root/.xbmc/userdata
13:31:02 T:3000336384  NOTICE: special://home/ is mapped to: /root/.xbmc
13:31:02 T:3000336384  NOTICE: special://temp/ is mapped to: /root/.xbmc/temp
13:31:02 T:3000336384  NOTICE: The executable running is: /usr/lib/xbmc/xbmc.bin
13:31:02 T:3000336384  NOTICE: Local hostname: peter
13:31:02 T:3000336384  NOTICE: Log File is located: /root/.xbmc/temp/xbmc.log
13:31:02 T:3000336384  NOTICE: -----------------------------------------------------------------------
13:31:02 T:3000336384   DEBUG: ConsoleKit.Manager: org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.ConsoleKit was not provided by any .service files
13:31:02 T:3000336384   DEBUG: Previous line repeats 1 times.
13:31:02 T:3000336384   DEBUG: DeviceKit.Power: org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.DeviceKit.Disks was not provided by any .service files
13:31:02 T:3000336384    INFO: Selected UPower as PowerSyscall
13:31:02 T:3000336384   ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property CanSuspend
13:31:02 T:3000336384   ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property CanHibernate
13:31:02 T:3000336384  NOTICE: load settings...
13:31:02 T:3000336384   DEBUG: CSettings: loaded settings definition from special://xbmc/system/settings/settings.xml
13:31:02 T:3000336384   DEBUG: CSettings: loaded settings definition from special://xbmc/system/settings/linux.xml
13:31:02 T:3000336384   ERROR: PulseAudio: Failed to connect context
13:31:02 T:3000336384  NOTICE: PulseAudio might not be running. Context was not created.
13:31:02 T:3000336384    INFO: CAESinkALSA - Unable to open device "surround71" for playback
13:31:02 T:3000336384    INFO: CAESinkALSA - Unable to open device "surround51" for playback
13:31:02 T:3000336384    INFO: CAESinkALSA - Unable to open device "surround71" for playback
13:31:02 T:3000336384    INFO: CAESinkALSA - Unable to open device "surround40" for playback
13:31:02 T:3000336384    INFO: CAESinkALSA - Unable to open device "surround51" for playback
13:31:02 T:3000336384    INFO: CAESinkALSA - Unable to open device "surround71" for playback
13:31:02 T:3000336384  NOTICE: Found 1 Lists of Devices
13:31:02 T:3000336384  NOTICE: Enumerated ALSA devices:
13:31:02 T:3000336384  NOTICE:     Device 1
13:31:02 T:3000336384  NOTICE:         m_deviceName      : @
13:31:02 T:3000336384  NOTICE:         m_displayName     : Default (sunxi-CODEC sunxi PCM)
13:31:02 T:3000336384  NOTICE:         m_displayNameExtra:
13:31:02 T:3000336384  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
13:31:02 T:3000336384  NOTICE:         m_channels        : FL,FR
13:31:02 T:3000336384  NOTICE:         m_sampleRates     : 8000,11025,16000,22050,32000,44100,48000,96000,192000
13:31:02 T:3000336384  NOTICE:         m_dataFormats     : AE_FMT_S16NE,AE_FMT_S16LE
13:31:02 T:3000336384  NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml)
13:31:02 T:3000336384  NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
13:31:02 T:3000336384  NOTICE: Default DVD Player: dvdplayer
13:31:02 T:3000336384  NOTICE: Default Video Player: dvdplayer
13:31:02 T:3000336384  NOTICE: Default Audio Player: paplayer
13:31:02 T:3000336384  NOTICE: Disabled debug logging due to GUI setting. Level 0.
13:31:02 T:3000336384  NOTICE: Log level changed to 0
13:31:02 T:3000336384  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
13:31:02 T:3000336384   DEBUG: CPlayerCoreConfig::<ctor>: created player DVDPlayer for core 1
13:31:02 T:3000336384   DEBUG: CPlayerCoreConfig::<ctor>: created player oldmplayercore for core 1
13:31:02 T:3000336384   DEBUG: CPlayerCoreConfig::<ctor>: created player PAPlayer for core 3
13:31:02 T:3000336384   DEBUG: CPlayerSelectionRule::Initialize: creating rule: system rules
13:31:02 T:3000336384   DEBUG: CPlayerSelectionRule::Initialize: creating rule: rtv
13:31:02 T:3000336384   DEBUG: CPlayerSelectionRule::Initialize: creating rule: hdhomerun/myth/mms/udp
13:31:02 T:3000336384   DEBUG: CPlayerSelectionRule::Initialize: creating rule: lastfm/shout
13:31:02 T:3000336384   DEBUG: CPlayerSelectionRule::Initialize: creating rule: rtmp
13:31:02 T:3000336384   DEBUG: CPlayerSelectionRule::Initialize: creating rule: rtsp
13:31:02 T:3000336384   DEBUG: CPlayerSelectionRule::Initialize: creating rule: streams
13:31:02 T:3000336384   DEBUG: CPlayerSelectionRule::Initialize: creating rule: aacp/sdp
13:31:02 T:3000336384   DEBUG: CPlayerSelectionRule::Initialize: creating rule: mp2
13:31:02 T:3000336384   DEBUG: CPlayerSelectionRule::Initialize: creating rule: dvd
13:31:02 T:3000336384   DEBUG: CPlayerSelectionRule::Initialize: creating rule: dvdimage
13:31:02 T:3000336384   DEBUG: CPlayerSelectionRule::Initialize: creating rule: sdp/asf
13:31:02 T:3000336384   DEBUG: CPlayerSelectionRule::Initialize: creating rule: nsv
13:31:02 T:3000336384   DEBUG: CPlayerSelectionRule::Initialize: creating rule: radio
13:31:02 T:3000336384  NOTICE: Loaded playercorefactory configuration
13:31:02 T:3000336384  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
13:31:02 T:3000336384  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
13:31:02 T:3000336384    INFO: creating subdirectories
13:31:02 T:3000336384    INFO: userdata folder: special://masterprofile/
13:31:02 T:3000336384    INFO: recording folder:
13:31:02 T:3000336384    INFO: screenshots folder:
13:31:02 T:3000336384    INFO: load language info file: special://xbmc/language/English/langinfo.xml
13:31:02 T:3000336384   DEBUG: trying to set locale to en_US.UTF-8
13:31:02 T:3000336384    INFO: global locale set to en_US.UTF-8
13:31:02 T:3000336384    INFO: load English language file, from path: special://xbmc/language/
13:31:02 T:3000336384   DEBUG: POParser: loaded 3162 strings from file /usr/share/xbmc/language/English/strings.po
13:31:02 T:3000336384   DEBUG: DllAvUtilBase: Using libavutil system library
13:31:02 T:3000336384   DEBUG: DllAvCodec: Using libavcodec system library
13:31:02 T:3000336384   DEBUG: DllAvFormat: Using libavformat system library
13:31:02 T:2931606432  NOTICE: Thread ActiveAE start, auto delete: false
13:31:02 T:2921329568  NOTICE: Thread AESink start, auto delete: false
13:31:02 T:2921329568    INFO: CActiveAESink::OpenSink - initialize sink
13:31:02 T:2921329568   DEBUG: CActiveAESink::OpenSink - trying to open device ALSA:@
13:31:02 T:2921329568   DEBUG: CAESinkALSA::GetChannelLayout - Input Channel Count: 2 Output Channel Count: 2
13:31:02 T:2921329568   DEBUG: CAESinkALSA::GetChannelLayout - Requested Layout: FL,FR
13:31:02 T:2921329568   DEBUG: CAESinkALSA::GetChannelLayout - Got Layout: FL,FR
13:31:02 T:2921329568    INFO: CAESinkALSA::Initialize - Attempting to open device "@"
13:31:02 T:2921329568    INFO: CAESinkALSA::Initialize - Opened device "sysdefault"
13:31:02 T:2921329568    INFO: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
13:31:02 T:2921329568    INFO: CAESinkALSA::InitializeHW - Using data format AE_FMT_S16NE
13:31:02 T:2921329568   DEBUG: CAESinkALSA::InitializeHW - Request: periodSize 2048, bufferSize 8192
13:31:02 T:2921329568   DEBUG: CAESinkALSA::InitializeHW - Got: periodSize 2048, bufferSize 8192
13:31:02 T:2921329568   DEBUG: CAESinkALSA::InitializeHW - Setting timeout to 186 ms
13:31:02 T:2921329568   DEBUG: CAESinkALSA::GetChannelLayout - Input Channel Count: 2 Output Channel Count: 2
13:31:02 T:2921329568   DEBUG: CAESinkALSA::GetChannelLayout - Requested Layout: FL,FR
13:31:02 T:2921329568   DEBUG: CAESinkALSA::GetChannelLayout - Got Layout: FL,FR
13:31:02 T:2921329568   DEBUG: CActiveAESink::OpenSink - ALSA Initialized:
13:31:02 T:2921329568   DEBUG:   Output Device : Default (sunxi-CODEC sunxi PCM)
13:31:02 T:2921329568   DEBUG:   Sample Rate   : 44100
13:31:02 T:2921329568   DEBUG:   Sample Format : AE_FMT_S16NE
13:31:02 T:2921329568   DEBUG:   Channel Count : 2
13:31:02 T:2921329568   DEBUG:   Channel Layout: FL,FR
13:31:02 T:2921329568   DEBUG:   Frames        : 2048
13:31:02 T:2921329568   DEBUG:   Frame Samples : 4096
13:31:02 T:2921329568   DEBUG:   Frame Size    : 4
13:31:02 T:2931606432   DEBUG: DllAvUtilBase: Using libavutil system library
13:31:02 T:2931606432   DEBUG: DllAvFormat: Using libswresample system library
13:31:02 T:3000336384  NOTICE: Running database version Addons16
13:31:02 T:3000336384   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/libcpluff-arm.so)
13:31:02 T:3000336384   DEBUG: Loading: /usr/lib/xbmc/system/libcpluff-arm.so
13:31:03 T:3000336384    INFO: ADDON: cpluff: 'Could not read plug-in directory /usr/lib/xbmc/addons: No such file or directory'
13:31:03 T:3000336384  NOTICE: ADDONS: Using repository repository.xbmc.org
13:31:03 T:3000336384    INFO: LIRC Initialize: using: /dev/lircd
13:31:03 T:3000336384    INFO: LIRC Initialize: connect failed: No such file or directory
13:31:03 T:3000336384   DEBUG: Failed to connect to LIRC. Retry in 10s.
13:31:03 T:3000336384   DEBUG: LoadMappings - loaded node "Motorola Nyxboard Hybrid"
13:31:03 T:3000336384   DEBUG: LoadMappings - loaded node "CEC Adapter"
13:31:03 T:3000336384   DEBUG: LoadMappings - loaded node "Pulse-Eight CEC Adapter"
13:31:03 T:3000336384   DEBUG: LoadMappings - loaded node "iMON HID device"
13:31:03 T:3000336384   DEBUG: CPeripheralBusUSB - initialised udev monitor
13:31:03 T:3000336384   DEBUG: SECTION:LoadDLL(libcec.so.2)
13:31:03 T:3000336384   DEBUG: Loading: libcec.so.2
13:31:03 T:3000336384   ERROR: Unable to load libcec.so.2, reason: libcec.so.2: cannot open shared object file: No such file or directory
13:31:03 T:3000336384   DEBUG: Dll libcec.so.2 was not found in path
13:31:03 T:3000336384   ERROR: Initialise - failed to initialise bus cec
13:31:03 T:2910843808  NOTICE: Thread PeripBusUSBUdev start, auto delete: false
13:31:03 T:3000336384   DEBUG: UDisks: org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UDisks was not provided by any .service files
13:31:03 T:3000336384   DEBUG: DeviceKit.Disks: org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.DeviceKit.Disks was not provided by any .service files
13:31:03 T:3000336384   DEBUG: Selected UDev as storage provider
13:31:03 T:3000336384   ERROR: InitWindowSystem: Could not initialize
13:31:03 T:3000336384   FATAL: CApplication::Create: Unable to init windowing system
13:31:03 T:3000336384   DEBUG: PVRManager - destroyed

O que está causando esse erro e como posso corrigir isso?

A propósito, posso executar startxfce4 e obter a XFCE GUI na minha TV.

Atualização: Eu tentei executar xbmc dentro de KDE e Xfce e ainda recebo o mesmo erro.

    
por Peter 09.09.2015 / 13:36

1 resposta

1

Você tem a seguinte linha:

13:31:03 T:3000336384 FATAL: CApplication::Create: Unable to init windowing system

Isso parece sugerir que a chamada Xbmc independente não consegue iniciar um ambiente gráfico.

Você pode tentar o seguinte caminho alternativo:

  1. Inicie o Xfce4;

  2. crie um ícone de inicialização para o Xbmc na sua área de trabalho ou no seu painel.

  3. inicie o Xbmc agora a partir do ícone de inicialização, isto é, com o ambiente gráfico já iniciado.

Isto é o que eu faço sob o Debian e o KDE (não um RPI, no entanto). E, só por diversão, descobri que o CuBoxTV , com o Xbmc / Kodi pré-instalado, é uma alternativa muito superior, e vale a pena cada penny custa mais do que um RPI.

Editar:

se você quiser executar Xbmc automaticamente quando ativar o Xfce4, basta colocar um arquivo executável em /etc/X11/Xsession.d chamado 99zz para que seja executado por último, com o seguinte conteúdo:

  #!/bin/bash
  /usr/bin/xbmc &

e você está feito.

    
por 09.09.2015 / 13:54

Tags