Course Score

by dmcaf

Downloads: 2,780 (11) • Reviews: 2

Version:

1.5.2

Updated:

Aug 11, 2013

unhandled exception index was out of range

unhandled exception index was out of range

Postby mazoaguirre » Wed Feb 23, 2011 1:25 pm

i get this one when i try to find "this hill" the exportin eleveation frozen at 10/07/2005
Code: Select all
************** 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 ZoneFiveSoftware.Common.Data.TimeDataSeries`1.get_Item(Int32 index)
   at CourseScore.Data.Record..ctor(IActivity activity, RecordCategory category, IGPSRoute gpsTrack, INumericTimeDataSeries hrTrack, INumericTimeDataSeries pwrTrack, INumericTimeDataSeries cadTrack, IDistanceDataTrack distTrack, INumericTimeDataSeries elevTrack, DateTime activityStartTime)
   at CourseScore.Data.Feature..ctor(IActivity activity, feature_type type, DateTime inStartTime, DateTime inEndTime)
   at CourseScore.UI.DetailPage.HillsDetailControl.FindThisFeature(Feature feature, IActivity searchActivity)
   at CourseScore.UI.DetailPage.HillsDetailControl.contextMenuStrip_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.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)



close the exception by "contunue" and go to that activity, it have the same hill (is a main steet near my home)
the plugin (course Score) gives the elevation profile, but not the hills

i see it this exception before, but happen when a activity has not elevation

i move a round the data that triggers the exception and all activities looks good, has elevation, gps etc and same elevation profile, but not hills

every activity that i check from that year is the same, but one that i don use a GPS, so i draw the route, then put the time and use miscplugin to set pace and then grab elevation from the plugin, that one has has hills

i attached the fitlog from the date and images of the plugin view, recent and from date of exception, the hill about is the final part of both activities

i have some extrage behaivors in old data, i keep my original logbook since the very firt day (may, 23, 2005), so the logbook came througth several changes in the way ST stores data
Attachments
CS Plugin outofindexexception with same hill.JPG
CS Plugin outofindexexception with same hill.JPG (190.51 KiB) Viewed 6292 times
CS Plugin outofindexexception 1.JPG
CS Plugin outofindexexception 1.JPG (167.01 KiB) Viewed 6292 times
10 de julio de 2005.fitlog
(29.9 KiB) Downloaded 335 times
FR 310 and Foot Pod, Edge 500 and Cadence Sensor, GoPro HD 960
mazoaguirre.com
mazoaguirre
Contributor!
Contributor!
 
Posts: 1005
Joined: Fri May 27, 2005 6:29 pm
Location: San Felipe "Torres Mochas" Guanajuato Mexico

Re: unhandled exception index was out of range

Postby mazoaguirre » Wed Feb 23, 2011 3:23 pm

i get some more info about, related to the other topic with this issue

export all febraury 2011 and then other workout from july of 2011 with same hill

i creates a new logbook and import the feb 2011 and the july 2010 workout and the workout from 2005

i see:

1.- the exception is just trigger when you try to find "this HIll"

the activity itself just dont have the hills in the plugin table but elevation profile yes

2.- if try to find that hill from other activities that have it the exception is shown same

3.- the activity from 2005 have elevation data and its profile but Course Score dont cant find hills
FR 310 and Foot Pod, Edge 500 and Cadence Sensor, GoPro HD 960
mazoaguirre.com
mazoaguirre
Contributor!
Contributor!
 
Posts: 1005
Joined: Fri May 27, 2005 6:29 pm
Location: San Felipe "Torres Mochas" Guanajuato Mexico

Re: unhandled exception index was out of range

Postby texmurphy » Wed Feb 23, 2011 4:28 pm

The Beta of Course Score also does not find hills for this activity.
BUT - I was able to force hills to show with the following edits:
1. Import the fitlog into the TCX Converter and export it as a tcx history file.
2. Import that tcx history file into ST.
This appears to correct whatever is wrong with the fitlog.
I have attached this tcx file.
Image1.jpg
Course Score view of the activity
Image1.jpg (167.94 KiB) Viewed 6270 times
Attachments
10 de julio de 2005 tcx.zip
Zip'ed output from TCX Converter
(8.95 KiB) Downloaded 320 times
texmurphy
Donated!
Donated!
 
Posts: 2076
Joined: Wed Jul 05, 2006 7:38 pm
Location: Maryland, USA

Re: unhandled exception index was out of range

Postby mazoaguirre » Wed Feb 23, 2011 4:39 pm

yes but the time is modify from 43:14 to 48:09

and lost the real splits


i open my original export with Notepad ++ and see that have at the end distance markers thru

<
Code: Select all
Marker dist="1000" />
    <Marker dist="2000" />
    <Marker dist="3000" />
    <Marker dist="4000" />
    <Marker dist="5000" />
    <Marker dist="6000" />
    <Marker dist="7000" />
    <Marker dist="7999.269" />
    <Marker dist="8999.269" />
    <Marker dist="10999.27" />
    <Marker dist="13999.27" />
    <Marker dist="17999.27" />
    <Marker dist="22999.27" />
    <Marker dist="28999.27" />
    <Marker dist="35999.27" />
    <Marker dist="43998.54" />


and the last track point is recorded in

<pt tm="2596" lat="21.4718990325928" lon="-101.216201782227" ele="2086.60546875" />

2956 seconds is 43:16 round it


weird dont you?
FR 310 and Foot Pod, Edge 500 and Cadence Sensor, GoPro HD 960
mazoaguirre.com
mazoaguirre
Contributor!
Contributor!
 
Posts: 1005
Joined: Fri May 27, 2005 6:29 pm
Location: San Felipe "Torres Mochas" Guanajuato Mexico

Re: unhandled exception index was out of range

Postby texmurphy » Wed Feb 23, 2011 4:59 pm

TCX Converter does not appear to transfer splits from the fitlog. It appears to have placed the <TotalTimeSeconds>2889</TotalTimeSeconds>
into the Lap section of the tcx file.

I have not tried the ST TCX Export plugin and TCX Converter was handy for the test. Might be worthwhile to try the TCX Export Plugin and see if it preserves the splits, if the same edit fixes Course Score for you.
texmurphy
Donated!
Donated!
 
Posts: 2076
Joined: Wed Jul 05, 2006 7:38 pm
Location: Maryland, USA


Return to Course Score

Who is online

Users browsing this forum: No registered users and 2 guests