Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blazor WASM: "[MONO] * Assertion at ..., condition `<disabled>' not met" (AGAIN) #99030

Open
PaulSorauer-IPG opened this issue Feb 28, 2024 · 3 comments
Labels
arch-wasm WebAssembly architecture area-VM-meta-mono
Milestone

Comments

@PaulSorauer-IPG
Copy link

Description

This looks like a gnarly one. 馃槼

I'm getting an "Error: [MONO] * Assertion at /__w/1/s/src/mono/mono/sgen/sgen-gc.c:2849, condition `' not met" exception raised in the browser in multiple places in my Blazor WASM app.

Anecdotally, this started around the point that I upgraded the .NET version from 8.0.0 to 8.0.2.

I've found a couple of similar threads, but they've long been resolved:

I was wondering if it was simply an 8.0.2 issue, but to my horror, if I downgrade my .NET version the error still occurs. "And why do you use the word, 'horror'?", I hear you ask? I'm glad you asked...

Even if I'm running .NET 8.00 or .NET 8.0.1, despite cleaning the repo via a git clean -fXd command, rebuilding the solution, clearing the entire browser cache or using different browsers, when I right-click the error in the browser it seems to indicate that it's coming from the 8.0.2 runtime:

2024-02-28_16-01-07

I don't understand how I can no reference at all to .NET 8.0.2 with all the previous build artefacts nuked, but the app seems to still be running 8.02.

So long story short, I can't seem to get rid of the exception now it's started. Doesn't matter if I'm running .NET 8.00 or 8.0.1 or 8.0.2.

Can anyone assist me in troubleshooting this further, please? I've absolutely no idea where to go from here.

Cheers.

Reproduction Steps

I have no idea how to create something to preproduce this, considering I don't know where the problem lies and my entire solution is 150K lines of code (which I can't release).

Expected behavior

No Mono runtime exceptions

Actual behavior

Getting Mono runtime exceptions

Regression?

As above, I'm getting this across versions of .NET 8.0.0 - 8.0.2.

Known Workarounds

No response

Configuration

Using Blazor - tried in both Chrome and Edge.

Other information

No response

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Feb 28, 2024
@vitek-karas vitek-karas added the arch-wasm WebAssembly architecture label Feb 28, 2024
@ghost
Copy link

ghost commented Feb 28, 2024

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Description

This looks like a gnarly one. 馃槼

I'm getting an "Error: [MONO] * Assertion at /__w/1/s/src/mono/mono/sgen/sgen-gc.c:2849, condition `' not met" exception raised in the browser in multiple places in my Blazor WASM app.

Anecdotally, this started around the point that I upgraded the .NET version from 8.0.0 to 8.0.2.

I've found a couple of similar threads, but they've long been resolved:

I was wondering if it was simply an 8.0.2 issue, but to my horror, if I downgrade my .NET version the error still occurs. "And why do you use the word, 'horror'?", I hear you ask? I'm glad you asked...

Even if I'm running .NET 8.00 or .NET 8.0.1, despite cleaning the repo via a git clean -fXd command, rebuilding the solution, clearing the entire browser cache or using different browsers, when I right-click the error in the browser it seems to indicate that it's coming from the 8.0.2 runtime:

2024-02-28_16-01-07

I don't understand how I can no reference at all to .NET 8.0.2 with all the previous build artefacts nuked, but the app seems to still be running 8.02.

So long story short, I can't seem to get rid of the exception now it's started. Doesn't matter if I'm running .NET 8.00 or 8.0.1 or 8.0.2.

Can anyone assist me in troubleshooting this further, please? I've absolutely no idea where to go from here.

Cheers.

Reproduction Steps

I have no idea how to create something to preproduce this, considering I don't know where the problem lies and my entire solution is 150K lines of code (which I can't release).

Expected behavior

No Mono runtime exceptions

Actual behavior

Getting Mono runtime exceptions

Regression?

As above, I'm getting this across versions of .NET 8.0.0 - 8.0.2.

Known Workarounds

No response

Configuration

Using Blazor - tried in both Chrome and Edge.

Other information

No response

Author: PaulSorauer-IPG
Assignees: -
Labels:

arch-wasm, untriaged, area-VM-meta-mono

Milestone: -

@lewing lewing added this to the 8.0.x milestone Mar 4, 2024
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Mar 4, 2024
@lewing
Copy link
Member

lewing commented Mar 4, 2024

Your inability to get out of the broken state is likely because the workload manifests were updated to 8.0.2 and they do not get overwritten by new installs.

@PaulSorauer-IPG
Copy link
Author

Actually we found the cause but I still think this is a strange symptom...

We were overriding an async init but had called the synchronous version of the base init by mistake.

We had a large commit so it was hard to find. How that error caused this is a whole different question.

Leaving this open for visibility in case there's a deeper issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm WebAssembly architecture area-VM-meta-mono
Projects
None yet
Development

No branches or pull requests

3 participants