System.IndexOutOfRangeException

nick.ryhajlo's Avatar

nick.ryhajlo

13 Nov, 2013 12:16 AM

I updated to 0.4.6 today and it worked fine for a while, then seemingly out of the blue (I don't think I did anything to it) I got this error when ever I tried to go to any page:

HgLab Error
There's something wrong under the hood.

System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Collections.Generic.Dictionary`2.set_Item(TKey key, TValue value)
   at HgSharp.Core.HgRevlogBasedStorage.GetRevlogEntryData(HgNodeID hgNodeID) in d:\projects\hglab\lib\hgsharp\src\HgSharp.Core\HgRevlogBasedStorage.cs:line 43
   at HgSharp.Core.HgChangelog.get_Item(HgNodeID hgNodeID) in d:\projects\hglab\lib\hgsharp\src\HgSharp.Core\HgChangelog.cs:line 25
   at HgLab.Areas.Dashboard.Controllers.DashboardController.GetActivityItemChangesets(HgRepository hgRepository, ActivityStream activityStream) in d:\projects\hglab\src\HgLab\Areas\Dashboard\Controllers\DashboardController.cs:line 176
   at HgLab.Areas.Dashboard.Controllers.DashboardController.GetActivityItemModel(ActivityStream activityStream) in d:\projects\hglab\src\HgLab\Areas\Dashboard\Controllers\DashboardController.cs:line 116
   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at HgLab.Areas.Dashboard.Controllers.DashboardController.Dashboard() in d:\projects\hglab\src\HgLab\Areas\Dashboard\Controllers\DashboardController.cs:line 39
   at lambda_method(Closure , ControllerBase , Object[] )
   at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12()
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)
   at System.Web.Mvc.Controller.ExecuteCore()
   at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext)
   at HgLab.Core.Framework.Web.HgLabControllerBase.Execute(RequestContext requestContext) in d:\projects\hglab\src\HgLab.Core\Framework\Web\HgLabControllerBase.cs:line 69
   at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<>c__DisplayClassb.<BeginProcessRequest>b__5()
   at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.<MakeVoidDelegate>b__0()
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

  1. 1 Posted by nick.ryhajlo on 13 Nov, 2013 12:17 AM

    nick.ryhajlo's Avatar

    Never mind, I rebooted the server and it is back up and running fine, sorry about that.

  2. Support Staff 2 Posted by Anton Gogolev on 13 Nov, 2013 09:10 AM

    Anton Gogolev's Avatar

    Nick,

    Thanks for reporting. This is a caching/threading bug that was bound to happen.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

03 Aug, 2022 01:49 PM
05 Jul, 2022 07:01 PM
28 Mar, 2022 04:42 PM
21 Jan, 2022 10:43 AM
20 Jan, 2022 10:45 AM

 

18 Jan, 2022 10:15 AM
19 Mar, 2021 06:13 PM
01 Mar, 2021 02:51 PM
01 Jan, 2021 02:19 AM
28 Aug, 2020 08:34 AM
23 Jun, 2020 08:29 AM