Author Topic: Out of index error  (Read 5795 times)

0 Members and 1 Guest are viewing this topic.

bkboudreau

  • $upporter
  • Jr. Member
  • *****
  • Posts: 11
  • Karma: 0
    • View Profile
Out of index error
« on: August 20, 2011, 01:10:06 PM »
Hello,

I created a command to try and play music videos however I get the following error when I try to use it:

System.Argument.OutOfRangeExeption: Index was out of range. Must be non negative and less than the size of the collection.

I've probably set something up incorrectly so I have attached what I did as screenshots.  I also verified that the videos I was trying to test with were in the payload file.

Thanks,
Brad

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: Out of index error
« Reply #1 on: August 20, 2011, 01:48:58 PM »
Hello,

I created a command to try and play music videos however I get the following error when I try to use it:

System.Argument.OutOfRangeExeption: Index was out of range. Must be non negative and less than the size of the collection.

I've probably set something up incorrectly so I have attached what I did as screenshots.  I also verified that the videos I was trying to test with were in the payload file.

Thanks,
Brad
Hi Brad,
do you have GenXML for xbmc? and what shows it? see attachment pic

Kalle
***********  get excited and make things  **********

bkboudreau

  • $upporter
  • Jr. Member
  • *****
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Out of index error
« Reply #2 on: August 20, 2011, 02:03:38 PM »
Hello Kalle,

I've attached that screenshot (just regenerated the music video part for the shot).

Thanks,
Brad

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: Out of index error
« Reply #3 on: August 20, 2011, 02:12:54 PM »
Hello Kalle,

I've attached that screenshot (just regenerated the music video part for the shot).

Thanks,
Brad
Hmm..., ok I've no idea for the moment, sorry I'm bussy.

Kalle
***********  get excited and make things  **********

bkboudreau

  • $upporter
  • Jr. Member
  • *****
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Out of index error
« Reply #4 on: August 20, 2011, 02:56:26 PM »
No worries, I greatly appreciate the help!

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Out of index error
« Reply #5 on: August 20, 2011, 04:46:30 PM »
I think you forgot to add actions to the macro.  You need to double click the command icon (lightning bolt) to open the command builder.
« Last Edit: August 20, 2011, 04:53:06 PM by jitterjames »

bkboudreau

  • $upporter
  • Jr. Member
  • *****
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Out of index error
« Reply #6 on: August 20, 2011, 05:09:15 PM »
That would be what I missed.  Now XBMC throws an error but at least my command is doing something.

Thanks again,
Brad

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Out of index error
« Reply #7 on: August 20, 2011, 06:36:51 PM »
this command was harder to create than you might think.  This is because the http api for xbmc was deprecated before certain bugs were fixed.

anyway, I found a workaround, try it out by dragging the attached file into your command tree.
« Last Edit: August 20, 2011, 07:13:15 PM by jitterjames »

bkboudreau

  • $upporter
  • Jr. Member
  • *****
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Out of index error
« Reply #8 on: August 21, 2011, 04:15:31 PM »
I tried dragging that file into the command list editor as well as every line under my Music Video command set however nothing appeared to happen (cursor showed the "can't do it" icon).  I also tried dragging the file into the main left pane that logs what is happening with the same result as before.

Am I trying to drag the file into the wrong area?

Thanks,
Brad
« Last Edit: August 21, 2011, 04:54:19 PM by bkboudreau »

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: Out of index error
« Reply #9 on: August 21, 2011, 05:03:00 PM »
I tried dragging that file into the command list editor as well as every line under my Music Video command set however nothing appeared to happen (cursor showed the "can't do it" icon).  I also tried dragging the file into the main left pane that logs what is happening with the same result as before.

I'm I trying to drag the file into the wrong area?

Thanks,
Brad
Hi brad, click in VC to edit, and then you can see the command edit window. On upper right click on "open a xml.bin" icon and browse to your downloaded xbmc-file and click open. Drag and drop the showing group to the left (commandtree), click in the upper left on "save all" and restart VC.

Kalle
***********  get excited and make things  **********

bkboudreau

  • $upporter
  • Jr. Member
  • *****
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Out of index error
« Reply #10 on: August 21, 2011, 06:21:55 PM »
Very cool, I got the commands imported successfully.

The issue I am finding now is that when I try to get a music video running the TTS repeats the correct video back but XBMC either browses to the root of my video library or throws an error "One or more items failed to play".  I am doubtful this is an issue with VC but just in case I have attached the XBMC logfile.  I have also attached a screenshot of what the OSD shows when I ask for a video, it doesn't always display strings that long (sometimes it only shows "</field>").

Thanks again,
Brad

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: Out of index error
« Reply #11 on: August 21, 2011, 06:47:41 PM »
Very cool, I got the commands imported successfully.

The issue I am finding now is that when I try to get a music video running the TTS repeats the correct video back but XBMC either browses to the root of my video library or throws an error "One or more items failed to play".  I am doubtful this is an issue with VC but just in case I have attached the XBMC logfile.  I have also attached a screenshot of what the OSD shows when I ask for a video, it doesn't always display strings that long (sometimes it only shows "</field>").

Thanks again,
Brad
Ok, the command works on basics. For the finetuning please wait of a response from james or wanilton, the specialists of XMBC. Do you have genXBMC.xml generated after import the new command? Please test it.

Kalle
***********  get excited and make things  **********

bkboudreau

  • $upporter
  • Jr. Member
  • *****
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Out of index error
« Reply #12 on: August 21, 2011, 08:31:15 PM »
I just regenerated the entire library and am seeing the same behaviour.

Thanks,
Brad

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Out of index error
« Reply #13 on: August 21, 2011, 09:54:13 PM »
I need to look at this in the morning, when I am sober :)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Out of index error
« Reply #14 on: August 21, 2011, 10:15:22 PM »
I need you to issue the command and then go back to the main window and rollover the command

XBMC.send  queryvideodatabase....

and tell me what the popup text says.  See the attached for what I get:

As you can see it is correctly returning the path to the file for the music video I requested, then we can ask XBMC to play the file.