RDM crashes when cancelling RDP session with RD Gateway server
RDM crashes when I cancel authentication for an RDP session that has Remote Desktop Gateway specified.
Here are the repro steps:
1) Set up an RDP session that has RD Gateway; no username/password entered, no credentials selected from vault: https://i.imgur.com/QtXKHvf.png, https://i.imgur.com/InM6Svt.png
All other settings are on their defaults, as installed by RDM.
2) Open the session, you'll see the Windows Security dialog: https://i.imgur.com/teQEmJV.png
3) Press Cancel in the above dialog. Wait a few seconds, RDM will disappear. The following data is logged in the Windows Application Event log. Fully updated Windows 10, newest RDM 2022.1.25.0 64-bit.
The behaviour is consistent, occurs every time.
Faulting application name: RemoteDesktopManagerFree.exe, version: 2022.1.25.0, time stamp: 0xbcaf1915
Faulting module name: mstscax.dll_unloaded, version: 10.0.19041.1586, time stamp: 0x47a80d8b
Exception code: 0xc0000005
Fault offset: 0x0000000000005f68
Faulting process id: 0x29bc
Faulting application start time: 0x01d856244af4f34f
Faulting application path: C:\Program Files (x86)\Devolutions\Remote Desktop Manager Free\RemoteDesktopManagerFree.exe
Faulting module path: mstscax.dll
Report Id: 05f3d79c-a7cd-4281-93be-deb4a3e1971b
Faulting package full name:
Faulting package-relative application ID:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="Application Error" /> <EventID Qualifiers="0">1000</EventID> <Version>0</Version> <Level>2</Level> <Task>100</Task> <Opcode>0</Opcode> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2022-04-22T08:13:09.5532632Z" /> <EventRecordID>21767</EventRecordID> <Correlation /> <Execution ProcessID="0" ThreadID="0" /> <Channel>Application</Channel> <Computer>XXXX</Computer> <Security /> </System> <EventData> <Data>RemoteDesktopManagerFree.exe</Data> <Data>2022.1.25.0</Data> <Data>bcaf1915</Data> <Data>mstscax.dll_unloaded</Data> <Data>10.0.19041.1586</Data> <Data>47a80d8b</Data> <Data>c0000005</Data> <Data>0000000000005f68</Data> <Data>4bd8</Data> <Data>01d8561f329de803</Data> <Data>C:\Program Files (x86)\Devolutions\Remote Desktop Manager Free\RemoteDesktopManagerFree.exe</Data> <Data>mstscax.dll</Data> <Data>459809b5-0296-4d8c-952a-0f10639530f8</Data> <Data /> <Data /> </EventData> </Event>
Hello,
Thank you for reporting this issue. It has been brought to our attention before and a ticket has already been opened. We have linked the ticket to this thread so that we can keep you updated when we have found a fix.
Best Regards,
Michaël Beaudin
Hello,
In the meantime, out of curiosity, would it be possible for you to go under File -> Options -> Type -> Remote Desktop and change the RDP engine that is currently in use (should be "Latest" by default) for "MSRDC"?
I suspect that with this RDP engine you won't encounter this issue.
If MSRDC, is not installed on your computer, it can be downloaded here: https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/windowsdesktop
Let us know if that helps!
Best regards,
James Lafleur
Thank you. I've installed the client and changed the setting as instructed. RDM still crashes, but now it leaves a window with the information - https://i.imgur.com/FVkTKgF.png
Unfortunately hitting "Cancel" didn't bring the debugger, because RemoteDesktopManagerFree.exe process is already terminated.
Event viewer shows 2 events:
1)
Faulting application name: RemoteDesktopManagerFree.exe, version: 2022.1.25.0, time stamp: 0xbcaf1915
Faulting module name: rdclientax.dll_unloaded, version: 1.2.3004.0, time stamp: 0x623e5b72
Exception code: 0xc0000005
Fault offset: 0x00000000002d8a52
Faulting process id: 0x4eb4
Faulting application start time: 0x01d8565108d21556
Faulting application path: C:\Program Files (x86)\Devolutions\Remote Desktop Manager Free\RemoteDesktopManagerFree.exe
Faulting module path: rdclientax.dll
Report Id: 36607df4-a1b4-4f4f-b7d0-ee5e2104afb4
Faulting package full name:
Faulting package-relative application ID:
---
2)
Application: RemoteDesktopManagerFree.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: exception code c0000005, exception address 00007FF8919E9340
I'm not too much affected by this issue (hitting Cancel is not a common use case), so don't look for workarounds. I just wanted to report it because it may be surprising to users that RDM crashes. If I can be of any help with diagnosing/fixing this, let me know.
Thanks.