Visual Studio Ide for Arduino
https://www.visualmicro.com/forums/YaBB.pl
Visual Micro >> Installation & Troubleshooting >> SOLVED in 1905.29.4: Serial Monitor broken in VS2019 after Windows 1903 Update
https://www.visualmicro.com/forums/YaBB.pl?num=1558939310

Message started by qrtio on May 27th, 2019 at 7:41am

Title: SOLVED in 1905.29.4: Serial Monitor broken in VS2019 after Windows 1903 Update
Post by qrtio on May 27th, 2019 at 7:41am
The Serial Monitor shows but it stays empty with no buttons, sometimes the text behind the window looks through. I can only resize, drag or close it.

Upload to board works fine.
External terminal program like putty receives serial data from arduino.

Windows 1903
Microsoft Visual Studio Community 2019 - Version 16.1.1
Arduino 1.8.9
Visualmicro 1905.5.24.0


ser.png (7 KB | 5 )

Title: Re: Serial Monitor broken
Post by Visual Micro on May 27th, 2019 at 1:17pm
Thanks for the report. Th monitor is probably showing the data but the textbox is not being displayed. You can see the "footer" bar at the top of the window which is wrong.

This is an issue related to screen resize because of high dpi. I guess you are using a larger dpi than normal what is it?


Title: Re: Serial Monitor broken
Post by Visual Micro on May 27th, 2019 at 2:50pm
Please try this version and also make sure you undock your serial monitor window(s). Looking again at your screen shot it looks like that somehow there are two serial monitors open on the same power docked into the same frame.

https://1drv.ms/u/s!AsT00oFsGAmRncEPNouKetMMMdzvew

Title: Re: Serial Monitor broken
Post by qrtio on May 27th, 2019 at 3:33pm
thanks for your quick reply.

My DPI setting is 175% on the PC with 4k screen and 200% on a laptop. Both show the same problem. Here is an other screenshot, sometimes half of the window is white or black, the other half transparent.

For your download link I have to enter _my_ Microsoft credentials?

ser2.png (18 KB | 6 )

Title: Re: Serial Monitor broken
Post by Visual Micro on May 27th, 2019 at 3:43pm
Oh I see that is an issue with the new themes I think. Please state which exact version of vs you are using from help about.

I didn't realize that one drive need the credentials. It's a public share. Does this link require credentials?
https://1drv.ms/u/s!AsT00oFsGAmRncEPNouKetMMMdzvew

Title: Re: Serial Monitor broken
Post by Visual Micro on May 27th, 2019 at 4:04pm
Another thought, the update might actually resolve the issue. It contains a fix for a missing color for the outbound serial data textbox which might be interfering with the 4k side of things.

Title: Re: Serial Monitor broken
Post by qrtio on May 27th, 2019 at 5:02pm
The version you gave me shows the same behavior.

Attached is the exact VS version.

ser3.png (5 KB | 6 )

Title: Re: Serial Monitor broken
Post by Visual Micro on May 27th, 2019 at 5:20pm
Thanks, can you confirm if the Micro Explorer has same issue? I have tested same vs version with different dpi and can not replicate.

EDIT: This release sets theme colors at a slightly later time and hopefully avoids wasting time
https://1drv.ms/u/s!AsT00oFsGAmRncM2cKpJLaaN_lXrxg

If the Micro explorer is the same, I know this sounds like a waste of time because you have same on multiple machines but can you please try to run a vs2019 repair. It seems like vs doesn't want to load the win form user controls.

Can you also give a htlp>about diag report with your installed extensions?

Thanks for the help.

Title: Re: Serial Monitor broken
Post by Adrian Lorenz on May 28th, 2019 at 8:02am
I have the same problem since yesterday, my serial monitor remains empty.

After the update to Windows 1903

the version from the dropbox, does not work, I now see the serial window. it remains empty

Title: Re: Serial Monitor broken
Post by Visual Micro on May 28th, 2019 at 8:34am
Thanks for the info. I need the question answered "does the visual micro platform explorer have the same problem or work okay"?

Thanks

Title: Re: Serial Monitor broken
Post by qrtio on May 28th, 2019 at 9:12am
The 'Visual Micro Explorer' (same as visual micro platform explorer?) works well.

A new installation of VS did not resolve the problem.

Setting the system screen scaling to 100% did not resolve it too.


But I found a crude solution.

In short, despite the lack of a compatibility setting tab for the VS desktop icon, I managed to start VS in 100% scale mode, the UI is blurry now, but serial monitor shows up complete and it works correct.

Title: Re: Serial Monitor broken
Post by Visual Micro on May 28th, 2019 at 10:53am
That's useful thanks

Please try this release 1905.26

https://1drv.ms/u/s!AsT00oFsGAmRncM8l2IoKbN2YJJSqQ

Title: Re: Serial Monitor broken
Post by qrtio on May 28th, 2019 at 12:49pm
Version 1905.26 did not bring any change.

