mwheelerjr / mptvseries

Automatically exported from code.google.com/p/mptvseries
0 stars 0 forks source link

Unhandled Exception in Configuration - Manual Episode Selection #634

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
00000001 - 8/03/2012 3:58:18 p.m. - MP-TVSeries Version: v3.2.0.1928
00000001 - 8/03/2012 3:58:18 p.m. - MP-TVSeries Build Date: 6/03/2012 4:41:42 
p.m.

What steps will reproduce the problem?
1. Did a Import, had 2 Series 1 episode each requiring manual selection
2. First one was fine
3. second one i scrolled down the episode list, then went back and choose no 
match.

Result: Unhanded Exception

Info Below:

Screenshot:  http://imgur.com/CGHsR
MP-TVSeries.log  http://paste2.org/p/1931290

Unhandled Exception debug info:

************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be 
non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at WindowPlugins.GUITVSeries.Configuration.ImportPanelEpID.listBoxOnline_SelectedIndexChanged(Object sender, EventArgs e)
   at System.Windows.Forms.ListBox.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.ListBox.WmReflectCommand(Message& m)
   at System.Windows.Forms.ListBox.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Original issue reported on code.google.com by connect...@gmail.com on 8 Mar 2012 at 4:01

GoogleCodeExporter commented 9 years ago
I tried to reproduce this but can't, not sure how it would of been possible but 
maybe I can add some checks just incase.

Original comment by damien.haynes@gmail.com on 27 Mar 2012 at 5:12

GoogleCodeExporter commented 9 years ago
<mastydan> so i do a import, and i get these 2 shows without a match
<mastydan> http://dl.dropbox.com/u/18850531/tvseries.JPG
<mastydan> i tick show episodes requiring manual selection <-- this is important
<mastydan> then for seaquest, i scroll down, click a couple of episodes, then 
leave it on one of them
<mastydan> then i go to top gear, do the same thing
<mastydan> then i go back to seaquest, and change it back to "no match"
<mastydan> it will instantly crash when no match is selected

Original comment by damien.haynes@gmail.com on 27 Mar 2012 at 6:59

GoogleCodeExporter commented 9 years ago
Hey Damien,
I get the same exception, but it crashes my MediaPortal on startup. 
Started just after upgrading MP to 1.2.3 and MP-TVSeries to v3.3.0.

Is there an already open thread where I can post my log files?

Original comment by yoavain on 13 Apr 2012 at 8:28

GoogleCodeExporter commented 9 years ago
This would be unrelated yoavain, this code is only in the import wizard in 
config. you probably saw a different issue.

Original comment by damien.haynes@gmail.com on 4 May 2012 at 7:57

GoogleCodeExporter commented 9 years ago
Load MP-TVSeries Configuration
Start Import
Click Next Until "Step 3 of 4: Identifying Episode" screen.
TICK Show only episodes requirng manual selection check box.
Hopefully you will have several shows there in the Series List box.
Click on the first series, then in Online Episodes, Scroll Down, click any 
episode number
Click on the next series, then in online episodes, scroll down, click any 
episode number.
Go back to first servies, and switch the episode back to "no match"

Unhandled Exception will occur as soon as no match is selected

************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be 
non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at WindowPlugins.GUITVSeries.Configuration.ImportPanelEpID.listBoxOnline_SelectedIndexChanged(Object sender, EventArgs e) in D:\Development\MP-TVSeries\MP-TVSeries\Configuration\ImportPanelEpID.cs:line 275
   at System.Windows.Forms.ListBox.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.ListBox.WmReflectCommand(Message& m)
   at System.Windows.Forms.ListBox.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Original comment by culla...@gmail.com on 15 May 2012 at 1:40

GoogleCodeExporter commented 9 years ago
do you need to have episodes that have no match as well?

Original comment by damien.haynes@gmail.com on 15 May 2012 at 1:47

GoogleCodeExporter commented 9 years ago
yes in the example above, i had 2 series, with 1 episode each that had no 
match, requiring a manual selection

Original comment by culla...@gmail.com on 15 May 2012 at 1:51

GoogleCodeExporter commented 9 years ago
Fixed in r1954.

Original comment by damien.haynes@gmail.com on 18 May 2012 at 7:17