net-misc/freerdp fails to run when using an rdp file, complaining that cannot load addins. However, it is able to connect to a local Win10 VM without problem. Both stable and unstable versions of net-misc/freerdp have the same issue. Reproducible: Always Steps to Reproduce: 1. xfreerdp <example.rdp> <options> 2. error message is shown and xfreerdp exits Actual Results: Error log: [18:23:55:158] [10822:00002a47] [DEBUG][com.freerdp.core] - [freerdp_connect_begin]: resetting error state [18:23:55:158] [10822:00002a47] [INFO][com.freerdp.client.x11] - [xf_setup_x11]: Enabling X11 debug mode. [18:23:55:161] [10822:00002a47] [DEBUG][com.freerdp.client.x11] - [xf_GetWindowProperty]: Property 310 does not exist [18:23:55:190] [10822:00002a47] [ERROR][com.freerdp.client.common] - [freerdp_client_load_channels]: Failed to load addins [00000000] [18:23:55:191] [10822:00002a47] [DEBUG][com.freerdp.core.rdp] - [rdp_finalize_reset_flags][0x5606f1d15ad0]: [CONNECTION_STATE_INITIAL] reset finalize_sc_pdus [18:23:55:191] [10822:00002a47] [DEBUG][com.freerdp.core.rdp] - [rdp_client_transition_to_state][0x5606f1d15ad0]: CONNECTION_STATE_INITIAL --> CONNECTION_STATE_INITIAL [18:23:55:192] [10822:00002a46] [ERROR][com.freerdp.core] - [freerdp_abort_connect_context]: ERRCONNECT_CONNECT_CANCELLED [0x0002000B] Expected Results: No errors I have tried to bring this issue to upstream, but they have been not been helpful, only saying that the build is broken and that "some addins" are missing from the build, but have not suggested any way to find out which ones. net-misc/freerdp has been compiled with the following USE flags: [ebuild R ~] net-misc/freerdp-3.2.0:0/3::gentoo USE="X aad alsa cups ffmpeg fuse icu jpeg openh264 pulseaudio usb xinerama -debug -gstreamer -kerberos -sdl -server -smartcard -systemd -test -valgrind -wayland -xv"
Please provide a link to the upstream issue.
Hi, This is the upstream issue I opened: https://github.com/FreeRDP/FreeRDP/issues/9591 Thanks Jordi
Could you attach an rdp file that triggers the problem?
Please find attached an RDP file that exhibits the issue. I think the problem lies in the drivestoredirect:s: (line 31 in the rdp file attached). If I remove this line, the connection opens and I can log in the machine. This RDP file is from a local Win10 machine that I fire up with Qemu. I can log in the machine without using an RDP file and with driveredirect.
Created attachment 887711 [details] Example of RDP file
I am able to reproduce the issue using an RDP file containing only this setting: drivestoredirect:s:C:\; I think there are 2 problems here: 1. That value is malformed. Based on the documentation the backslash should come before the colon to escape it like this: drivestoredirect:s:C\:; Docs: https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/rdp-files 2. Linux has no concept of a "C" drive, so this can never actually work anyway. If I update the setting to point at my home directory, it seems to resolve the error. drivestoredirect:s:/home/floppym;
Thank you for the testing. I can confirm that removing the line solves the issue. I have created the following issue upstream to see if they can either produce a more meaningful error or issue a warning, ignore the line and continue to connect to remote host. https://github.com/FreeRDP/FreeRDP/issues/9989
Issue upstream has been resolved and closed. Thanks for the support!