VS Arduino
Visual Micro >> Installation & Troubleshooting >> VS community 2019 Freezes
https://www.visualmicro.com/forums/YaBB.pl?num=1565724267

Message started by Abbott HMG on Aug 13th, 2019 at 7:24pm

Title: VS community 2019 Freezes
Post by Abbott HMG on Aug 13th, 2019 at 7:24pm
When I attempt to run a sketch (which runs properly in the Arduino IDE). As soon as the uploading message appears, VS freezes. I have to cancel it with Task .
I've tried uninstalling and reinstalling your vix module to no avail.
When I compile & run a 15 project asp.net solution I'm maintaining in VS2019, it compiles & runs properly.
Any suggestions?
Thanks
Abbott

Title: Re: VS community 2019 Freezes
Post by Visual Micro on Aug 13th, 2019 at 7:37pm
Hi

Some questions

What is the full version of vs2019 from help about? 15.x....

Is the tool bar set to Release or Debug? Setting to Release gives simplest test.

Please follow the guide above in the yellow box and Build but don't try to upload so we can see which board and usb drivers etc.

When you do try upload, the guide in the yellow box, will also show more clearly on-screen what is happening during the freeze.

Does pulling the usb cable after a freeze, unfreeze vs?




Title: VS community 2019 Freezes After Update
Post by cerberus on Aug 20th, 2019 at 4:33am
Hi,

Just updated my Visual Studio 2019 Community Edition with Visual Micro installed before the update. Now getting error saying plugin should be disbaled due to freezing - the ActivityLog.xml file shows :
<entry>
    <record>866</record>
    <time>2019/08/20 04:23:08.301</time>
    <type>Error</type>
    <source>Editor or Editor Extension</source>
    <description>System.InvalidCastException: Unable to cast COM object of type &apos;System.__ComObject&apos; to interface type &apos;Microsoft.VisualStudio.CppSvc.Internal.IVCPreferences&apos;. This operation failed because the QueryInterface call on the COM component for the interface with IID &apos;{20EEA973-013D-484D-B0C1-64F36A3A37B8}&apos; failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).&#x000D;&#x000A;   at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr&amp; ppTarget, Boolean&amp; pfNeedsRelease)&#x000D;&#x000A;   at Microsoft.VisualStudio.CppSvc.Internal.IVCPreferences.get_OnlineHelpSearchProvider_1()&#x000D;&#x000A;   at Microsoft.VisualStudio.VC.Utilities.GetSearchURL(String input, Boolean sanitize)&#x000D;&#x000A;   at Microsoft.VisualStudio.VC.IntelliSenseErrorSnapshot.TryGetValue(Int32 index, String columnName, Object&amp; content)&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.TableControl.Implementation.SnapshotTableEntryViewModel.TryGetValue(String columnName, Object&amp; content)</description>
  </entry>


I attached the verbose build file.

My Visual Studio About :

Microsoft Visual Studio Community 2019
Version 16.2.2
VisualStudio.16.Release/16.2.2+29209.62
Microsoft .NET Framework
Version 4.7.03190

Installed Version: Community

Visual C++ 2019   00435-60000-00000-AA104
Microsoft Visual C++ 2019

Arduino IDE for Visual Studio by Visual Micro   19.0
Visual Micro is an Arduino Compatible IDE for Visual Studio 2015-2019. For more information and forum please visit www.visualmicro.com.

ASP.NET and Web Tools 2019   16.2.290.48383
ASP.NET and Web Tools 2019

C# Tools   3.2.0-beta4-19380-04+5e176ad8aea2724fe6787495c6fcc9144c550de1
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Image Optimizer   4.0.132
Uses industry standard tools to optimize any JPEG, PNG and Gifs - including animated Gifs. Can do both lossy and lossless optimization.

Image Watch   1.0


Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual C++ Wizards   1.0
Microsoft Visual C++ Wizards

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

NuGet Package Manager   5.2.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

Open Command Line   2.1.218
Opens a command line at the root of the project. Support for all consoles such as CMD, PowerShell, Bash etc. Provides syntax highlighting, Intellisense and execution of .cmd and .bat files.

Productivity Power Tools 2017/2019   16.0
Installs the individual extensions of Productivity Power Tools 2017/2019

ProjectServicesPackage Extension   1.0
ProjectServicesPackage Visual Studio Extension Detailed Info

Qt Visual Studio Tools   2.3.4
The Qt Visual Studio Tools allow developers to use the standard development environment without having to worry about any Qt-related build steps or tools.

Test Adapter for Boost.Test   1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test.  The use terms and Third Party Notices are available in the extension installation directory.

Test Adapter for Google Test   1.0
Enables Visual Studio's testing tools with unit tests written for Google Test.  The use terms and Third Party Notices are available in the extension installation directory.

Visual Basic Tools   3.2.0-beta4-19380-04+5e176ad8aea2724fe6787495c6fcc9144c550de1
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual C++ for Linux Development   1.0.9.29110
Visual C++ for Linux Development

Visual Studio Code Debug Adapter Host Package   1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Tools for CMake   1.0
Visual Studio Tools for CMake

Visual Studio Tools for CMake   1.0
Visual Studio Tools for CMake

Thanks
Marcus




https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=logBuild.txt ( 55 KB | 2 Downloads )

Title: Re: VS community 2019 Freezes
Post by Visual Micro on Aug 20th, 2019 at 9:17am
The error in the activity log does not appear related to Visual Micro.

Not sure if this is related. We have a log that microsoft are looking into that causes a 5-8 second freeze first time vs runs after update or installing an extension. The freeze is in their code not ours but they report it as our extension.

Title: Re: VS community 2019 Freezes
Post by Abbott HMG on Aug 20th, 2019 at 7:30pm
After uninstalling rebooting reinstalling visualmicro ...also upgraded vs2019.- All is working well.
Not sure how it got screwed up
Thanks

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.