Skip to content

TpsBlock: ArgumentOutOfRangeException when checking for a complete page #11

Description

@Trinitek
System.ArgumentOutOfRangeException
HResult=0x80131502
Message=Specified argument was out of the range of valid values. (Parameter 'length')
Source=System.Private.CoreLib
StackTrace:
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument)
at System.Buffers.Binary.BinaryPrimitives.ReadInt32LittleEndian(ReadOnlySpan`1 source)
at TpsParser.TpsBlock.IsCompletePage(TpsRandomAccess rx) in D:\source\repos\TpsParser\src\TpsParser\TpsBlock.cs:line 160
at TpsParser.TpsBlock.GetPages() in D:\source\repos\TpsParser\src\TpsParser\TpsBlock.cs:line 96
at TpsParser.TpsFile.<EnumerateRecords>d__19.MoveNext() in D:\source\repos\TpsParser\src\TpsParser\TpsFile.cs:line 155
at System.Linq.Enumerable.IEnumerableWhereSelectIterator`2.ToArray()
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at System.Linq.Enumerable.OrderedIterator`2.MoveNext()
at System.Linq.Lookup`2.Create(IEnumerable`1 source, Func`2 keySelector, IEqualityComparer`1 comparer)
at System.Linq.Enumerable.GroupByIterator`2.MoveNext()
at System.Linq.Enumerable.IEnumerableWhereIterator`1.MoveNext()
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at System.Collections.Frozen.FrozenDictionary.ToFrozenDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at TpsParser.TpsFile.ParseTableDefinitions(ErrorHandlingOptions errorHandlingOptions) in D:\source\repos\TpsParser\src\TpsParser\TpsFile.cs:line 327
at TpsParser.TpsFile.GetTableDefinitions(ErrorHandlingOptions errorHandlingOptions) in D:\source\repos\TpsParser\src\TpsParser\TpsFile.cs:line 322
at Program.<Main>$(String[] args) in D:\source\repos\TpsParserSandbox\Program.cs:line 10

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions