Skip to content

Server-side Blazor: render loop and update stops responding #46217

@xsIceman

Description

@xsIceman

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Hi,

I'm working on a server-side Blazor application. sometimes while the application is running i get a situation where the application stops responding to gui events. Have enabled logging on web side and can see that websocket is still alive. But when i am in this situation i only get ping data from server.
blazor.server.js:1 [2023-01-23T14:45:51.786Z] Trace: (WebSockets transport) data received. Binary data of length 3. blazor.server.js:1 [2023-01-23T14:46:05.753Z] Trace: (WebSockets transport) sending data. Binary data of length 3. blazor.server.js:1 [2023-01-23T14:46:06.793Z] Trace: (WebSockets transport) data received. Binary data of length 3. blazor.server.js:1 [2023-01-23T14:46:21.761Z] Trace: (WebSockets transport) sending data. Binary data of length 3. blazor.server.js:1 [2023-01-23T14:46:22.786Z] Trace: (WebSockets transport) data received. Binary data of length 3. blazor.server.js:1 [2023-01-23T14:46:37.767Z] Trace: (WebSockets transport) sending data. Binary data of length 3. blazor.server.js:1 [2023-01-23T14:46:38.790Z] Trace: (WebSockets transport) data received. Binary data of length 3. blazor.server.js:1 [2023-01-23T14:46:53.756Z] Trace: (WebSockets transport) sending data. Binary data of length 3. blazor.server.js:1 [2023-01-23T14:46:54.784Z] Trace: (WebSockets transport) data received. Binary data of length 3. blazor.server.js:1 [2023-01-23T14:47:03.768Z] Trace: (WebSockets transport) sending data. Binary data of length 373. blazor.server.js:1 [2023-01-23T14:47:04.454Z] Trace: (WebSockets transport) sending data. Binary data of length 373. blazor.server.js:1 [2023-01-23T14:47:04.870Z] Trace: (WebSockets transport) sending data. Binary data of length 373. blazor.server.js:1 [2023-01-23T14:47:05.255Z] Trace: (WebSockets transport) sending data. Binary data of length 373. blazor.server.js:1 [2023-01-23T14:47:09.790Z] Trace: (WebSockets transport) data received. Binary data of length 3.

Have enabled logging on server side and get the following when i click and events:

VRB 15:47:03:770] [WebSocketsTransport] Message received. Type: Binary, size: 373, EndOfMessage: True. [DBG 15:47:03:771] [DefaultHubDispatcher] Received hub invocation: InvocationMessage { InvocationId: "", Target: "BeginInvokeDotNetFromJS", Arguments: [ 48, , DispatchEventAsync, 1, [{"eventHandlerId":522,"eventName":"click","eventFieldInfo":null},{"detail":1,"screenX":647,"screenY":764,"clientX":646,"clientY":684,"offsetX":64,"offsetY":13,"pageX":646,"pageY":684,"movementX":0,"movementY":0,"button":0,"buttons":0,"ctrlKey":false,"shiftKey":false,"altKey":false,"metaKey":false,"type":"click"}] ], StreamIds: [ ] }. [VRB 15:47:03:772] [DefaultHubDispatcher] InvocationId null: Sending result of type 'System.Void'. [VRB 15:47:04:455] [WebSocketsTransport] Message received. Type: Binary, size: 373, EndOfMessage: True. [DBG 15:47:04:457] [DefaultHubDispatcher] Received hub invocation: InvocationMessage { InvocationId: "", Target: "BeginInvokeDotNetFromJS", Arguments: [ 49, , DispatchEventAsync, 1, [{"eventHandlerId":522,"eventName":"click","eventFieldInfo":null},{"detail":1,"screenX":620,"screenY":770,"clientX":620,"clientY":690,"offsetX":37,"offsetY":19,"pageX":620,"pageY":690,"movementX":0,"movementY":0,"button":0,"buttons":0,"ctrlKey":false,"shiftKey":false,"altKey":false,"metaKey":false,"type":"click"}] ], StreamIds: [ ] }. [VRB 15:47:04:458] [DefaultHubDispatcher] InvocationId null: Sending result of type 'System.Void'. [VRB 15:47:04:871] [WebSocketsTransport] Message received. Type: Binary, size: 373, EndOfMessage: True. [DBG 15:47:04:871] [DefaultHubDispatcher] Received hub invocation: InvocationMessage { InvocationId: "", Target: "BeginInvokeDotNetFromJS", Arguments: [ 50, , DispatchEventAsync, 1, [{"eventHandlerId":522,"eventName":"click","eventFieldInfo":null},{"detail":2,"screenX":620,"screenY":770,"clientX":620,"clientY":690,"offsetX":37,"offsetY":19,"pageX":620,"pageY":690,"movementX":0,"movementY":0,"button":0,"buttons":0,"ctrlKey":false,"shiftKey":false,"altKey":false,"metaKey":false,"type":"click"}] ], StreamIds: [ ] }. [VRB 15:47:04:872] [DefaultHubDispatcher] InvocationId null: Sending result of type 'System.Void'. [VRB 15:47:05:256] [WebSocketsTransport] Message received. Type: Binary, size: 373, EndOfMessage: True. [DBG 15:47:05:257] [DefaultHubDispatcher] Received hub invocation: InvocationMessage { InvocationId: "", Target: "BeginInvokeDotNetFromJS", Arguments: [ 51, , DispatchEventAsync, 1, [{"eventHandlerId":522,"eventName":"click","eventFieldInfo":null},{"detail":3,"screenX":619,"screenY":767,"clientX":618,"clientY":687,"offsetX":36,"offsetY":16,"pageX":618,"pageY":687,"movementX":0,"movementY":0,"button":0,"buttons":0,"ctrlKey":false,"shiftKey":false,"altKey":false,"metaKey":false,"type":"click"}] ], StreamIds: [ ] }. [VRB 15:47:05:259] [DefaultHubDispatcher] InvocationId null: Sending result of type 'System.Void'. [VRB 15:47:09:790] [HubConnectionContext] Sent a ping message to the client. [VRB 15:47:09:790] [WebSocketsTransport] Sending payload: 3 bytes. [VRB 15:47:10:768] [WebSocketsTransport] Message received. Type: Binary, size: 3, EndOfMessage: True. [VRB 15:47:12:792] [HubConnectionContext] Sent a ping message to the client. [VRB 15:47:12:792] [WebSocketsTransport] Sending payload: 3 bytes.

I have the rest of the log files, can upload if needed

Expected Behavior

Render loop should not stop.

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

7.0.100

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackThe author of this issue needs to respond in order for us to continue investigating this issue.Needs: ReproIndicates that the team needs a repro project to continue the investigation on this issueStatus: No Recent Activityarea-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions