Hi,
I already tried to contact you via IRC. The mouse and keyboard events are generated in: * input_send_fastpath_mouse_event * input_send_extended_mouse_event * input_send_fastpath_keyboard_event * input_send_fastpath_unicode_keyboard_event What might cause the issue is the function security_encrypt which updates the encryption key every 4096 packets. Since some messages are being sent by different threads they might end up using the wrong key. I´ve opened https://github.com/FreeRDP/FreeRDP/issues/6156 to track. If you can compile this yourself, could you add a mutex to lock that function so that these updates get synced? If the result is no more disconnects then we have the culprit. If not we´ll have to reproduce locally and check if this fix is working. regards Armin regards Armin Am 08.05.20 um 22:36 schrieb Marko Nikolić via FreeRDP-devel: > Hi, > > I am using libfreerdp as part of a bigger application and occasionally > error ERRINFO_DECRYPT_FAILED happens in libfreerdp and connection break. I > have found some older posts that mention this error, but without an exact > method for reproduction or cause of the error. > > The error does not happen all the time, it is intermittent. I have managed > to narrow dows the issue and to make the environment where I can reproduce > the issue almost always: > > - security: rdp > - gfx:avc444 enabled (I didn't manage to reproduce the issue without > gfx:avc444 enabled) > - graphics pipeline enabled > - remote windows is Win2019 datacenter with GPU > > How to reproduce: I have to move mouse rapidly around the desktop (or some > app) and make clicks. After 5-30 seconds the error will happen almost > always. If I don't play with the mouse too much, the session may last for > half an hour in my tests (and it didn't break). > > Below are the errors I am getting in the logs: > > ***************** > ERRINFO_DECRYPT_FAILED (0x00001192):(a) Decryption using Standard RDP > Security mechanisms (section 5.3.6) failed. > (b) Session key creation using Standard RDP Security mechanisms (section > 5.3.5) failed. > rdp_set_error_info:freerdp_set_last_error_ex ERRINFO_DECRYPT_FAILED > [0x00011192] > BIO_read returned a system error 104: Connection reset by peer > ***************** > > The errors are always in this order. Does anybody have an idea what could > be the issue and where to look for the source of the errors? May it be some > settings on the server side (some of the old posts mention that) or maybe a > combination of the freerdp settings? I have tried disabling and enabling > FastPathInput and FastPathOutput, as mentioned in some old posts, but > without success. > > > Thanks, > Marko > > _______________________________________________ > FreeRDP-devel mailing list > FreeRDP-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freerdp-devel _______________________________________________ FreeRDP-devel mailing list FreeRDP-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freerdp-devel