-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_marshal_task_to_cs calls complete_task on already completed task #87963
Comments
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsDescriptionWe have a project that uses
To try to work around this problem we tried an AOT build (
This seems to be happening because of this call:
That is happening after this call:
Reproduction StepsWe are unable to create a small sample project that can be used to reproduce this issue. Expected behaviorThat the Actual behaviorWe are getting this error message instead Regression?No response Known WorkaroundsNo response Configuration.NET 7.0.304
Other informationNo response
|
cc @kg @pavelsavara |
|
Thanks for your quick response. I will try to create a smaller app where this can be reproduced but that won't be an easy task due to the complexity of the library and all it's dependencies. And it also looks like that small sample could be used to diagnose both issues. Adding both EDIT: The workaround did not work. I was watching something older due to some strange (non browser?) caching issues with the |
Perhaps the process of completing the task (running completion handlers?) is failing, so when we attempt to handle the exception, we go in and try to complete it with the new exception and that fails? |
Yes, looking at runtime/src/mono/wasm/runtime/marshal-to-cs.ts Lines 315 to 324 in cfe30c0
|
Description
We have a project that uses
<RuntimeIdentifier>browser-wasm</RuntimeIdentifier>
and copies the content ofAppBundle
to a JavaScript project. This dotnet project contains a lot of libraries and we have an issue were we could not found the root cause for. We are unable to reproduce it in a small project . I am adding the error message here because this might be related:To try to work around this problem we tried an AOT build (
RunAOTCompilationAfterBuild
). But we then got the following error reported in the console:This seems to be happening because of this call:
runtime/src/mono/wasm/runtime/marshal-to-cs.ts
Line 323 in 5331448
That is happening after this call:
runtime/src/mono/wasm/runtime/marshal-to-cs.ts
Line 318 in 5331448
Reproduction Steps
We are unable to create a small sample project that can be used to reproduce this issue.
Expected behavior
That the
RuntimeError: null function or function signature mismatch
error is reported.Actual behavior
We are getting this error message instead
An attempt was made to transition a task to a final state when it had already completed.
.Regression?
No response
Known Workarounds
No response
Configuration
.NET 7.0.304
Windows
Other information
No response
The text was updated successfully, but these errors were encountered: