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 . . . . . . . . . :

Flexible Skin

What is the best skin for creating custom queries and then putting them on the main menu? IE: I want to do several things. 1 - I want to put a Kids movie section up....nothing harsher than PG. 2 - My wife has favorite movies. I would like to be able ...

I have a question about Kodi 17

I am trying to find out how I can install this on the Fire TV 2nd generation because I installed a version that was on a YouTube video and when I went into it said there was a newer version but I never find a way to update it and also is there a way to...

How to remove the original startscreen of kodi jarvis

Can anyone help me to remove the Original startscreen of kodi. I wanna have another splash intro. But if i do that you still see first the logo of kodi jarvis and after that the splash video starts. And i only want to have the video at the startup and ...

RC4 compile ends in errors … why?

Trying and failing to build RC4 on a RPi2 (Arch ARM). My build receipe works fine for RC3...

Code:
cmake -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=/usr/lib \
    -DCMAKE_PREFIX_PATH=/opt/vc \
    -DCORE_SYSTEM_NAME=rbpi \
    -DWITH_CPU=cortex-a7 \
    -DENABLE_EVENTCLIENTS=ON \
    -DENABLE_OPENGL=OFF \
    -DENABLE_X11=OFF \
    -DENABLE_VAAPI=OFF \
    -DENABLE_VDPAU=OFF \
    -DLIRC_DEVICE=/run/lirc/lircd \
    ../xbmc/project/cmake

  make VERBOSE=1

Entire build log.

If I grep out 'error' from that log, I get a few key lines I think:
Code:
/scratch-nfs/PKGBUILDs/alarm/kodi-rbp-git/src/xbmc-17.0rc4-Krypton/tools/EventClients/Clients/WiiRemote/CWIID_WiiRemote.h:51:19: fatal error: cwiid.h: No such file or directory
distcc[11784] ERROR: compile /scratch-nfs/PKGBUILDs/alarm/kodi-rbp-git/src/xbmc-17.0rc4-Krypton/tools/EventClients/Clients/WiiRemote/CWIID_WiiRemote.cpp on ease/9 failed
/scratch-nfs/PKGBUILDs/alarm/kodi-rbp-git/src/xbmc-17.0rc4-Krypton/tools/EventClients/Clients/WiiRemote/CWIID_WiiRemote.h:51:19: fatal error: cwiid.h: No such file or directory
distcc[11784] ERROR: compile /scratch-nfs/PKGBUILDs/alarm/kodi-rbp-git/src/xbmc-17.0rc4-Krypton/tools/EventClients/Clients/WiiRemote/CWIID_WiiRemote.cpp on localhost failed
make[2]: *** [build/WiiRemote/CMakeFiles/kodi-wiiremote.dir/build.make:63: build/WiiRemote/CMakeFiles/kodi-wiiremote.dir/CWIID_WiiRemote.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:9944: build/WiiRemote/CMakeFiles/kodi-wiiremote.dir/all] Error 2
checking for gcc way to treat warnings as errors... no
  CC       src/error.lo
/scratch-nfs/PKGBUILDs/alarm/kodi-rbp-git/src/kodi-build/build/libdvd/src/dvdcss/src/error.c:1:0: warning: switch -mcpu=cortex-a7 conflicts with -march=armv7-a switch
/scratch-nfs/PKGBUILDs/alarm/kodi-rbp-git/src/kodi-build/build/libdvd/src/dvdcss/src/error.c:1:0: warning: switch -mcpu=cortex-a7 conflicts with -march=armv7-a switch
CC    libavcodec/error_resilience.o
CC    libavutil/error.o
INSTALL    scratch-nfs/PKGBUILDs/alarm/kodi-rbp-git/src/kodi-build/build/ffmpeg/src/ffmpeg/libavutil/error.h
make: *** [Makefile:139: all] Error 2
==> ERROR: A failure occurred in build().

Is it that wiiremote that's killing it? How can I disable that?

EDIT: Seems as though having the cwiid package installed as a makedep allows the build to finish successfully.... this is a change from RC3 as stated. Also, this is not required when building for x86_64.

videos running at slower speed

I have kodi running on a few machines, but on my osx (Yosemite) laptop playback seems to be at 0.9x as the sound is slightly slower with regular pauses every few seconds to catchup with the video. I have deleted the app (plus userdata, etc) and reinsta...

chromebox stuck at user login ?

Hi all i am trying to install LibraElec on a chromebox I was able to get into DEV mode, i entered a couple of commands o log in a DOS prompt (whatever it is in linux) i was able to log in using SUDO something or other but, then it asked me for a USER ...