dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.19k stars 9.93k forks source link

[Blazor server side] Error: Connection disconnected with error 'Error: Server timeout elapsed without receiving a message from the server.'. #10877

Closed julienGrd closed 5 years ago

julienGrd commented 5 years ago

Hello guys,

I meet some problems on some views with a lot of data (complex view, table with lot of rows, etc). What's happening is I lost the signalR connection.

Typically, the first time i land on the page is OK. After i go to anoter page => still OK After i come back to my page with lot of data and that's now the problem happen

The actions on my page have no effect, on the console output of visual studio i can see a lot of The thread xxxx has exited with code 0 (0x0)

after maybe 10 seconds, I can see in the chrome console Error: Connection disconnected with error 'Error: Server timeout elapsed without receiving a message from the server.'. and signalR connection is come back and i can use again application.

I don't know whats happen, there is no Exception, I wanted to know if there is a way to investigate and understand what's happen (application consume too many resources ? memory leak ? blazor bug ?).

Unfortunately, i'm not able to reproduce the case, my app is definitively too complex too reproduce the same environment. I try with the starter project and two view with each a table of 5000 rows and it's not reproduce the problem (it's very slow of course, but the signalR connection is not lost).

I'm pretty sure is a performance problem, because for the same view, if i have 10 rows in my grid the problem not happen and if i have 100 rows the problem happen. But impossible to know what's happening really

thanks for your help !

Julien

BrennanConroy commented 5 years ago

This sounds very similar to https://github.com/aspnet/AspNetCore/issues/9683.

We fixed a bug that caused the connection to hang with large payloads. Can you try out the daily bits and see if the issue still reproduces? https://github.com/aspnet/AspNetCore/blob/master/docs/DailyBuilds.md

julienGrd commented 5 years ago

Yes it can be the same problem !

I try to use the daily build

But my projects is still on preview5, I think i miss something to switch the nuget of my projects from preview5 -> preview 7

It seem the new Nuget.config in my project is not read/use.

danroth27 commented 5 years ago

@julienGrd Do you have a simple project that reproduces the issue that we could take a look at? That way we can help up with the required migrations steps to move to preview6 builds.

julienGrd commented 5 years ago

@danroth27 Unfortunately no, my app is definitively too complex, it's a migration from a big silverlight application where I load existing ViewModel and I let existing code drive the application.

I try to reproduce on a simple project, with two views with table with 5000 rows each and move from view to another but no way, on a simple project can be slow but still working.

What I can say more about this bug

So i think for the moment just wait for the preview6 see what' happen. It's really strange because I just see this bug few days ago, but i'm on the preview5 since the beginnning, So maybe i do something wrong. But impossible to investigate by myself and impossible to give you reproduce steps

julienGrd commented 5 years ago

Hello, since the preview 6, i'm unable to reproduce the problem on my app.

so I close this issue