Focus issue in Chrome since version 2021.2.X when RDM is opened inside RDP session

Focus issue in Chrome since version 2021.2.X when RDM is opened inside RDP session

avatar

Hi there, since the upgrade to version 2021.2.X I experience a disturbing focus issue in Chrome. Every update I'm hoping that it would be solved, but it isn't until now. At this moment, I have a bit more time to spent on solving this so that's why I didn't start this topic earlier. After reading another topic (https://forum.devolutions.net/topics/35873/unable-to-regain-focus-and-need-to-kill-rdm-fairly-often) I decided to create my own topic since the other user was experiencing a certain issue already in version 2021.1.X. For me, it's very easy to reproduce it within 60 seconds.

Tested versions

  • 2021.1.41.0 - OK
  • 2021.2.13.0 - NOT OK
  • 2021.2.20 - NOT OK
  • 2021.2.21 - NOT OK


Setup

  • Two monitors, local session left, remote RDP session right
  • Remote RDP session with RDM installation is on Windows Server 2016
  • Problem is with both, installed and portable versions.
  • Problem occurs when using Chrome tabbed in RDM and visiting a random webpage


Reproduce

  • Open RDP session to Server 2016
  • Open RDM in RDP session
  • Open website tabbed in Chrome
  • Focus on local screen outside RDP window
  • Focus back on remote RDP session and try to resume using the webpage -> WINDOW STUCK AT THIS POINT


I have tried to use the profiler on level 8192 but when the lock occurs, nothing seems to happen.
When I try to regain focus for about 1 minute (by continuously selecting the icon on the taskbar) it finally unfreezes.

My workaround is to set Edge as browser in the "Web Browser" object but then I'm unable to ignore certificate errors.

All Comments (9)

avatar

Hello,

Thank you for contacting us on that matter!

I will attempt to replicate this behavior on my side to report it to our engineering team.

As soon as new development is made on the case, I will make sure to let you know!

Best regards,


Gabriel Degrandpré

avatar

Dennis,

Good work narrowing it down to 60 second reproduction! The key to solving any bug is being able to reproduce it at will...

I'm going to say that using TeamViewer instead of RDP is also likely exacerbating the issue.

avatar

Can you please try checking "Disable loading messages" on your Web (Chrome) sessions to see if it changes anything?

You can do them manually if you only have a few or you can us the Edit > Edit (Special Actions) > Custom PowerShell Command to modify all you Web (Chrome) sessions.

  1. Use the advanced search to filter for all Web sessions
    1. View > Advanced Search
    2. Connection Type => Web Browser (http/https)
    3. Search
    4. Click in the result pane
    5. CTRL + A (select all)
    6. Select in Navigation Pane
    7. "X" the Advanced Search window
  2. Edit > Edit (Special Actions) > Custom PowerShell Command
  3. Paste the following
if ($connection.ConnectionSubType -eq "GoogleChrome")
{
   $connection.Web.DisableLoadingMessages = $true; 
   $RDM.Save();
}


Best regards

Stéfane Lavergne

avatar

Hi Stéfane,

Today I've tested it several times with several websites, but unfortunately the DisableLoadingMessages option does not make any difference.

Dennis

avatar

Dennis,

I'm assuming you are still getting this error.

We currently have another customer, via email support, with the same issue and have yet to find why it's happening and how to get around the issue.

Can you please try the following? It wasn't helpful for them but you never know. File > Options > Advanced > check "Disable system event handlers" and restart RDM.

We will keep you posted when we find something.

Best regards,

Stéfane Lavergne

avatar

Hi Stéfane,

I still experience this issue indeed. After the server (where I run RDM client on) was restarted last weekend, it worked quite well on Monday morning. Monday afternoon the problem returned unfortunately. Still no clue what triggers this issue.
Disabling system event handler didn't make a difference here as well.
Have you considered adding the 'ignore certificate errors' for Edge? That would be a helpful workaround since Edge is running Chromium as well.

Dennis

avatar

Hi Stéfane,

I have another workaround. Before getting my focus out of the RDP session with RDM running, I need to minimize the RDM window where the Chrome tab is opened. As soon as I return, I maximize and can directly resume working.

Dennis

avatar

Hi Dennis,

We are still trying to figure out what is going on with Embedded Chrome but we are also looking for alternatives.

One such alternative are the new features available to the Embedded Edge of the latest beta release (v2022.1.x).

We've added support for:

  • Private mode (incognito)
  • Ignore certificate errors


Correct, the two main reasons why people use Embedded Chrome extensively in RDM are now also supported with the Embedded Edge session.

Give it a try to see if it resolves your freeze issue.

NOTE: The beta release requires a database upgrade. Make sure you have proper backup before doing the upgrade or test it on a copy/staging environment.

Best regards,

Stéfane Lavergne

avatar

Thank you for improving Embedded Edge, that helped!
I suddenly thought about this problem and how I managed to fix it using Chrome. I removed the Devolutions folder from 'C:\Users\<username>\AppData\Local\'. Unfortunately that included all my preferences, but after the removal the problem was gone. Still using Embedded Chrome on a daily basis.