Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • 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
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) Visual Studio crashes / closing when Compiling / Uploading the second time within a session (Read 2282 times)
david_h
Newbies
*
Offline


Posts: 7
Location: Germany
Joined: Nov 11th, 2020
Visual Studio crashes / closing when Compiling / Uploading the second time within a session
Nov 13th, 2020 at 1:10pm
Print Post  
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
  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Studio crashes / closing when Compiling / Uploading the second time within a session
Reply #1 - Nov 13th, 2020 at 1:42pm
Print Post  
Hi

Please give the copied info from from help about.
  
Back to top
WWW  
IP Logged
 
david_h
Newbies
*
Offline


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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Studio crashes / closing when Compiling / Uploading the second time within a session
Reply #3 - Nov 13th, 2020 at 1:49pm
Print Post  
Help > About Microsoft Visual Studio >Copy Info
  
Back to top
WWW  
IP Logged
 
david_h
Newbies
*
Offline


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

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


Posts: 2145
Joined: Feb 13th, 2019
Re: Visual Studio crashes / closing when Compiling / Uploading the second time within a session
Reply #5 - Nov 13th, 2020 at 4:11pm
Print Post  
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
Location: Germany
Joined: Nov 11th, 2020
Re: Visual Studio crashes / closing when Compiling / Uploading the second time within a session
Reply #6 - Nov 14th, 2020 at 1:56pm
Print Post  
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.
« Last Edit: Nov 14th, 2020 at 1:57pm by david_h »  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Studio crashes / closing when Compiling / Uploading the second time within a session
Reply #7 - Nov 14th, 2020 at 2:24pm
Print Post  
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
WWW  
IP Logged
 
david_h
Newbies
*
Offline


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

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Studio crashes / closing when Compiling / Uploading the second time within a session
Reply #9 - Nov 14th, 2020 at 2:59pm
Print Post  
Sorry I missed 

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


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

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Studio crashes / closing when Compiling / Uploading the second time within a session
Reply #11 - Nov 14th, 2020 at 10:19pm
Print Post  
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
WWW  
IP Logged
 
david_h
Newbies
*
Offline


Posts: 7
Location: Germany
Joined: Nov 11th, 2020
Re: Visual Studio crashes / closing when Compiling / Uploading the second time within a session
Reply #12 - Nov 18th, 2020 at 10:03am
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Studio crashes / closing when Compiling / Uploading the second time within a session
Reply #13 - Nov 18th, 2020 at 2:48pm
Print Post  
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
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint