Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Visual Studio crashes / closing when Compiling / Uploading the second time within a session (Read 269 times)
david_h
Newbies
*
Offline



Posts: 7
Germany
Visual Studio crashes / closing when Compiling / Uploading the second time within a session
Nov 13th, 2020 at 1:10pm
 
Hello,
My Visual Studio crashes or closes after the second time I compile or upload a scetch to my board. First time is ok, second time VS crashes without a visible error.

I allready uninstalled and reinstalles Visual Micro with the latest version.

Microsoft Visual Studio Enterprise 2019 Version 16.8.0
Nano Board ATmega328P
Upload via USB/Serial

see the attached output file and a gif with a recording of the behaviour:
- compiling and uploading the blink example project
- first time OK
- retry compiling and uploading
- second time crash
Back to top
 

Please Register or Login to the Forum to see File Attachments
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10895
United Kingdom
Re: Visual Studio crashes / closing when Compiling / Uploading the second time within a session
Reply #1 - Nov 13th, 2020 at 1:42pm
 
Hi

Please give the copied info from from help about.
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
david_h
Newbies
*
Offline



Posts: 7
Germany
Re: Visual Studio crashes / closing when Compiling / Uploading the second time within a session
Reply #2 - Nov 13th, 2020 at 1:46pm
 
What info do you need? can you please be more specific?
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10895
United Kingdom
Re: Visual Studio crashes / closing when Compiling / Uploading the second time within a session
Reply #3 - Nov 13th, 2020 at 1:49pm
 
Help > About Microsoft Visual Studio >Copy Info
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
david_h
Newbies
*
Offline



Posts: 7
Germany
Re: Visual Studio crashes / closing when Compiling / Uploading the second time within a session
Reply #4 - Nov 13th, 2020 at 1:51pm
 
Ah ok, pls see the txt file attached.
Back to top
 

Please Register or Login to the Forum to see File Attachments
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Online



Posts: 537
Re: Visual Studio crashes / closing when Compiling / Uploading the second time within a session
Reply #5 - Nov 13th, 2020 at 4:11pm
 
Thanks for the detail.

Could you try docking / pinning all windows to the main IDE window, and restart the IDE and re-test?

If that doesn't change anything, could you try a repair on Visual Studio?
Back to top
 
 
IP Logged
 
david_h
Newbies
*
Offline



Posts: 7
Germany
Re: Visual Studio crashes / closing when Compiling / Uploading the second time within a session
Reply #6 - Nov 14th, 2020 at 1:56pm
 
I tried docking all windows to the main IDE, didn't help.

So i repaired Visual Studio with the reset. This seems to help a little bit. I can build and uplaod the sketch for multiple times and Visual Studio doesn't crash with the second upload anymore.


I think I have found a big problem after many tests now: Visual Studio with the loaded Visual Micro Software can't handle Windows screen scaling any more.

The moment I change the Visual Studio window from my 200% scaled main laptop screen to a 100% scaled monitor, Visual Studio crashes.

Loading up Visual Studio on the 100% scaled monitor screen and debugging there lets Visual Studio crash the moment I click some UI after the first build and upload.

The UI of the serial monitor on the 100% scaled monitor is sometimes buggy, so that i cant see all UI elements.
Keeping all windows on my main laptop screen seems to work so far.

This behaviour only happens with the loaded Visual Micro Software in Visual Studio, not with a C# project for example.
I think Visual Micro can't handle windows scaling to be different from the main windows screen.
Back to top
« Last Edit: Nov 14th, 2020 at 1:57pm by david_h »  

Please Register or Login to the Forum to see File Attachments
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10895
United Kingdom
Re: Visual Studio crashes / closing when Compiling / Uploading the second time within a session
Reply #7 - Nov 14th, 2020 at 2:24pm
 
The tool windows are due for revamp from windows forms to xaml/wpf. Microsoft have implemented the scaling properly for xaml.

Having said that we have used the code that they provided to extension to developers that is supposed to be solid and do a better job than you are seeing.

Please post a screen shot of your "Tools>Options>General" settings.
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
david_h
Newbies
*
Offline



Posts: 7
Germany
Re: Visual Studio crashes / closing when Compiling / Uploading the second time within a session
Reply #8 - Nov 14th, 2020 at 2:29pm
 
Screenshot is attached.
Back to top
 

Please Register or Login to the Forum to see File Attachments
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10895
United Kingdom
Re: Visual Studio crashes / closing when Compiling / Uploading the second time within a session
Reply #9 - Nov 14th, 2020 at 2:59pm
 
Sorry I missed

"Tools>Options>Environment>General" that I need to see. It has the theme selection and some other checkboxes on it.
Back to top
« Last Edit: Nov 14th, 2020 at 2:59pm by Visual Micro »  

Tim Leek
home
WWW  
IP Logged
 
david_h
Newbies
*
Offline



Posts: 7
Germany
Re: Visual Studio crashes / closing when Compiling / Uploading the second time within a session
Reply #10 - Nov 14th, 2020 at 3:01pm
 
Screenshot is attached.
Back to top
 

Please Register or Login to the Forum to see File Attachments
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10895
United Kingdom
Re: Visual Studio crashes / closing when Compiling / Uploading the second time within a session
Reply #11 - Nov 14th, 2020 at 10:19pm
 
Thanks, would you mind temporarily disabling a few other of your non microsoft extensions such as cookie cutter and then restarting the ide to see if the issue continues.
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
david_h
Newbies
*
Offline



Posts: 7
Germany
Re: Visual Studio crashes / closing when Compiling / Uploading the second time within a session
Reply #12 - Nov 18th, 2020 at 10:03am
 
These extensions come with activated Visual Studio Installer Workloads for Python, or Azure, which I needed for other projects. I haven't installed any extension by myself, other than these official ones.

I have tried to "clean" re-install Visual Studio and Visual Micro on my Laptop without extensions, but I have the same issues and crashes.

Then I tried to install Visual Studio and Visual Micro on a second PC, but I have the same issues and crashes there.

I quit using Visual Micro after many hours and frustration!
Today, I have changed to the PlatformIO extension for Visual Studio Code and was able to get all my work done.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10895
United Kingdom
Re: Visual Studio crashes / closing when Compiling / Uploading the second time within a session
Reply #13 - Nov 18th, 2020 at 2:48pm
 
Thanks for the report. We don't have other reports of this but we will install what you installed and see if we can replicate.
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print