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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Wasm][AOT] System.Threading.CancellationTokenSource.ExecuteCallbackHandlers fails to compile #46855

Closed
jeromelaban opened this issue Jan 12, 2021 · 3 comments
Assignees
Labels
arch-wasm WebAssembly architecture area-Codegen-AOT-mono
Milestone

Comments

@jeromelaban
Copy link
Contributor

Description

using System.Threading.CancellationTokenSource:ExecuteCallbackHandlers indirectly fails with:

AOT Compilation failed for method 'void System.Threading.CancellationTokenSource:ExecuteCallbackHandlers (bool)'.

Workaround

Exclude System.Threading.CancellationTokenSource:ExecuteCallbackHandlers from the AOT profile.

Configuration

6b4c1ad

Regression?

No

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-System.Threading untriaged New issue has not been triaged by the area owner labels Jan 12, 2021
@marek-safar marek-safar added area-Codegen-AOT-mono arch-wasm WebAssembly architecture and removed area-System.Threading untriaged New issue has not been triaged by the area owner labels Jan 12, 2021
@ghost
Copy link

ghost commented Jan 12, 2021

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

Issue Details

Description

using System.Threading.CancellationTokenSource:ExecuteCallbackHandlers indirectly fails with:

AOT Compilation failed for method 'void System.Threading.CancellationTokenSource:ExecuteCallbackHandlers (bool)'.

Workaround

Exclude System.Threading.CancellationTokenSource:ExecuteCallbackHandlers from the AOT profile.

Configuration

6b4c1ad

Regression?

No

Author: jeromelaban
Assignees: -
Labels:

arch-wasm, area-Codegen-AOT-mono

Milestone: -

@marek-safar marek-safar added this to the 6.0.0 milestone Jan 12, 2021
@vargaz
Copy link
Contributor

vargaz commented Jan 12, 2021

It has a filter clause.

@lewing
Copy link
Member

lewing commented Jan 26, 2021

Blazor hits it crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] Unhandled exception rendering component: AOT Compilation failed for method 'void System.Threading.CancellationTokenSource:ExecuteCallbackHandlers (bool)'. System.ExecutionEngineException: AOT Compilation failed for method 'void System.Threading.CancellationTokenSource:ExecuteCallbackHandlers (bool)'. at System.Net.Http.Json.HttpContentJsonExtensions.<ReadFromJsonAsyncCore>d__3`1[[blazor.Pages.FetchData.WeatherForecast[], blazor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].MoveNext() at System.Net.Http.Json.HttpClientJsonExtensions.<GetFromJsonAsyncCore>d__9`1[[blazor.Pages.FetchData.WeatherForecast[], blazor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].MoveNext() at System.Net.Http.Json.HttpClientJsonExtensions.<GetFromJsonAsyncCore>d__9`1[[blazor.Pages.FetchData.WeatherForecast[], blazor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].MoveNext() at System.Net.Http.Json.HttpClientJsonExtensions.<GetFromJsonAsyncCore>d__9`1[[blazor.Pages.FetchData.WeatherForecast[], blazor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].MoveNext() at System.Net.Http.Json.HttpClientJsonExtensions.<GetFromJsonAsyncCore>d__9`1[[blazor.Pages.FetchData.WeatherForecast[], blazor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].MoveNext()

@lewing lewing assigned radekdoulik and unassigned vargaz Apr 15, 2021
@lewing lewing modified the milestones: 6.0.0, Future May 28, 2021
@lewing lewing closed this as completed Jun 17, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jul 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-Codegen-AOT-mono
Projects
None yet
Development

No branches or pull requests

6 participants