MatBlazor icon indicating copy to clipboard operation
MatBlazor copied to clipboard

VirtuallScroll: during scrolling appear JsonException

Open leshacsharp opened this issue 5 years ago • 2 comments

During scrolling in VirtuallScroll block appear System.Text.Json.JsonException

Steps to reproduce the behavior:

  1. Generate a VirtuallScroll block image
  2. Open a browser and start scrolling the block
  3. See the exceptions image

Text of the exception: blazor.server.js:1 Uncaught (in promise) Error: System.Text.Json.JsonException: The JSON value could not be converted to System.Int32. Path: $.scrollTop | LineNumber: 0 | BytePositionInLine: 30. ---> System.FormatException: Either the JSON value is not in a supported format, or is out of bounds for an Int32. at System.Text.Json.Utf8JsonReader.GetInt32() at System.Text.Json.Serialization.Converters.Int32Converter.Read(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options) at System.Text.Json.JsonPropertyInfo1.ReadJsonAndSetMember(Object obj, ReadStack& state, Utf8JsonReader& reader) at System.Text.Json.Serialization.Converters.ObjectDefaultConverter1.OnTryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value) at System.Text.Json.Serialization.JsonConverter1.TryRead(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options, ReadStack& state, T& value) at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) --- End of inner exception stack trace --- at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, Utf8JsonReader& reader, Exception ex) at System.Text.Json.Serialization.JsonConverter1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.Serialization.JsonConverter1.ReadCoreAsObject(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.JsonSerializer.ReadCore[TValue](JsonConverter jsonConverter, Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state) at System.Text.Json.JsonSerializer.ReadValueCore[TValue](JsonSerializerOptions options, Utf8JsonReader& reader, ReadStack& state) at System.Text.Json.JsonSerializer.Deserialize(Utf8JsonReader& reader, Type returnType, JsonSerializerOptions options) at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.ParseArguments(JSRuntime jsRuntime, String methodIdentifier, String arguments, Type[] parameterTypes) at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.InvokeSynchronously(JSRuntime jsRuntime, DotNetInvocationInfo& callInfo, IDotNetObjectReference objectReference, String argsJson) at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.BeginInvokeDotNet(JSRuntime jsRuntime, DotNetInvocationInfo invocationInfo, String argsJson) at Object.endInvokeDotNetFromJS (https://localhost:44301/_framework/blazor.server.js:1:70292) at e. (https://localhost:44301/_framework/blazor.server.js:8:119005) at https://localhost:44301/_framework/blazor.server.js:1:26293 at Array.forEach () at e.invokeClientMethod (https://localhost:44301/_framework/blazor.server.js:1:26263) at e.processIncomingData (https://localhost:44301/_framework/blazor.server.js:1:24201) at e.connection.onreceive (https://localhost:44301/_framework/blazor.server.js:1:17286) at WebSocket.i.onmessage (https://localhost:44301/_framework/blazor.server.js:1:46503)

leshacsharp avatar Nov 30 '20 06:11 leshacsharp

Example of VirtualScroll has the same issue

leshacsharp avatar Nov 30 '20 08:11 leshacsharp

This one ever getting fixed or are we just calling it? The issue causes items to not render

Kylar182 avatar May 08 '21 22:05 Kylar182