Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect to AVD: Failed to load addins [%08X] #9591

Closed
DasHammett opened this issue Nov 26, 2023 · 6 comments · Fixed by #9615
Closed

Cannot connect to AVD: Failed to load addins [%08X] #9591

DasHammett opened this issue Nov 26, 2023 · 6 comments · Fixed by #9615

Comments

@DasHammett
Copy link

Describe the bug
When trying to connect to an AVD following the FAQ entry, I get the following error:

[19:08:08:221] [24822:000060f6] [WARN][com.freerdp.client.common] - [freerdp_client_populate_settings_from_rdp_file]: This build does not support [MS-RDPECAM] camera redirection channel. Ignoring 'camerastoredirect'
[19:08:08:221] [24822:000060f7] [INFO][com.freerdp.client.x11] - [xf_setup_x11]: Enabling X11 debug mode.
[19:08:08:252] [24822:000060f7] [ERROR][com.freerdp.client.common] - [freerdp_client_load_channels]: Failed to load addins [%08X]
[19:08:08:252] [24822:000060f6] [ERROR][com.freerdp.core] - [freerdp_abort_connect_context]: ERRCONNECT_CONNECT_CANCELLED [0x0002000B]

To Reproduce
Steps to reproduce the behavior:

  1. Compile freerdp from git
  2. Download the rpdw file
  3. Try to connect with: xfreerdp <rpdw file.rpdw> /gateway:type:arm
  4. See error

Expected behavior
To be presented with the url to paste to continue the process

Application details

  • Freerdp version: This is FreeRDP version 3.0.0-dev5 (50d05d921)
  • Coompiled from Gentoo with the following flags: net-misc/freerdp-9999:0/2::gentoo USE="X aad alsa cups ffmpeg icu jpeg openh264 pulseaudio sdl usb xinerama -debug -doc -gstreamer -kerberos -server -smartcard -systemd -test -valgrind -wayland -xv"
  • buildconfig:
This is FreeRDP version 3.0.0-dev5 (50d05d921)
Build configuration: BUILD_TESTING=OFF WINPR_HAVE_AIO_H=1 WINPR_HAVE_EXECINFO_BACKTRACE=1 WINPR_HAVE_EXECINFO_BACKTRACE_SYMBOLS=1 WINPR_HAVE_EXECINFO_BACKTRACE_SYMBOLS_FD=1 WINPR_HAVE_EXECINFO_HEADER=1 WINPR_HAVE_FCNTL_H=1 WINPR_HAVE_GETLOGIN_R=1 WINPR_HAVE_GETPWUID_R=1 WINPR_HAVE_INTTYPES_H=1 WINPR_HAVE_POLL_H=1 WINPR_HAVE_PTHREAD_MUTEX_TIMEDLOCK_LIB=1 WINPR_HAVE_PTHREAD_MUTEX_TIMEDLOCK_LIBS= WINPR_HAVE_PTHREAD_MUTEX_TIMEDLOCK_SYMBOL=1 WINPR_HAVE_STDBOOL_H=1 WINPR_HAVE_STDINT_H=1 WINPR_HAVE_STRNDUP=1 WINPR_HAVE_SYSLOG_H=1 WINPR_HAVE_SYS_EVENTFD_H=1 WINPR_HAVE_SYS_FILIO_H= WINPR_HAVE_SYS_SELECT_H=1 WINPR_HAVE_SYS_SOCKIO_H= WINPR_HAVE_SYS_TIMERFD_H=1 WINPR_HAVE_TM_GMTOFF=1 WINPR_HAVE_UNISTD_H=1 WINPR_HAVE_UNWIND_H=1 WITH_AAD=ON WITH_ADD_PLUGIN_TO_RPATH=OFF WITH_ALSA=ON WITH_CAIRO=OFF WITH_CCACHE=OFF WITH_CHANNELS=ON WITH_CLANG_FORMAT=ON WITH_CLIENT=ON WITH_CLIENT_AVAILABLE=1 WITH_CLIENT_CHANNELS=ON WITH_CLIENT_CHANNELS_AVAILABLE=1 WITH_CLIENT_COMMON=ON WITH_CLIENT_INTERFACE=OFF WITH_CLIENT_SDL=ON WITH_CLIENT_SDL_AVAILABLE=1 WITH_CUPS=ON WITH_DEBUG_ALL=OFF WITH_DEBUG_CAPABILITIES=OFF WITH_DEBUG_CERTIFICATE=OFF WITH_DEBUG_CHANNELS=OFF WITH_DEBUG_CLIPRDR=OFF WITH_DEBUG_CODECS=OFF WITH_DEBUG_DVC=OFF WITH_DEBUG_EVENTS=OFF WITH_DEBUG_KBD=OFF WITH_DEBUG_LICENSE=OFF WITH_DEBUG_MUTEX=OFF WITH_DEBUG_NEGO=OFF WITH_DEBUG_NLA=OFF WITH_DEBUG_NTLM=OFF WITH_DEBUG_RAIL=OFF WITH_DEBUG_RDP=OFF WITH_DEBUG_RDPDR=OFF WITH_DEBUG_RDPEI=OFF WITH_DEBUG_RDPGFX=OFF WITH_DEBUG_REDIR=OFF WITH_DEBUG_RFX=OFF WITH_DEBUG_RINGBUFFER=OFF WITH_DEBUG_SCARD=OFF WITH_DEBUG_SCHANNEL=OFF WITH_DEBUG_SDL_EVENTS=OFF WITH_DEBUG_SDL_KBD_EVENTS=OFF WITH_DEBUG_SND=OFF WITH_DEBUG_SVC=OFF WITH_DEBUG_SYMBOLS=OFF WITH_DEBUG_THREADS=OFF WITH_DEBUG_TIMEZONE=OFF WITH_DEBUG_TRANSPORT=OFF WITH_DEBUG_TSG=OFF WITH_DEBUG_TSMF=OFF WITH_DEBUG_TSMF_AVAILABLE=0 WITH_DEBUG_URBDRC=OFF WITH_DEBUG_WND=OFF WITH_DEBUG_X11=OFF WITH_DEBUG_X11_LOCAL_MOVESIZE=OFF WITH_DEBUG_XV=OFF WITH_DSP_EXPERIMENTAL=OFF WITH_DSP_FFMPEG=ON WITH_DSP_FFMPEG_AVAILABLE=1 WITH_EVENTFD_READ_WRITE=1 WITH_FAAC=OFF WITH_FAAD2=OFF WITH_FFMPEG=ON WITH_FREERDP_DEPRECATED=OFF WITH_FREERDP_DEPRECATED_COMMANDLINE=OFF WITH_FUSE=ON WITH_GFX_H264=ON WITH_GPROF=OFF WITH_GSM=OFF WITH_GSTREAMER_1_0=OFF WITH_INTERNAL_MD4=OFF WITH_INTERNAL_MD5=OFF WITH_INTERNAL_RC4=OFF WITH_IPP=OFF WITH_JPEG=ON WITH_KRB5=OFF WITH_LAME=OFF WITH_LIBRARY_VERSIONING=ON WITH_LIBSYSTEMD=OFF WITH_LODEPNG=OFF WITH_MACAUDIO=OFF WITH_MACAUDIO_AVAILABLE=0 WITH_MANPAGES=OFF WITH_MBEDTLS=OFF WITH_NATIVE_SSPI=OFF WITH_NEON=OFF WITH_OPENCL=OFF WITH_OPENH264=TRUE WITH_OPENH264=TRUE WITH_OPENH264_LOADING=OFF WITH_OPENSSL=ON WITH_OPUS=OFF WITH_OSS=OFF WITH_PCSC=OFF WITH_PKCS11=OFF WITH_POLL=ON WITH_PROFILER=OFF WITH_PULSE=ON WITH_SAMPLE=ON WITH_SANITIZE_ADDRESS=OFF WITH_SANITIZE_ADDRESS_AVAILABLE=1 WITH_SANITIZE_MEMORY=OFF WITH_SANITIZE_MEMORY_AVAILABLE=1 WITH_SANITIZE_THREAD=OFF WITH_SANITIZE_THREAD_AVAILABLE=1 WITH_SERVER=OFF WITH_SERVER_INTERFACE=ON WITH_SMARTCARD_EMULATE=ON WITH_SMARTCARD_INSPECT=OFF WITH_SMARTCARD_PCSC=ON WITH_SOXR=OFF WITH_SSE2=ON WITH_SWSCALE=ON WITH_SYSTEMD=OFF WITH_THIRD_PARTY=OFF WITH_UNICODE_BUILTIN=OFF WITH_URIPARSER=OFF WITH_VAAPI=OFF WITH_VAAPI_AVAILABLE=1 WITH_VALGRIND_MEMCHECK=OFF WITH_VALGRIND_MEMCHECK_AVAILABLE=1 WITH_VERBOSE_WINPR_ASSERT=ON WITH_VIDEO_FFMPEG=ON WITH_VIDEO_FFMPEG_AVAILABLE=1 WITH_WAYLAND=OFF WITH_WEBVIEW=OFF WITH_WINPR_DEPRECATED=OFF WITH_WINPR_TOOLS=ON WITH_WIN_CONSOLE=ON WITH_X11=ON WITH_XCURSOR=ON WITH_XEXT=ON WITH_XFIXES=ON WITH_XI=ON WITH_XINERAMA=ON WITH_XRANDR=ON WITH_XRENDER=ON WITH_XV=OFF
Build type:          RelWithDebInfo
CFLAGS:              -fgraphite-identity -floop-interchange -floop-strip-mine -floop-block -floop-nest-optimize -march=znver2 -O2 -pipe -Wall -Wpedantic -Wno-padded -Wno-cast-align
-Wno-declaration-after-statement -fPIC -Wall -fvisibility=hidden -Wimplicit-function-declaration -Wredundant-decls -g -fno-omit-frame-pointer
Compiler:            GNU, 13.2.1
Target architecture: x64
  • Target: Windows 10 (AVD)