Title: Re: Serial Monitor broken
Post by Adrian Lorenz on May 28th, 2019 at 3:06pm
this version does not bring any improvement, only now the Explorer does not work anymore



screen_004.PNG (111 KB | 9 )

Title: Re: Serial Monitor broken
Post by Visual Micro on May 28th, 2019 at 3:20pm
Thanks, we will resolve over the next few days. The version can be uninstalled using Extensions>Extension Manager and older versions of the extension are in the release section of this forum.

Thanks for all the effort

Title: Re: Serial Monitor broken
Post by Visual Micro on May 28th, 2019 at 3:20pm
Thanks, we will resolve over the next few days. The version can be uninstalled using Extensions>Extension Manager and older versions of the extension are in the release section of this forum.

Thanks for all the effort

Title: Re: Serial Monitor broken
Post by Visual Micro on May 28th, 2019 at 5:11pm
Can you please uninstall visual micro and install a version of visual micro from early April just to prove this is not build related. I found a similar post on the microsoft site which says the issue was fixed but it;s possible we have a variation. Based on your test results I think we can find a solution more quickly.

Thanks

https://developercommunity.visualstudio.com/content/problem/523457/the-data-sources-tool-window-content-is-not-render.html


Title: Re: Serial Monitor broken
Post by Visual Micro on May 28th, 2019 at 7:13pm
Hi all,

We have fully tested with high res and do not have the issue. So it seems entirely related to the 1903 windows update which is being rolled out slowly. We do not have access to it yet!

Microsoft are responsible for drawing the tool windows so please use "Help>Send Feedback>Report and issue" to notify microsoft of the problem.

I have also reported the issue but because you have the issue it would really help if you could do this.

Thanks very much

ps: we will soon convert from win forms tool windows to WPF which I doubt suffers the same issue. Microsoft have been trying to get the dpi auto scale right for standard windows forms controls and I suspect they have something tidy up work to do. Either that or we will be moving to wpf sooner than expected but the develop holds back more useful things.

Title: Re: Serial Monitor broken
Post by qrtio on May 31st, 2019 at 2:06pm
Some minutes ago I managed by chance to make the serial monitor showing up correct, even with scaled display

- if you start visual micro explorer and afterwords serial monitor all is shown correct

- if you start serial monitor first and then visual micro explorer both stay broken

So it must not necessarily be a 1903 related problem

Title: Re: Serial Monitor broken
Post by Visual Micro on May 31st, 2019 at 2:12pm
Showing the window before setting it up resolves the issue. Obviously no reason why windows 1903 should cause different behavior in all vs2019 versions but it is fixed now.

Requires Visual Micro 1905.29.4 or above

Title: Re: Serial Monitor broken
Post by Visual Micro on May 31st, 2019 at 11:28pm
@qrtio thanks for this observation. It is very interesting. If we create a tool window with an empty window user control then all tool windows work well. We don't have to show the tool window just make sure it is created.

The platform explorer and serial monitor are not connected therefore I think that Microsoft have some sort of timeout issue when we attempt to load a tool window that contains many controls created in the visual studio designer. The serial window is such as window, whereas the platform explorer has zero "designed controls".  all platform explorer controls are created dynamically at run time.

We will create a hidden empty tool window which is little overhead and that fixes the issue until Microsoft find the problem.

Thanks again!

Title: Re: Serial Monitor broken
Post by Visual Micro on Jun 1st, 2019 at 1:12pm
Visual Micro 1905.29 sp2 has been released with a workaround for vs2019 tool window issues. The issues relate to all previous versions of Visual Studio 2019 on the new windows 1903 build.

The latest release has been updated in the forum and will shortly be posted to the gallery.
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES


The workaround creates a hidden tool window with an empty windows user control called "Vs2019 has issues". You will not see the tool window, it does not affect performance and will not provide any indication that it has been created other than the Serial Monitor now works.


Thanks again for all the effort, this obvious issue is disappointing but vs 2019 is a good IDE so maybe we have to suffer a few hiccups  :(

Title: Re: SOLVED in 1905.29.4: Serial Monitor broken in VS2019 after Windows 1903 Update
Post by Visual Micro on Jul 8th, 2019 at 7:24pm
Sorry for the delay. The latest release 1907.6.7 resolves the issue if it continued for you. The issue was related to the recent conversion to asnyc packages for VS2019 (vs2017 uses same vm code so was also affected).

Title: Re: SOLVED in 1905.29.4: Serial Monitor broken in VS2019 after Windows 1903 Update
Post by Visual Micro on Aug 13th, 2019 at 11:34pm
Please note. Microsoft have changed Visual Studio 2019 to only support dpi scaling for tool windows build using WPF. Visual Micro currently uses win forms for the Serial and Micro Explorer tool windows. We are currently re-developing our tool windows in the meantime please switch off

Tools>Options>Environment>General>Optimize rendering for screens with different pixel densities

Visual Studio Ide for Arduino » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2019. All Rights Reserved.