dotnet / wpf

WPF is a .NET Core UI framework for building Windows desktop applications.
MIT License
7.03k stars 1.16k forks source link

System.Windows.Media.Imaging.RenderTargetBitmap.Render does not render from remote desktop #3765

Open vsfeedback opened 3 years ago

vsfeedback commented 3 years ago

This issue has been moved from a ticket on Developer Community.


I am not sure but I think the System.Windows.Media.Imaging.RenderTargetBitmap.Render method does not render content of System.Windows.Media.DrawingVisual object on System.Windows.Media.Imaging.RenderTargetBitmap if application is running thru a remote desktop session and the user disconnects from the remote desktop while application is running.

The problem can be reproduced using the following steps:

1. Project file attached rdptestwpf-1.zip

2. Open project in Visual Studio 2019 in local computer with Windows 10.

3. Compile project.

4. Connect to the local computer via remote session.

5. Start project in Visual Studio.

6. Wait while progress will going and close the remote session.

7. Login to the local session and see image files in project's output path. The "first" group of images will contain white rectangle with green line.

The "second" group of images will contain black rectangle (empty content). The "second" group of images was created when user closed the remote session.


Original Comments

Feedback Bot on 2/12/2020, 10:57 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Feedback Bot on 3/20/2020, 10:28 AM:

I have detected that for the last 35 days, this issue didn't have much product team activity and a very small amount of new votes or comments. Based on this, its severity, and affected area, it’s my experience that this issue is very unlikely to be fixed.


Original Solutions

(no solutions)

alexandrebarreiros commented 2 years ago

Hi, I'm experience the same issue on my application is there any work around?

Ali-YousefiTelori commented 2 years ago

Hi, In Windows server datacenter 2019 version 17763.2114 there is no problem. In Windows server datacenter 2022 version 20348.405 we got this problem.

When we connected to the user on the remote desktop everything is ok and WPF will render the views. but when we disconnect from remote desktop, WPF cannot render the bitmap.

jai-dewani commented 2 years ago

Hello,

We am experiencing the same issue. When we take take the remote session, it works properly but after closing it, we get a complete black image signifying nothing was rendered

johnweiss commented 1 year ago

Hello, I experienced this as well.

InakiLujambio commented 1 year ago

Hi, We have the same issue. Has there been any progress here?

lindexi commented 9 months ago

My friend tell me this issues can be fixed by installing kb5020030. But I don't have any more information.