Rapid-XAML-Toolkit icon indicating copy to clipboard operation
Rapid-XAML-Toolkit copied to clipboard

VS freezes when Rapid-XAML-Toolkit is installed

Open MagicAndre1981 opened this issue 2 years ago • 7 comments

Describe the bug

When Rapid-XAML-Toolkit is installed, the VS freezes a lot during XAML file save or build start.

How can this be reproduced?

this happens often when I try to start a build of a project. Next VS2019 16.10 window is frozen and process has to be killed.

After playing a bit around with my installed VS extension, the issue stops if I remove all your Rapid-XAML-Toolkit extensions.

Which version of Visual Studio are you using?

  • [X] 2019
  • [ ] 2019 (preview)

Project Type

Xamarin.Forms

MagicAndre1981 avatar Jul 19 '21 06:07 MagicAndre1981

Version 0.12 added an option to disable the analysis on saving

image

It should also prompt to disable re-analyzing the document when it is saved if it repeatedly takes more than one second.

I've not encountered or heard of any issues impacting the build process or causing VS to freeze in this way. The extension doesn't do anything when a project (or solution) is built so I don't know what could be causing this. -- Assuming you haven't got the separate BuildAnalysis package added to the project, but even then that shouldn't cause a freeze as it runs as a separate process.

I've seen a pause on extension initialization a few times but not in a repeatable fashion. I've also seen this from other extensions that seemingly don't do anything on initialization but can still cause VS to report them as the cause of a freeze. I've investigated this previously to no avail but will look again.

mrlacey avatar Jul 19 '21 10:07 mrlacey

this freeze also happend for other project types (vs2019 extension that I tried to debug). I removed it now as I don't use it that much.

I created a 2nd VM (I only work with VMs to have a clean host) and here it also worked before I've installed your extension.

The host with Ryzen5 3600, 1TB MVMe EVO Plus SSD were the VMs are stored, 32GB DDR4 3200 is fast enough.

MagicAndre1981 avatar Jul 20 '21 06:07 MagicAndre1981

Version 0.12 added an option to disable the analysis on saving

image

It should also prompt to disable re-analyzing the document when it is saved if it repeatedly takes more than one second.

changing the setting has no impact. I tried to debug the VS2019 extension and VS2019 freezed again at "Build started ...". So I removed the extension again and build/debug works fine again.

I also had such a strange case some time ago. That extension caused VS to crash, but only when running inside a VM not when using VS2019 directly on a normal PC/laptop.

I'll leave this issue open for tracking but will not install the extension again.

MagicAndre1981 avatar Jul 26 '21 06:07 MagicAndre1981

I'm having an identical issue. Visual Studio 16.11.5. For some further oddities after installing this extension it does not appear in the right click context menu in the solution explorer. It does appear in the options. After enabling custom analysis in the options, it freezes visual studio for a substantial period of time.

Visual Studio displayed a message stating "Visual Studio stopped responding for 11 seconds. Disabling the extension Rapid XAML Analysis 0.13.1 might help." Disabling analysis on save stopped that problem, but the issue remains that any time the analysis does run it completely freezes visual studio for an extended period of time, which makes the extension unusable in its current state.

My Visual Studio install is pretty vanilla on a mid-upper tier system. The only possibly unusual situation is that I am installing/maintaining the prerequisites/extensions for WinUI 3 development.

MGRussell avatar Nov 03 '21 07:11 MGRussell

My Visual Studio install is pretty vanilla on a mid-upper tier system. The only possibly unusual situation is that I am installing/maintaining the prerequisites/extensions for WinUI 3 development.

what are your specs? Also AMD Ryzen?

MagicAndre1981 avatar Nov 04 '21 05:11 MagicAndre1981

Yip. Ryzen 5 3600 6-core @ 3.59ghz, 16GB ram, Win 10 21H1 build 19043.1288.

MGRussell avatar Nov 04 '21 09:11 MGRussell

ok, we both have the same CPU, so maybe this is an AMD Ryzen Zen2 issue.

MagicAndre1981 avatar Nov 04 '21 11:11 MagicAndre1981