Flac won’t play, or crashes Kodi

I have Kodi 17 RC4 on my Android tablet and everything seems to work except Flac audio, any file with Flac will either not play at all or crash Kodi. DTS-MA works TrueHD works x265 10bit works, but very slow... Why flac doesn't work?

Segmentation Fault Error in Debian Jessie

Hi all,

After successfully building kodi using below method (modified to install Jarvis):
https://wiki.debian.org/KodiBuildingFromSource

I found out that kodi experiencing crash after some second when it launched

Code:
~$ /opt/bin/kodi
Failed to open BO for returned DRI2 buffer (1366x768, dri2 back buffer, named 20).
This is likely a bug in the X Server that will lead to a crash soon.
Segmentation fault (core dumped)
Crash report available at /home/xxx/kodi_crashlog-20170128_090428.log
http://pastebin.com/c2HMe7fG

Below are link that has similar problem as above:
http://forum.kodi.tv/showthread.php?tid=213689

However, I can't found anu xorg configuration file in my desktop especially in the given root folder

kodi 16.1, duplicate albums

Kodi 16.1 showing duplicate albums when tags are identical wrt Album, Album Artist, Artist names, year, and picture. I've cleaned up my collection with easytag. Actually I've cleaned them up and added an album cover. It passes what I think is a sani...

Password For Single Login ONLY

How do i make it so one of my two profiles requires password to login? Whenever i try and set it to do that, then all of a sudden i am being asked for a password for everything that i do (login to my other profile, make changes to sources). i can't see...

JSON-RPC play of smart playlists crashes Kodi

I'm using the yatse remote control interface and I select random playlist using the spotify plugin. The Json-RPC webserver crashes and I am no longer able to connect to the kodi instance without reboot. Here is what I see in the debug log: 16:29:33...

KEY_STOP not resolving to keyname stop

Hello,
I've been poking around the source code trying to figure out what is going on here.
Not using LIRC (note, i couldn't type the real command in this case because cloudflare was marking it as an attack!)

Code:
[kodiuser@kodiarch ~]$ pee-ess aux | grep lirc
kodiuser   786  0.0  0.0  10756  2216 pts/4    S+   17:38   0:00 grep lirc
[kodiuser@kodiarch ~]$

Have keymap loaded, button press is seen as KEY_STOP by both ir-keytable -t and showkeys
Code:
sudo ir-keytable -t
Testing events. Please, press CTRL-C to abort.
1485567603.504710: event type EV_MSC(0x04): scancode = 0x84747c
1485567603.504710: event type EV_KEY(0x01) key_down: KEY_STOP(0x0080)
1485567603.504710: event type EV_SYN(0x00).
...
...
[kodiuser@kodiarch ~]$ sudo showkey
kb mode was ?UNKNOWN?
[ if you are trying this under X, it might not work
since the X server is also reading /dev/console ]

press any key (program terminates 10s after last keypress)...
keycode 128 press
keycode 128 release
[kodiuser@kodiarch ~]$

This looks correct based on https://git.kernel.org/cgit/linux/kernel.../v4.10-rc5
Code:
#define KEY_STOP 128 /* AC Stop */

In Kodi, it seems that there are two look up tables, one to go from linux key to xbmc key (sym, i think?), here: https://github.com/xbmc/xbmc/blob/master...evices.cpp
Code:
xbmc/input/linux/LinuxInputDevices.cpp:  { KEY_STOP          , XBMCK_MEDIA_STOP  },

and then one to take the xbmc key (sym) and translate it into a 'keyname' here https://github.com/xbmc/xbmc/blob/master...ytable.cpp
Code:
xbmc/input/XBMC_keytable.cpp:, { XBMCK_MEDIA_STOP,             0,    0, XBMCVK_MEDIA_STOP,          "stop" }

However, the lookup doesn't appear to complete successfully- the assigned keyname shown in Kodi log is '0':
Code:
17:54:21 T:140491042502144   DEBUG: Keyboard: scancode: 0x88, sym: 0xff69, unicode: 0x0000, modifier: 0x0
17:54:21 T:140491042502144   DEBUG: GetActionCode: Trying Hardy keycode for 0xf200
17:54:21 T:140491042502144   DEBUG: Previous line repeats 3 times.
17:54:21 T:140491042502144   DEBUG: OnKey: 0 (0xf200) pressed, action is

vs a working button (KEY_PLAY)
Code:
17:57:26 T:140491042502144   DEBUG: Keyboard: scancode: 0xd7, sym: 0x0155, unicode: 0x0000, modifier: 0x0
17:57:26 T:140491042502144   DEBUG: OnKey: play_pause (0xf0bd) pressed, action is PlayPause


I think this has to be happening (or, not happening) in TranslateKey, in https://github.com/xbmc/xbmc/blob/master...dStat.cpp, but i'm not clear how.


Keeping in mind my example has
Code:
17:54:21 T:140491042502144   DEBUG: Keyboard: scancode: 0x88, sym: 0xff69, unicode: 0x0000, modifier: 0x0

This lookup i think should find something (from KeyboardStat.cpp):
Code:
// Continue by trying to match both the sym and unicode. This will identify
  // the majority of keypresses
  else if (KeyTableLookupSymAndUnicode(keysym.sym, keysym.unicode, &keytable))
  {
    vkey = keytable.vkey;
    ascii = keytable.ascii;
  }

Which using this lookup from https://github.com/xbmc/xbmc/blob/master...ytable.cpp
Code:
bool KeyTableLookupSymAndUnicode(uint16_t sym, uint16_t unicode, XBMCKEYTABLE* keytable)
{
  // If the sym being searched for is zero there will be no match (the
  // unicode can be zero if the sym is non-zero)
  if (sym == 0)
    return false;

  // Look up the sym and unicode in XBMCKeyTable
  for (int i = 0; i < XBMCKeyTableSize; i++)
  { if (sym == XBMCKeyTable[i].sym && unicode == XBMCKeyTable[i].unicode)
    { *keytable = XBMCKeyTable[i];
      return true;
    }
}

My unicode is zero, but have non-zero sym (0xff69)

This is where I get really confused, because the format of the sym in XBMCKeyTable seems to be like XBMCK_STOP, XBMCK_PAUSE, XBMCK_REWIND, but in the log the sym are 0xff69, 0x0013, and 0x0153 respectively.

What am i missing here?

Windows 10

Hi I am a total newbie to Kodi I have Kodi 17 V3 My question is Can you with the smart playlist / partyplaylist set up a new rule That would: PLay songs for 3min and then blend to next song? Also what skin is best for Music fans / dj I would lik...

[Krypton 17 RC4] Bug report

Just did the RC3 to RC4 clean update to test how well it's applying a system backup. All of the Repos and add-ons are marked as disabled when you apply a system restore.

Kodi 16.1 crashing on FTV v1

Today I started to issues with Emby crashing out when idle or playing music. Haven's watched any videos today so I can't comment there. Nothing remarkable, just sitting idle and then crashes back to the FTV home screen. My debug log from the last cr...

Apple tv2?

Hi where i could find kodi 14.2 and how to apple tv 2 or the originald factory?thanks.

Format System info/network

Hi! I think that display of Network info should be similar to ipconfig: Code: IPv4 Address. . . . . . . . . . . : Subnet Mask . . . . . . . . . . . : Default Gateway . . . . . . . . . :