You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Blazor WASM crashes after a time with Assertion: should not be reached at /__w/1/s/src/mono/mono/mini/../sgen/sgen-scan-object.h:91 558006 @ dotnet.6.0.0.csqdfrwtlv.js:1 #62054
After leaving a blazor wasm app open for a length of time (and through sleep/wake cycles) the app will eventually crash (normally 8-12 hours, but can be quicker).
The console looks like:
With Assertion: should not be reached at /__w/1/s/src/mono/mono/mini/../sgen/sgen-scan-object.h:91
558006 @ dotnet.6.0.0.csqdfrwtlv.js:1
Reproduction Steps
Create WASM app that has timed interaction with a server, leave for a while.
Expected behavior
The app should continue to work
Actual behavior
The app crashes. There is nothing the user can do except for reloading the page
Regression?
Unsure
Known Workarounds
No response
Configuration
Running on .Net 6
Windows, chrome browser Version 95.0.4638.69 (Official Build) (64-bit)
x64
unsure
tested in chrome
If you can't share an app, can you describe what the app does? Are there timers running, does it keep sockets open? Does it issue network requests?
When you say sleep/wake cycles do you mean you're sleeping and waking your PC?
The situation is a bit more complicated, as the fix is also dependent on something that happened between preview5 and preview6. I'm trying to find the relevant change and put together all that is needed as the actual fix.
Once I have the list and once we are sure it's fixed, we'll will see if it's doable to fix net6.0.
In hope that this will help, I received the same error message about Assertion: should not be reached and my issue was because I had an event on an objects OnChange and then within a method that gets called when changed, it was changing to item thus calling the OnChange method again. Took about 4,000 iterations to occur, but I removed the OnChange event handler and the error went away.
Do you know now if this can be back-ported to .NET6? If so, would it be likely before the official release of .NET7? We've just started hitting this on a production release and updating to a preview of a non-LTS version isn't ideal. I've got my fingers crossed a fix for LTS can be made but if not we need to start looking at the upgrade route.
Unfortunately this is a complicated issue and is not currently a servicing candidate for net6.0. We have developed an entirely new js interop mechanism to resolve some of the fundamental problems we believe are the root cause of this issue and have used it to replace the code in question. There was initially some hope for a limited scope change in net6.0 but further testing indicated it was not a true fix and the fundamental problems persist.
I understand this may be problematic so If you are unable retarget your wasm project to net7.0 it would be helpful to understand why.
Activity
lambdageek commentedon Nov 30, 2021
@carlbm Do you have an app that you could share that demonstrates the issue?
kg commentedon Dec 3, 2021
If you can't share an app, can you describe what the app does? Are there timers running, does it keep sockets open? Does it issue network requests?
When you say sleep/wake cycles do you mean you're sleeping and waking your PC?
85 remaining items
ldsenow commentedon Jun 16, 2022
@maraf Very good news! Not possible to make it to .net 6.x?
lewing commentedon Jun 16, 2022
we consider this a candidate for servicing in net6.0 so once we are confident it has been resolved in main we will explore the options.
maraf commentedon Jun 16, 2022
With the fix from #70823
achmstein commentedon Jun 26, 2022
Will you push the fix to v6.x?
maraf commentedon Jun 27, 2022
The situation is a bit more complicated, as the fix is also dependent on something that happened between preview5 and preview6. I'm trying to find the relevant change and put together all that is needed as the actual fix.
Once I have the list and once we are sure it's fixed, we'll will see if it's doable to fix net6.0.
hakenr commentedon Jul 13, 2022
Hi all,
my very first tests confirm, that the issue is resolved in .NET 7 Preview 6.
Many thanks to everyone involved!!!
🥇 🥇 🥇
PS: Whoever wants to test, this is the repro deployed with .NET 7 Preview 6:
https://wasmgrpcerrorrepronet7.azurewebsites.net/
radical commentedon Jul 14, 2022
@maraf can this be closed now?
maraf commentedon Jul 14, 2022
I'm still looking for a way to backport it to 6.0.
ldsenow commentedon Jul 14, 2022
@maraf please try your best to make it to .net 6. I will be crying when I see it and you n the team will be forever my hero
Grandizer commentedon Aug 5, 2022
In hope that this will help, I received the same error message about
Assertion: should not be reachedand my issue was because I had an event on an objects OnChange and then within a method that gets called when changed, it was changing to item thus calling the OnChange method again. Took about 4,000 iterations to occur, but I removed the OnChange event handler and the error went away.DannyRichardsonWG commentedon Aug 24, 2022
Hi @maraf
Do you know now if this can be back-ported to .NET6? If so, would it be likely before the official release of .NET7? We've just started hitting this on a production release and updating to a preview of a non-LTS version isn't ideal. I've got my fingers crossed a fix for LTS can be made but if not we need to start looking at the upgrade route.
ldsenow commentedon Oct 10, 2022
.net 6 is a LTS release. I assume MS should back port it to .net 6.
lewing commentedon Oct 15, 2022
Unfortunately this is a complicated issue and is not currently a servicing candidate for net6.0. We have developed an entirely new js interop mechanism to resolve some of the fundamental problems we believe are the root cause of this issue and have used it to replace the code in question. There was initially some hope for a limited scope change in net6.0 but further testing indicated it was not a true fix and the fundamental problems persist.
I understand this may be problematic so If you are unable retarget your wasm project to net7.0 it would be helpful to understand why.