Completely freezes Rider Avalonia UI visual previewer when used

See original GitHub issue

New Avalonia project, using all the latest releases to day (fresh install of .Net Core, Rider, Avalonia etc…) running on a Mac.

New project, add this library using dotnet add command line, then in a axaml file add either <svg ... /> or <Image Source="{SvgImage ...}" /> and the visual previewer in Rider completely hangs and doesn’t work.

Comment it out and replace with <Image Path="image.png" /> and UI starts working again.

image

Tried restarts, remaking the application, and 2 machines, exactly the same issue.

Source code is here https://github.com/angelsix/youtube/tree/08a0263702ba319b0e7553ddcc7934a3ec127772/Avalonia/AvaloniaLoudnessMeter and video of issue is here https://youtu.be/VM-4NwdeXlo

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
wieslawsoltescommented, Jul 24, 2022

Added comment to README so others can also find the workaround https://github.com/wieslawsoltes/Svg.Skia#avalonia-previewer

0reactions
wieslawsoltescommented, Jul 25, 2022

Awesome thanks that KeepAlive fixed it. Perhaps keep this open until its fixed somehow?

I added comment to README with the workaround, and I don’t think it’s easily fixable as it’s related to .netcoreapp model and dependency resolution, so way bigger issue than Avalonia.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Editor is freezing extremely frequently, have to force close to ...
The UI will freeze and become unresponsive. Strangely I can still minimize / maximize fine, and resize sub windows (like the settings window), ......
Read more >
axaml previewer not working · AvaloniaUI Avalonia
In the designer view in Visual Studio It says "Process Exited" "The previewer process exited unexpectedly. See the output window for more information"....
Read more >
Visual Studio Hangs opening Avalonia
The IDE hangs (stops responding and does not recover, even after a long wait) · The IDE is very slow for the first...
Read more >
Debugging Previewer
This is because Previewer is a completely different process usually run by IDE. Debugging with JetBrains Rider. First of all to debug previewer...
Read more >
MAUI vs Avalonia : r/csharp
Avalonia, just started using, it works so far, sometimes the preview works, other times you need to run the app to see a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found