Skip to content

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

Closed

Description

@carlbm

Description

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:

image

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

Other information

No response

Activity

  1. ghost added
    untriaged
    on Nov 25, 2021
  2. added
    arch-wasm
    on Nov 30, 2021
  3. lambdageek commented on Nov 30, 2021

    @lambdageek
    Member

    @carlbm Do you have an app that you could share that demonstrates the issue?

  4. removed
    untriaged
    on Dec 3, 2021
  5. added this to the 6.0.x milestone on Dec 3, 2021
  6. kg commented on Dec 3, 2021

    @kg
    Contributor

    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?

  7. 85 remaining items

  8. ldsenow commented on Jun 16, 2022

    @ldsenow

    @maraf Very good news! Not possible to make it to .net 6.x?

  9. lewing commented on Jun 16, 2022

    @lewing
    Member

    @maraf Very good news! Not possible to make it to .net 6.x?

    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.

  10. maraf commented on Jun 16, 2022

    @maraf
    Member

    With the fix from #70823

    image

  11. achmstein commented on Jun 26, 2022

    @achmstein

    Will you push the fix to v6.x?

  12. maraf commented on Jun 27, 2022

    @maraf
    Member

    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.

  13. hakenr commented on Jul 13, 2022

    @hakenr
    Member

    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/

  14. radical commented on Jul 14, 2022

    @radical
    Member

    @maraf can this be closed now?

  15. maraf commented on Jul 14, 2022

    @maraf
    Member

    @maraf can this be closed now?

    I'm still looking for a way to backport it to 6.0.

  16. ldsenow commented on Jul 14, 2022

    @ldsenow

    @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

  17. Grandizer commented on Aug 5, 2022

    @Grandizer

    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.

  18. DannyRichardsonWG commented on Aug 24, 2022

    @DannyRichardsonWG

    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.

  19. ldsenow commented on Oct 10, 2022

    @ldsenow

    .net 6 is a LTS release. I assume MS should back port it to .net 6.

  20. lewing commented on Oct 15, 2022

    @lewing
    Member

    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.

  21. ghost locked as resolved and limited conversation to collaborators on Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-wasmarea-GC-mono

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions