Keyboard.xml crash my xbmc
#1
First I want to say I have read the following two BIG threads about Logitech remotes.
http://forum.xbmc.org/showthread.php?tid=77519
http://forum.xbmc.org/showthread.php?tid=54466
And also read the wiki about keyboard.xml but since I cant find anything or come closer to solving my problem on my own im posting and hoping for help.

I have created an custom keyboard.xml for my Logitech one remote.I have added an MCE keyboard so I can use the F1, F2 etc buttons as extra buttons on my remote. I have mapped some keys to commands that I want to use. On my remote I have buttons in the touch screen that corresponds to the ones I have in my keyboard.xml file. And this works, almost al the time, except for some times when XBMC just crash to an black screen. I can really say what I do it seems random to me.

I have posted my log file here: http://pastebin.com/7tzQmV9V
Note: I have removed personal video files from log

Also this is what I have in my userdata/keymaps/keyboard.xml
<keymap>
<global>
<keyboard>
<F1>XBMC.ActivateWindow(videolibrary,recentlyaddedepisodes,return)</F1>
<F2>XBMC.ActivateWindow(videolibrary,recentlyaddedmovies,return)</F2>
<F9>XBMC.ActivateWindow(videolibrary,tvshowtitles,return)</F9>
<F10>XBMC.ActivateWindow(videolibrary,movietitles,return)</F10>
</keyboard>
</global>
<FullScreenVideo>
<keyboard>
<F7>RunScript(script.xbmc.subtitles)</F7>
<F8>ShowSubtitles</F8>
</keyboard>
</FullScreenVideo>
</keymap>

I’m using F1,F2,F7,F8,F9 and F10 for my custom commands. I have not found any info that xbmc should use any of these buttons, that’s why I use them for my custom commands.
Any help is very appreciated.
---------------------------------------------------
Intel NUC Haswell D34010WYK | ATV2 | Logitech Harmony One | Onkyo TX-NR808 Receiver | QNAP 809 | APC Back-UPS RS 550
Reply
#2
I did some more error searching and now i start to wonder if it's something with the remote.

I tried with a more simpler error search to minimize other errors. I have now tried with the following keyboard.xml

Code:
<keymap>
<global>
<keyboard>
<f1>Notification(Keypress, You pressed F1, 3)</f1>
<f2>Notification(Keypress, You pressed F2, 3)</f2>
<f3>Notification(Keypress, You pressed F3, 3)</f3>
<f4>Notification(Keypress, You pressed F4, 3)</f4>
<f5>Notification(Keypress, You pressed F5, 3)</f5>
<f6>Notification(Keypress, You pressed F6, 3)</f6>
<f7>Notification(Keypress, You pressed F7, 3)</f7>
<f8>Notification(Keypress, You pressed F8, 3)</f8>
<f9>Notification(Keypress, You pressed F9, 3)</f9>
<f10>Notification(Keypress, You pressed F10, 3)</f10>
<f11>Notification(Keypress, You pressed F11, 3)</f11>
<f12>Notification(Keypress, You pressed F12, 3)</f12>
</keyboard>
</global>
</keymap>

After pressing every key from F1 - F12 i can compare the values, taken from the xbmc.log file

USB KEYBOARD
Code:
USB Keyboard
20:10:48 T:3055925120 M:1428336640   DEBUG: OnKey: 61552 pressed, action is Notification(Keypress, You pressed F1, 3)
20:10:49 T:3055925120 M:1428344832   DEBUG: SDLKeyboard: scancode: 68, sym: 283, unicode: 0, modifier: 0
20:10:49 T:3055925120 M:1428344832   DEBUG: OnKey: 61553 pressed, action is Notification(Keypress, You pressed F2, 3)
20:10:50 T:3055925120 M:1428344832   DEBUG: SDLKeyboard: scancode: 69, sym: 284, unicode: 0, modifier: 0
20:10:50 T:3055925120 M:1428344832   DEBUG: OnKey: 61554 pressed, action is Notification(Keypress, You pressed F3, 3)
20:10:51 T:3055925120 M:1428344832   DEBUG: SDLKeyboard: scancode: 70, sym: 285, unicode: 0, modifier: 0
20:10:51 T:3055925120 M:1428344832   DEBUG: OnKey: 61555 pressed, action is Notification(Keypress, You pressed F4, 3)
20:10:52 T:3055925120 M:1428344832   DEBUG: SDLKeyboard: scancode: 71, sym: 286, unicode: 0, modifier: 0
20:10:52 T:3055925120 M:1428344832   DEBUG: OnKey: 61556 pressed, action is Notification(Keypress, You pressed F5, 3)
20:10:52 T:3055925120 M:1428344832   DEBUG: SDLKeyboard: scancode: 72, sym: 287, unicode: 0, modifier: 0
20:10:52 T:3055925120 M:1428344832   DEBUG: OnKey: 61557 pressed, action is Notification(Keypress, You pressed F6, 3)
20:10:53 T:3055925120 M:1428344832   DEBUG: SDLKeyboard: scancode: 73, sym: 288, unicode: 0, modifier: 0
20:10:53 T:3055925120 M:1428344832   DEBUG: OnKey: 61558 pressed, action is Notification(Keypress, You pressed F7, 3)
20:10:54 T:3055925120 M:1428344832   DEBUG: SDLKeyboard: scancode: 74, sym: 289, unicode: 0, modifier: 0
20:10:54 T:3055925120 M:1428344832   DEBUG: OnKey: 61559 pressed, action is Notification(Keypress, You pressed F8, 3)
20:10:54 T:3055925120 M:1428344832   DEBUG: SDLKeyboard: scancode: 75, sym: 290, unicode: 0, modifier: 0
20:10:54 T:3055925120 M:1428344832   DEBUG: OnKey: 61560 pressed, action is Notification(Keypress, You pressed F9, 3)
20:10:55 T:3055925120 M:1428353024   DEBUG: SDLKeyboard: scancode: 76, sym: 291, unicode: 0, modifier: 0
20:10:55 T:3055925120 M:1428353024   DEBUG: OnKey: 61561 pressed, action is Notification(Keypress, You pressed F10, 3)
20:10:55 T:3055925120 M:1428353024   DEBUG: SDLKeyboard: scancode: 95, sym: 292, unicode: 0, modifier: 0
20:10:55 T:3055925120 M:1428353024   DEBUG: OnKey: 61562 pressed, action is Notification(Keypress, You pressed F11, 3)
20:10:56 T:3055925120 M:1428353024   DEBUG: SDLKeyboard: scancode: 96, sym: 293, unicode: 0, modifier: 0
20:10:56 T:3055925120 M:1428353024   DEBUG: OnKey: 61563 pressed, action is Notification(Keypress, You pressed F12, 3)

Logitech Harmony One
Code:
20:15:38 T:3055925120 M:1427582976   DEBUG: OnKey: 61552 pressed, action is Notification(Keypress, You pressed F1, 3)
20:15:38 T:3055925120 M:1427582976   DEBUG: SDLKeyboard: scancode: 68, sym: 283, unicode: 0, modifier: 0
20:15:38 T:3055925120 M:1427582976   DEBUG: OnKey: 61553 pressed, action is Notification(Keypress, You pressed F2, 3)
20:15:39 T:3055925120 M:1427591168   DEBUG: SDLKeyboard: scancode: 69, sym: 284, unicode: 0, modifier: 0
20:15:39 T:3055925120 M:1427591168   DEBUG: OnKey: 61554 pressed, action is Notification(Keypress, You pressed F3, 3)
20:15:41 T:3055925120 M:1427591168   DEBUG: SDLKeyboard: scancode: 70, sym: 285, unicode: 0, modifier: 0
20:15:41 T:3055925120 M:1427591168   DEBUG: OnKey: 61555 pressed, action is Notification(Keypress, You pressed F4, 3)
20:10:52 T:3055925120 M:1428344832   DEBUG: SDLKeyboard: scancode: 71, sym: 286, unicode: 0, modifier: 0
20:13:59 T:3055925120 M:1427656704   DEBUG: OnKey: 61556 pressed, action is Notification(Keypress, You pressed F5, 3)
20:14:01 T:3055925120 M:1427656704   DEBUG: SDLKeyboard: scancode: 72, sym: 287, unicode: 0, modifier: 0
20:14:01 T:3055925120 M:1427656704   DEBUG: OnKey: 61557 pressed, action is Notification(Keypress, You pressed F6, 3)
20:14:07 T:3055925120 M:1427664896   DEBUG: SDLKeyboard: scancode: 73, sym: 288, unicode: 0, modifier: 0
20:14:07 T:3055925120 M:1427664896   DEBUG: OnKey: 61558 pressed, action is Notification(Keypress, You pressed F7, 3)
20:14:08 T:3055925120 M:1427664896   DEBUG: SDLKeyboard: scancode: 74, sym: 289, unicode: 0, modifier: 0
20:14:08 T:3055925120 M:1427664896   DEBUG: OnKey: 61559 pressed, action is Notification(Keypress, You pressed F8, 3)
20:14:11 T:3055925120 M:1427664896   DEBUG: SDLKeyboard: scancode: 75, sym: 290, unicode: 0, modifier: 0
20:14:11 T:3055925120 M:1427664896   DEBUG: OnKey: 61560 pressed, action is Notification(Keypress, You pressed F9, 3)
20:14:13 T:3055925120 M:1427664896   DEBUG: SDLKeyboard: scancode: 76, sym: 291, unicode: 0, modifier: 0
20:14:13 T:3055925120 M:1427664896   DEBUG: OnKey: 61561 pressed, action is Notification(Keypress, You pressed F10, 3)
20:14:14 T:3055925120 M:1427673088   DEBUG: SDLKeyboard: scancode: 95, sym: 292, unicode: 0, modifier: 0
20:14:14 T:3055925120 M:1427673088   DEBUG: OnKey: 61562 pressed, action is Notification(Keypress, You pressed F11, 3)
20:14:15 T:3055925120 M:1427673088   DEBUG: SDLKeyboard: scancode: 96, sym: 293, unicode: 0, modifier: 0
20:14:15 T:3055925120 M:1427673088   DEBUG: OnKey: 61563 pressed, action is Notification(Keypress, You pressed F12, 3)

When i test on usb keyboard typing F1 - F12 in random order alot it works fine. When i try on my logitech it works almost.... After around 20 pressing on the keys it hangs on a key, like sending it over and over again so the popup never goes down. I have tried 3 times, with an reboot of the system everytime. After a random number of presses from the logitech remote it hangs on a random key. Here is the log from when it hangs: http://pastebin.com/AVV4AbKB

You can see that im pressing the usb keyboard "until line 172" then i start pressing my logitech remote. At line 317 it hangs and start repeating an command. I cant see that the remote is sending the command over and over again but still the last command that got throw is stuck in a loop.

I have also adjusted the MCE Keyboard in my activities, when it responds too much, i have sett it to 1 / 100 .

So my conslusion of this if i program an command and the remote stucks in a loop it will crash xbmc to the absolute blackest screen you ever seen. Shocked

Comments are nice, specialy from harmony users...
---------------------------------------------------
Intel NUC Haswell D34010WYK | ATV2 | Logitech Harmony One | Onkyo TX-NR808 Receiver | QNAP 809 | APC Back-UPS RS 550
Reply
#3
Were you able to find a solution to this? I have just received a Harmony One, and I have exactly the same issue with my XBMC set up.....a never ending repeating key.
Reply

Logout Mark Read Team Forum Stats Members Help
Keyboard.xml crash my xbmc0