Forum / Remote Desktop Manager - Beta

ssh copy / paste text and crashing issue in 2019.2.14.0

  • Create an Issue
  • Cancel


Hello

Could be beta related, however I spotted this in current stable release RDMF 2019.2.14.0. I always download the zip version.


2 issues,

Sometimes, when I copy text from an SSH session with the mouse, when I paste it into notepad I have an extra line in between each line. Only sometimes though, I haven't figured out if it happens because I have resized the window or perhaps because a line I am copying exactly matches the window width. When it does happen, I get an extra line after all of the lines I have copied.


Separately, This version has fully crashed on me 3 time in the week I have been using it - twice this morning. Both time this morning were when I was logging out of SSH sessions with CTRL-D. We use a SSH gateway (jump box) to get to our environment so you need to logout twice to close the RDMF session - I noticed the first CTRL-D logged out of the 2nd server and then after a pause the application crashed, before I was dropped back to the jump box prompt - it is possible I hit CTRL-D twice.

RDMF 5.1.3.0 lives on a little longer on my desktop smile

Thanks for taking the time
Angus

Clock3 mths

Hi,

For the copy issue, I think the problem you have is due to the way some application output text to the terminal: some end the lines with carriage return, in that case everything is fine. Some end the lines with spaces, so, if you paste the text in a smaller notepad, the spaces are wrapped which result in "empty" lines. We added an option to control how copy is made, it is the fifth icon from the left at the top of the terminal window (tool tip: preserve formatting on copy). If you select this option, the formatting will be preserved by stripping lines of the spaces. It will also preserve the way lines are broken too, this is why it is an option: since some application will output long lines (that get wrapped by the terminal) it is desirable to preserve the long lines and let the other text editor wrap the lines as needed.

As for the crash, I will investigate. If I understand correctly, you login to a gateway, and then login manually to the target host. That is the only way I see you would need to log out twice. Because if you login using the jump host option, logging out once will log you out of both the target host and the gateway. But either way, I'll run some tests to try to reproduce this bug. Thanks for the feedback.

Regards.

Denis Vincent

signaturesignature

Clock3 mths


Hi Denis

Thanks - I'll take a look at the option you mention with 2019.2.14.0 - Worthy mention however, I never have such issues in putty, MobaXterm or RDMF v5.1.3.0 - I work 8 hours a day in ssh sessions to Linux hosts from a Windows 10 PC.


Correct, I don't use the jump host option. As I'm moving back to the current release, I'll share any other information on the crashing issue I have experienced.

Regards
Angus

Clock3 mths


Hi Denis,

RDMF 2019.2.21.0


I have 2 different situations where I can recreate some copy/paste issues. It appears that "Preserve formatting on copy" does fix the issue however I can't help thinking that this might not be required if conditions like the two I bring up here can be addressed. Other ssh clients don't require such additional options (putty in the given example below) however I do not know all the conditions you were looking to address when you added the preserve button.

Example 1
1) I type the command

2) use up arrow to repeat the command

3) use up arrow again, backspace the asterisk and re-type the asterisk.

Example 2 - piping to grep.

I also show the same examples with "Preserve formatting on copy" enabled (all ok) and from putty. For all tests, I copied by highlighting text and pasted into the same notepad document and then highlighted everything in notepad so that you can see where additional spaces to end of line (edge of window) have been added on certain lines.


Hope this helps.

Regards

Angus

RDMF.png
Clock2 mths

Hi Angus,

Thanks for the info, I will look into it and see what I can do.

Regards

Denis Vincent

signaturesignature

Clock2 mths

Hi again,

I have made a little correction, I think it should fix the 2 issues you reported. If it not in the next version, it will be in the next.

Regards

Denis Vincent

signaturesignature

Clock2 mths


Hi Denis

Again, not beta related - using RDMF 2019.2.21.0

I'm still experiencing a lot of application crashes with this release, 2 or 3 crashes per week - I never had this amount of crashes prior to release 2019.2.14.0. Are there any logs I can capture for you? Start app in debug mode or the like?

Cheers
Angus

Clock12 days

Hi Angus,

We can try a session recording. In the property page for SSH entries, in the list on the left, select "Session Recording". There, set the "Mode" field to "Required" and set the "Destination" and "Filename" fields appropriately for the recording file to be saved where you can find it. The session recording will result in a .trp file, you can send me this file in private.
We can also try the session log: in the "Advanced" tab, check the "Enable logging" option, set the "Log mode" to "Event" and set the "Log path" appropriately. But this would be useful only in the situation where the crashes happen on closing the session. Maybe.
Here are a few questions I have: What type of servers are the jump and target hosts? (which kind of linux, or is it a device) Do you use agent forwarding? Have you noticed a pattern about when a crash occurs? Is there a command in particular that makes RDM crash?
I don't expect this bug to be easy to fix, but I will find it. Thanks in advance for your input as well as your patience.

Regards

Denis Vincent

signaturesignature

Clock11 days

Hi Angus,

Thanks for the info you sent to me in private. With this, I am going to investigate the agent forwarding, I think it is the most plausible source of this problem. I'll let you know when I find something.

Regards.

Denis Vincent

signaturesignature

Clock8 days