Can't access our Repository in HGLabs or push/pull

Jake Moening's Avatar

Jake Moening

15 Jan, 2015 08:46 PM

We are able to push/pull through the filesystem, but going through hglab blows up.

System.ArgumentOutOfRangeException: Non-negative number required.
Parameter name: count
   at System.Text.UTF8Encoding.GetString(Byte[] bytes, Int32 index, Int32 count)
   at HgSharp.Core.HgEncoder.DecodeAsUtf8(Byte[] bytes, Int32 index, Int32 count) in d:\projects\hgsharp\src\HgSharp.Core\HgEncoder.cs:line 56
   at HgSharp.Core.HgChangelogReader.ReadChangesetInternal(HgRevlogEntryData revlogEntryData) in d:\projects\hgsharp\src\HgSharp.Core\HgChangelogReader.cs:line 51
   at HgSharp.Core.HgChangelogReader.ReadChangeset(HgRevlogEntryData revlogEntryData) in d:\projects\hgsharp\src\HgSharp.Core\HgChangelogReader.cs:line 42
   at HgSharp.Core.HgChangelog.<>c__DisplayClass4.<get_Item>b__3() in d:\projects\hgsharp\src\HgSharp.Core\HgChangelog.cs:line 48
   at HgLab.Core.Framework.Caching.MemoryCacheObjectCache.GetOrAdd[T](String key, Func`1 valueProvider) in d:\projects\hglab\src\HgLab.Core\Framework\Caching\MemoryCacheObjectCache.cs:line 65
   at HgLab.Core.Impl.Integration.ObjectCacheAdapter.GetOrAdd[T](String key, Func`1 valueProvider) in d:\projects\hglab\src\HgLab.Core\Impl\Integration\ObjectCacheAdapter.cs:line 48
   at HgSharp.Core.HgChangelog.get_Item(UInt32 revision) in d:\projects\hgsharp\src\HgSharp.Core\HgChangelog.cs:line 45
   at HgSharp.Core.HgChangelog.get_Tip() in d:\projects\hgsharp\src\HgSharp.Core\HgChangelog.cs:line 60
   at HgLab.Models.Modellers.RepositoryModeller.ToRepositoryModel(ISecurityPrincipal securityPrincipal, Repository repository, ProjectModel projectModel, HgRepository hgRepository, Boolean includeClosedBranches, Action`1 t) in d:\projects\hglab\src\HgLab\Models\Modellers\RepositoryModeller.cs:line 50
   at HgLab.Areas.Project.Controllers.RepositoryController.Files(MainlineRepository repository, String changeset, String path) in d:\projects\hglab\src\HgLab\Areas\Project\Controllers\RepositoryController.cs:line 105
   at lambda_method(Closure , ControllerBase , Object[] )
   at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
   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.<>c__DisplayClass15.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14()
   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 98
   at System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext)
   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.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End()
   at System.Web.Mvc.MvcHandler.<>c__DisplayClasse.<EndProcessRequest>b__d()
   at System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f)
   at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action)
   at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)
   at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

  1. 1 Posted by Jake Moening on 15 Jan, 2015 08:58 PM

    Jake Moening's Avatar

    Nevermind. Now it appears we are getting an issue pushing/pulling through the file system as well. The repo might just be corrupt.

  2. Support Staff 2 Posted by Anton Gogolev on 16 Jan, 2015 05:07 AM

    Anton Gogolev's Avatar

    Jake,

    Which version of HgLab are you running?

  3. Support Staff 3 Posted by Anton Gogolev on 16 Jan, 2015 06:51 AM

    Anton Gogolev's Avatar

    Jake,

    I'll need a bit of your help here. Apparently, HgLab is choking on an
    unexpectedly-formatted changeset data. Could you please note the changeset
    ID that HgLab is failing on, run the following command on the repository:

        hg debugdata -c <CHANGESET_ID>

    and attach the output.

    Thanks a lot in advance!

  4. 4 Posted by Jake Moening on 16 Jan, 2015 01:39 PM

    Jake Moening's Avatar

    Sorry, it appears one of my coworkers already fixed the repository.

    Thanks,
    Jake

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