Environment (please complete the following information):

  • OS: Gentoo Linux
  • Kernel: 6.6.2
  • x64

Additional context
Tried also with /sec:aad but did not help. Connecting to a local virtual machine works with also Windows 10 works fine. Am I missing an option to compile?

Let me know anything else you need

Thanks

@akallabeth
Copy link
Member

akallabeth commented Nov 27, 2023

@DasHammett
this looks like unsupported stuff is in the rdp file (camera redirection), try to comment that and retry.
[edit] tested this with current master and rdp file parsing is working fine, even with RDPECAM disabled. looks like your build is broken (some channel library not installed)

as for [19:08:08:252] [24822:000060f7] [ERROR][com.freerdp.client.common] - [freerdp_client_load_channels]: Failed to load addins [%08X] fixed that in #9573

@DasHammett
Copy link
Author

Hi akallabeth

Apologies for bringing this up again, but with the latest master (after merging #9573 to master), I still have the same issue with the addings:

[16:01:12:676] [20647:000050a8] [INFO][com.freerdp.client.x11] - [xf_setup_x11]: Enabling X11 debug mode.
[16:01:12:708] [20647:000050a8] [ERROR][com.freerdp.client.common] - [freerdp_client_load_channels]: Failed to load addins [00000000]
[16:01:12:709] [20647:000050a7] [ERROR][com.freerdp.core] - [freerdp_abort_connect_context]: ERRCONNECT_CONNECT_CANCELLED [0x0002000B]

I am unsure what I might be missing?

@akallabeth
Copy link
Member

@DasHammett your build is still broken, it lacks some plugins at the proper location.
enable /log-level:debug, maybe you get more details.

@DasHammett
Copy link
Author

Added /log-level:debug but it does not seem to be helpful (or at least to me to see what I am missing).

[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]

Can you perhaps point me into the right direction of what might be missing from the buildlog posted in the previous posts? The fact that I can compile freerdpwithout issues but this is not working is puzzling me as I have no idea where to look

Kindly appreciate your help
Thanks

@loligans

This comment was marked as resolved.

@loligans
Copy link

loligans commented Dec 6, 2023

Fixed it by compiling the master branch locally. I'm able to connect and use my keyboard, but my mouse is pinned to the bottom right corner. Only the clicks are registered. I am unable to move the mouse away from the corner. No amount of movement changes the location i.e. it's not rubberbanding back to the corner it's just frozen there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants