Skip to content

ArgumentOutOfRangeException for small Indexes #162

Description

When running gvfs clone on a small repo, we can get the following exception:

System.ArgumentOutOfRangeException: Must be greater than zero
Parameter name: allocationSize
   at GVFS.Virtualization.Projection.GitIndexProjection.ObjectPool`1..ctor(ITracer tracer, Int32 allocationSize, Func`1 objectCreator)
   at GVFS.Virtualization.Projection.GitIndexProjection.SortedFolderEntries.InitializePools(ITracer tracer, UInt32 indexEntryCount)
  ...

This can easily be remedied by initializing the memory pools with a minimum size when the index is small.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions