RDM Crash when ssh session disconnect on linux server reboot

Implemented

RDM Crash when ssh session disconnect on linux server reboot

avatar

Hello,

As the title said, each time I type "reboot" on my linux server, RDM will immediately crashes instead of just closing the SSH connection.
This problem is there since June of this year.

Can you tell me how to dump the log so I can send them to you ? Thank you.

My current version :

  • 2023.2.22.0 64-bit Windows
  • MySQLite


Have a nice day,
Clement.

All Comments (15)

avatar

Hello,

To send us the application logs to help us understand your problem. Please use this link for more clarification: https://docs.devolutions.net/rdm/windows/commands/help/support/application-logs/

Would it also be possible for you to create a portable installation of RDM and see if this issue still occurs? To do so, you will need to do the following:

1.   Download the .zip file below: https://remotedesktopmanager.com/home/thankyou/rdmbin
2.   Create a new folder on your Desktop.
3.   Extract the content of the .zip file into the folder created at #2
4.   Go to this folder once the .zip file has been extracted and run remotedesktopmanager64.exe
5.   Connect to your data source.

This will tell us if the issue is tied to the local installation of RDM.

Best regard

Carl Marien

avatar

Hello,

The same issue appear with the portable version of RDM.

Here is the log content :

Data source type: SQLite
Database path: C:\Users\Clement_Chen\AppData\Local\Devolutions\RemoteDesktopManager\Connections.db
Culture: en-US
OS: Windows 10 Version 22H2 (OS Build 19045.3324) 64-bit
OS Architecture: X64
Running since: 27 min 8 sec / Memory usage: 414 MB
Dpi: 100%
Installation path: C:\Program Files\Devolutions\Remote Desktop Manager
In Terminal Services: false
Proxy: Default
Opened connection: 10

========== DETAILS ========== 

[2023/8/16 AM 11:21:09 - 2023.2.22.0 - 64-bit] Error Silent: System.Threading.ThreadAbortException: Thread was being aborted.
   at System.Threading.WaitHandle.WaitOneNative(SafeHandle waitableSafeHandle, UInt32 millisecondsTimeout, Boolean hasThreadAffinity, Boolean exitContext)
   at System.Threading.WaitHandle.InternalWaitOne(SafeHandle waitableSafeHandle, Int64 millisecondsTimeout, Boolean hasThreadAffinity, Boolean exitContext)
   at System.Threading.WaitHandle.WaitOne(Int32 millisecondsTimeout, Boolean exitContext)
   at Devolutions.RemoteDesktopManager.Business.HttpBrowserLinker.Run()
[2023/8/16 AM 11:21:09 - 2023.2.22.0 - 64-bit] Error Silent: System.Threading.ThreadAbortException: Thread was being aborted.
   at Devolutions.RemoteDesktopManager.Business.HttpBrowserLinker.Run()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
[2023/8/16 AM 11:21:13 - 2023.2.22.0 - 64-bit] Error Silent: System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'FrmMainDocumentManager'.
   at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
   at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
   at Devolutions.RemoteDesktopManager.Managers.ThreadManager.Invoke(MethodInvoker invoker, Boolean force)
[2023/8/16 PM 01:55:37 - 2023.2.22.0 - 64-bit] Error Silent: System.Threading.ThreadAbortException: Thread was being aborted.
   at System.Threading.WaitHandle.WaitOneNative(SafeHandle waitableSafeHandle, UInt32 millisecondsTimeout, Boolean hasThreadAffinity, Boolean exitContext)
   at System.Threading.WaitHandle.InternalWaitOne(SafeHandle waitableSafeHandle, Int64 millisecondsTimeout, Boolean hasThreadAffinity, Boolean exitContext)
   at System.Threading.WaitHandle.WaitOne(Int32 millisecondsTimeout, Boolean exitContext)
   at Devolutions.RemoteDesktopManager.Business.HttpBrowserLinker.Run()
[2023/8/16 PM 01:55:37 - 2023.2.22.0 - 64-bit] Error Silent: System.Threading.ThreadAbortException: Thread was being aborted.
   at Devolutions.RemoteDesktopManager.Business.HttpBrowserLinker.Run()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
[2023/8/16 PM 01:55:48 - 2023.2.22.0 - 64-bit] Error Silent: System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'FrmMainDocumentManager'.
   at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
   at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
   at Devolutions.RemoteDesktopManager.Managers.ThreadManager.Invoke(MethodInvoker invoker, Boolean force)
[2023/8/16 PM 01:55:48 - 2023.2.22.0 - 64-bit] Error Silent: System.NullReferenceException: Object reference not set to an instance of an object.
   at Devolutions.RemoteDesktopManager.Frames.Views.FreTreeViewSSH.Disconnect()
[2023/8/16 PM 01:55:48 - 2023.2.22.0 - 64-bit] Error Silent: System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'NativeSsh'.
   at Devolutions.Protocols.NativeSsh.Disconnect()
   at Devolutions.RemoteDesktopManager.Frames.Embedded.FreEmbeddedNativeSshShell.Close()
   at Devolutions.RemoteDesktopManager.Frames.Embedded.FreEmbeddedNativeSshShell.Disconnecting()
   at Devolutions.RemoteDesktopManager.Managers.EmbeddedViewManager.Close(IFormConnectionContainer childForm, CloseConnectionMode closeConnectionMode)
[2023/8/16 PM 01:55:48 - 2023.2.22.0 - 64-bit] Error Silent: System.NullReferenceException: Object reference not set to an instance of an object.
   at Devolutions.RemoteDesktopManager.Frames.Views.FreTreeViewSSH.Disconnect()
[2023/8/16 PM 01:55:48 - 2023.2.22.0 - 64-bit] Error Silent: System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'NativeSsh'.
   at Devolutions.Protocols.NativeSsh.Disconnect()
   at Devolutions.RemoteDesktopManager.Frames.Embedded.FreEmbeddedNativeSshShell.Close()
   at Devolutions.RemoteDesktopManager.Frames.Embedded.FreEmbeddedNativeSshShell.Disconnecting()
   at Devolutions.RemoteDesktopManager.Managers.EmbeddedViewManager.Close(IFormConnectionContainer childForm, CloseConnectionMode closeConnectionMode)
[2023/8/16 PM 01:55:49 - 2023.2.22.0 - 64-bit] Error Silent: System.NullReferenceException: Object reference not set to an instance of an object.
   at Devolutions.RemoteDesktopManager.Frames.Views.FreTreeViewSSH.Disconnect()
[2023/8/16 PM 01:55:49 - 2023.2.22.0 - 64-bit] Error Silent: System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'NativeSsh'.
   at Devolutions.Protocols.NativeSsh.Disconnect()
   at Devolutions.RemoteDesktopManager.Frames.Embedded.FreEmbeddedNativeSshShell.Close()
   at Devolutions.RemoteDesktopManager.Frames.Embedded.FreEmbeddedNativeSshShell.Disconnecting()
   at Devolutions.RemoteDesktopManager.Managers.EmbeddedViewManager.Close(IFormConnectionContainer childForm, CloseConnectionMode closeConnectionMode)



Have a nice day,
Clement.

avatar

Hello,

I want to inform you that an internal ticket has been generated and forwarded to our engineering team for in-depth investigation.

Best regards.

Carl Marien

avatar

Hello,

Thank you for your reply.
Feel free to contact me if you need more data to replicate this issue.

Have a nice day,
Clement.

avatar

Any news about this issue? Since last two versions i am getting this same behavior. On closing a SSH session, RDM hangs and i have to terminate the process in windows task manager.

avatar

Hello,

We sincerely apologize for any inconvenience you're experiencing. I have requested an update from our development team concerning this issue.

Thank you for your continued patience and understanding. We will keep you updated as we make progress.

Best regards,

Carl Marien

avatar

Hello,

This issue seemed to have been fixed in the version 2023.2.30.0. But with the version 2023.2.32.0, it came back.
The good news is that I have identified which setting makes RDM crash when I reboot a remote Linux server with SSH.

In SSH Shell -> General -> Terminal -> Advanced -> Use SFTP connection for remote file transfer.
If this setting is ON with the SSH connection that you are trying to reboot, RDM will crash just after the remote server is disconnecting.
When OFF, I have no issue at all.

Hope that this can help you.

Have a nice day,
Clement.

avatar

Hello,

Thank you for the information. I'll forward it to our developers for review.

In the meantime, if you wish, you can revert to version 2023.2.30 of RDM using the following link: https://devolutions.net/remote-desktop-manager/home/previousversions/

Best regards,

Carl Marien

avatar

I'm on 2023.3.31.0 64-bit and the issue is still present

avatar

Hello,

Could you please attempt to recreate the issue in a portable installation?

 Here are the steps.

1.     to follow: Download the .zip file from this link: https://remotedesktopmanager.com/home/thankyou/rdmbin
2.     Create a new folder on your Desktop.
3.     Extract the contents of the .zip file into the folder you created in step #2.
4.     Navigate to this folder after extracting the .zip file and run "remotedesktopmanager.exe."
5.     Connect to your data source.

This test will help us determine whether the issue is related to your local installation of RDM

Best regards,

Carl Marien

avatar

Hi,
I've tested using portable versione and the problem is not present. I've tested with my local installation of RDM and at the moment I can not reproduce the problem.

I'll make some additional test.

L.

avatar

Hello

I recommend resetting RDM to its default settings, as this method resolve similar issues that the portable version. Please follow these steps:

1.     Close rdm
2.     Navigate to your local AppData folder.
3.     Locate and open the 'Devolution' folder.
4.     Rename the 'remotedesktopmanager' folder to 'remotedesktopmanager.old'.
5.     Restart RDM.

Upon restarting, RDM will behave as if it's a fresh installation, and you will need to reconnect to your data source.

if you have a local data source, please copy the file named connection.db from remotedesktopmanager.old to the new installation of rdm

Should you encounter any problems, you can reverse this process by deleting the newly created 'remotedesktopmanager' folder and renaming the old folder back to its original name.

If you're unsure or require assistance, I'm available for a remote session to guide you through these steps.

Best regards,

Carl Marien

avatar

Hello,

I have had the same problem for several months with my ssh sessions on Windows 10 and Windows 11 (23H2) with the different versions of RDM and also with the latest (2023.3.36.0 64-bit)

So I decided to do a fresh install by renaming the Devolution folder in AppDatas/local/.

I created an ssh session with minimal parameters for the connection.

I did a “sudo shutdown -Fr now” on my debian 12 and I didn’t have any RDM crashes.

I restored an rmd file that contained an rdm session from my old config.

I tested the shutdown and bingo ! I had the RDM crash.

Looking at the xml file to identify the differences, and testing them one by one,

I finally found what was wrong.

It’s related to the SFTP parameters which correspond to these lines in the XML file:
<SFTPStartingLocation>/</SFTPStartingLocation>
<ShowFilesInTreeView>true</ShowFilesInTreeView>
<ShowHiddenFiles>true</ShowHiddenFiles>
<StartSFTPMinimized>true</StartSFTPMinimized>

In the UI interface, this corresponds to Properties/Terminal/Advanced

  • Use SFTP connection for remote file transfer: is checked
  • Start minimized: is checked
  • Show files in tree view: is checked
  • Show hidden files: is checked


So I disabled the “Use SFTP connection for remote file transfer” option and now it works again !! ;-))

A few months ago I had tried this feature but it didn’t work as I wanted and I hadn’t reconfigured it.

This doesn’t explain why RDM crashes, but it allows you to find a solution while waiting for the problem to be fixed!

avatar

Hello,

Thank you for the information. I will include it in the internal ticket for our development team's review.

Our developers are currently working on a fix for this issue.

Best regards,

Carl Marien

avatar

Hello,

This issue is now fixed internally and will be included in beta version 2024.1.8.0.

Regards

Jonathan Del Signore