[GH-ISSUE #559] On Win11 App stuck once RDP client pop any messagebox #3369

Closed
opened 2026-03-13 11:15:23 +03:00 by kerem · 2 comments
Owner

Originally created by @VShawn on GitHub (Nov 9, 2023).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/559

Originally assigned to: @VShawn on GitHub.

Describe the bug

After extensive testing and cross-comparison, I ultimately discovered that on the Win11 system, whenever an RDP client displays any message box, it triggers an internal error, ultimately causing the program to freeze.

These message boxes include, but are not limited to, the connection information displayed by the info button(https://github.com/1Remote/1Remote/issues/437) and CredSSP error messages.

last night I have created a minimal test program and launched the remote desktop to the same server with the same settings on both WinForms and WPF on Win11 22H2. The WinForms program successfully displays the CredSSP
error dialog, while the WPF program encounters an internal error and crashes.

here is the CredSSP error messages:

Works Winform

image

Crasheson WPF

image

same WPF program works and pop the message box on Win10

image

Unfortunately, I couldn't locate the cause of the crash, so I'm unable to fix it.

Image

Originally created by @VShawn on GitHub (Nov 9, 2023). Original GitHub issue: https://github.com/1Remote/1Remote/issues/559 Originally assigned to: @VShawn on GitHub. # **Describe the bug** After extensive testing and cross-comparison, I ultimately discovered that on the Win11 system, whenever an RDP client displays any message box, it triggers an internal error, ultimately causing the program to freeze. These message boxes include, but are not limited to, the connection information displayed by the info button(https://github.com/1Remote/1Remote/issues/437) and CredSSP error messages. last night I have created a minimal test program and launched the remote desktop to the same server with the same settings on both WinForms and WPF on Win11 22H2. The WinForms program successfully displays the CredSSP error dialog, while the WPF program encounters an internal error and crashes. here is the CredSSP error messages: ## Works Winform ![image](https://github.com/1Remote/1Remote/assets/10143738/c43319b7-4137-4d06-9b76-01f8e5c48911) ## Crasheson WPF ![image](https://github.com/1Remote/1Remote/assets/10143738/916f37d7-c531-4dba-8ec9-10c2e0ae5d5e) ## same WPF program works and pop the message box on Win10 ![image](https://github.com/1Remote/1Remote/assets/10143738/b135eef9-a91f-430e-83f5-d5b9270edfee) Unfortunately, I couldn't locate the cause of the crash, so I'm unable to fix it. ![Image](https://github.com/user-attachments/assets/f478c32a-e76b-44f8-836a-93dc9165775e)
Author
Owner

@VShawn commented on GitHub (Nov 9, 2023):

I guess Win11 has rewritten the implementation of RDP client message boxes (one evidence is different appearance of RDP message boxes in Win11 compared to Win10) and make message box incompatibe with WPF. If that's the case, we might have to wait for Microsoft to address the issue with WPF (which might be long considering their focus on WinUI now).

<!-- gh-comment-id:1803052985 --> @VShawn commented on GitHub (Nov 9, 2023): I guess Win11 has rewritten the implementation of RDP client message boxes (one evidence is different appearance of RDP message boxes in Win11 compared to Win10) and make message box incompatibe with WPF. If that's the case, we might have to wait for Microsoft to address the issue with WPF (which might be long considering their focus on WinUI now).
Author
Owner

@VShawn commented on GitHub (Jan 17, 2025):

My recent tests shows that the current workaround approach is unable to solve the issue.

I have recreated an RDP window based on WinForm, and it runs smoothly in the WinForm project.

However, when I moved it to the WPF project, the RDP info popup once again caused the program to crash.
Upon investigation, it was found that the crash still occurs in KERNELBASE.dll.

Image

Next I'll try to upgrade the .net version and expect this issue to be fixed on newer versions.

<!-- gh-comment-id:2597682625 --> @VShawn commented on GitHub (Jan 17, 2025): My recent tests shows that the current workaround approach is unable to solve the issue. I have recreated an RDP window based on WinForm, and it runs smoothly in the WinForm project. However, when I moved it to the WPF project, the RDP info popup once again caused the program to crash. Upon investigation, it was found that the crash still occurs in KERNELBASE.dll. ![Image](https://github.com/user-attachments/assets/5ea6b55b-c71b-4c72-808b-fed2168f3a7f) Next I'll try to upgrade the .net version and expect this issue to be fixed on newer versions.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/1Remote#3369
No description provided.