Skip to content
This repository was archived by the owner on Oct 21, 2021. It is now read-only.
This repository was archived by the owner on Oct 21, 2021. It is now read-only.

ArgumentOutOfRangeException in ParseAsUTF8String #7

@oddbear

Description

@oddbear

Tested both from NuGet and cloned Repo (lastest master commit in picture).

I am not sure why this happens, as I cannot always reproduce it (will update if I figure out more).
When I change values on a valueChoices list in a dynamic action (inlined), some times this happens, and the choice is selected in TouchPortal, but the OnListChangeEventHandler is not called.

image

Message: Specified argument was out of the range of valid values. (Parameter 'start')

   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument)
   at System.ReadOnlyMemory`1.Slice(Int32 start, Int32 length)
   at System.Buffers.ReadOnlySequence`1.Enumerator.MoveNext()
   at TouchPortalApi.Extensions.ReadOnlySquenceByteExtension.ParseAsUTF8String(ReadOnlySequence`1 slice, Int32 stringLengthEstimate) in C:\Users\oddbj\source\repos\TouchPortalAPI\TouchPortalApi\Extensions\ReadOnlySquenceByteExtension.cs:line 22
   at TouchPortalApi.MessageProcessor.ProcessLine(ReadOnlySequence`1 line) in C:\Users\oddbj\source\repos\TouchPortalAPI\TouchPortalApi\MessageProcessor.cs:line 87

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions