XBMC.ActivateWindow(videolibrary,tvshowtitles) command broken in dharma?
#1
Hi all - I've successfully (and VERY happily) upgraded to Dharma and everything is working great except for one custom-mapped remote button that worked fine in the previous version, but doesn't work correctly in Dharma.

hardware: Acer Aspire Revo 1600
Version: XBMC Live Dharma Beta 1

The function XBMC.ActivateWindow(videolibrary,tvshowtitles) is supposed to bring up your list of TV shows by title, but in Dharma, it does something different. Most times it brings up the main menu screen, but if pressed from within one of the existing library screens, it flashes the menu off and then generally returns back to the same library screen, if pressed again, it goes back to the main menu (weird).

Here is a link to a full log, and below is what I believe is the relevant part of the part showing the error.

Custom-mapped button NOT working:
Quote:20:06:32 T:3078797184 M:653123584 DEBUG: LIRC: Update - NEW at 57574:000000037ff07bdb 00 DVD mceusb (DVD)
20:06:32 T:3078797184 M:653123584 DEBUG: SDLKeyboard: scancode: 72, sym: 287, unicode: 0, modifier: 0
20:06:32 T:3078797184 M:653123584 DEBUG: OnKey: 61557 pressed, action is XBMC.ActivateWindow(videolibrary,tvshowtitles)
20:06:32 T:3078797184 M:653123584 DEBUG: Activating window ID: 10025
20:06:32 T:3078797184 M:653123584 DEBUG: Checking if window ID 10024 is locked.
20:06:32 T:3078797184 M:653123584 DEBUG: ------ Window Deinit (Home.xml) ------
20:06:33 T:3078797184 M:652869632 DEBUG: ------ Window Init (MyVideoNav.xml) ------
20:06:33 T:3078797184 M:652869632 INFO: Loading skin file: MyVideoNav.xml
20:06:33 T:3078797184 M:651091968 DEBUG: Load MyVideoNav.xml: 169.21ms
20:06:33 T:3078797184 M:651091968 DEBUG: Alloc resources: 180.45ms (174.17 ms skin load)
20:06:33 T:3078797184 M:651091968 DEBUG: CGUIMediaWindow::GetDirectory (videodb://2/2/)
20:06:33 T:3078797184 M:651091968 DEBUG: ParentPath = [videodb://2/2/]
20:06:33 T:3078797184 M:651091968 DEBUG: GetTvShowsByWhere query: SELECT tvshow.*,path.strPath AS strPath,counts.totalcount AS totalCount,counts.watchedcount AS watchedCount,counts.totalcount=counts.watchedcount AS watched FROM tvshow JOIN tvshowlinkpath ON tvshow.idShow=tvshowlinkpath.idShow JOIN path ON path.idpath=tvshowlinkpath.idPath LEFT OUTER join ( SELECT tvshow.idShow AS idShow,count(1) AS totalcount,count(files.playCount) AS watchedcount FROM tvshow JOIN tvshowlinkepisode ON tvshow.idShow=tvshowlinkepisode.idShow JOIN episode ON episode.idEpisode=tvshowlinkepisode.idEpisode JOIN files ON files.idFile=episode.idFile GROUP BY tvshow.idShow) counts ON tvshow.idShow=counts.idShow
20:06:33 T:3078797184 M:651091968 DEBUG: Time for actual SQL query = 19
20:06:33 T:3078797184 M:651091968 DEBUG: Time to retrieve tvshows from dataset = 23
20:06:33 T:3078797184 M:651091968 DEBUG: Saving fileitems [videodb://2/2/]
20:06:33 T:3078797184 M:651194368 DEBUG: -- items: 42, sort method: 24, ascending: true
20:06:33 T:2985651056 M:651194368 DEBUG: thread start, auto delete: 0
20:06:33 T:3078797184 M:650194944 DEBUG: OnKey: 247 pressed, action is PreviousMenu
20:06:33 T:3078797184 M:650194944 DEBUG: CGUIWindowManager:TonguereviousWindow: Deactivate
20:06:33 T:2985651056 M:650194944 DEBUG: Thread 2985651056 terminating
20:06:33 T:3078797184 M:650194944 DEBUG: ------ Window Deinit (MyVideoNav.xml) ------
20:06:33 T:3078797184 M:650194944 DEBUG: CGUIWindowManager:TonguereviousWindow: Activate new
20:06:33 T:3078797184 M:650194944 DEBUG: ------ Window Init (Home.xml) ------
20:06:33 T:3078797184 M:650194944 INFO: Loading skin file: Home.xml
20:06:33 T:3078797184 M:650194944 DEBUG: Load Home.xml: 46.24ms
20:06:33 T:3078797184 M:650194944 DEBUG: Alloc resources: 50.15ms (47.31 ms skin load)
20:06:33 T:3078797184 M:650194944 DEBUG: SECTION:LoadDLL(special://xbmcbin/system/ImageLib-i486-linux.so)
20:06:33 T:3078797184 M:650194944 DEBUG: Loading: /usr/lib/xbmc/system/ImageLib-i486-linux.so
20:06:33 T:3078797184 M:649822208 DEBUG: ExecuteXBMCAction : Translating SetFocus(9000)
20:06:33 T:3078797184 M:649822208 DEBUG: ExecuteXBMCAction : To SetFocus(9000)
20:06:38 T:3078797184 M:649699328 DEBUG: SECTION:UnloadDll(libcurl-gnutls.so.4)
20:06:38 T:3078797184 M:649699328 DEBUG: Unloading: libcurl-gnutls.so.4

For good measure, here is how it's set up... the custom button is mapped to the DVD remote function in .lircrc:

.lircrc
Code:
# MAPS  BUTTON TO OPEN TV - SET UP AS F6 in KEYBOARD.XML
begin
        prog = irxevent
        button = DVD
        config = Key F6 XBMC
end


And here is the related mapping in keyboard.xml

Code:
<f6>XBMC.ActivateWindow(videolibrary,tvshowtitles)</f6>

All of the other keys I have mapped to my remote in the exact same fashion work fine, but this function does not work at all. is it possible that this window name was somehow messed up in the Beta 1 release?

If so and I need to put in a bug report, let me know!

Thanks,

Jason
------------------------------------------
Dharma Quick Setup Guide:
XBMC tips on the TechNazgul Blog
------------------------------------------
Reply
#2
I should note that I pulled over my old keyboard.xml and remote.xml files from the previous version of XBMC. Could that have caused this behavior?
------------------------------------------
Dharma Quick Setup Guide:
XBMC tips on the TechNazgul Blog
------------------------------------------
Reply
#3
That second key event looks like it's direct from elsewhere. 247 is a remote keycode.

You don't happen to have the same remote button mapped differently in the videolibrary section do you?

Your remote.xml, lircmap.xml and keyboard.xml files might be interesting.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#4
Thanks for the answer JMarshall. You helped me dig into what was going on. I believe that the problem is actually in my lircmap file in the /usr/share/xbmc/system folder. I must have had a different set of commands in this file on my previous install before moving to Dharma.

As an example, the remote code being sent for my remote for the TVLibrary above was "DVD" , but in lircmap now under my mce remote, DVD is mapped as:

Code:
<menu>DVD</menu>

I think this affects a few others as well, so I need to go back and dig out my old lircmap file from my old install and bring it over with this one. If that doesn't work, I'll post back.
------------------------------------------
Dharma Quick Setup Guide:
XBMC tips on the TechNazgul Blog
------------------------------------------
Reply
#5
That makes perfect sense, yeah - lircmap.xml essentially maps <xbmc_remote_button>lirc_button</xbmc_remote_button>. 247 is "Menu".

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#6
Solved, thanks again JMarshal. The issue was with changes that I'd made to my old keymap files in my sys folders. I brought over the remote/keyboard files in the home\xbmc folder, but not those in the system directory. Bringing over both made everything work as it did with the previous version. Thanks!
------------------------------------------
Dharma Quick Setup Guide:
XBMC tips on the TechNazgul Blog
------------------------------------------
Reply

Logout Mark Read Team Forum Stats Members Help
XBMC.ActivateWindow(videolibrary,tvshowtitles) command broken in dharma?0