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
privateasyncvoidButton_OnClick(object?sender,RoutedEventArgse){varlayout=newLayout();vartrace=newTrace("bar");varfig=GenericChart.Figure.create(ListModule.OfSeq(new[]{trace}),layout);varchart=GenericChart.fromFigure(fig);// This works nowawaitchart.ToBase64PNGStringAsync();// This never terminateschart.ToBase64PNGString();// If we get to this line, it terminatedthrownewException();}
5. Run
dotnet run
Now, once it started, click the button. Successful completion is when the exception occurs.
The text was updated successfully, but these errors were encountered:
WhiteBlackGoose
changed the title
Synchronous invokation deadlock still occures
[ImageExport] Synchronous invokation deadlock still occures
Jul 11, 2022
Uh oh!
There was an error while loading. Please reload this page.
Problem
This is the problem that we intended to fix with PR #321. It is fixed partially.
After we migrated to tasks instead of F#'s async, plus we changed
The async version works, as in, completes. However, the synchronous version still does not terminate
Reproduction
I'm going to present the repro with AvaloniaUI, but it should be as well reproduced in WinForms or WPF if you're on Windows.
1. Install templates & create project:
2. Install the package
Add source & install the latest
3. Adding a component
Go to
MainWindow.axaml
and replace some default thingy with a button4. Adding event
Go to
MainWindow.axaml.cs
and add this method:5. Run
Now, once it started, click the button. Successful completion is when the exception occurs.
The text was updated successfully, but these errors were encountered: