ArchAngel2191

"Error: LoadLibrary failed.." when running trainer

Recommended Posts

Hello!

I just reinstalled the RXP GTN750 and have been having an issue when I load it up. When I activate the avionics, I get an error message saying Error: LoadLibrary failed to load XXXXX.dll. GetLastError: 126. The XXXXXs are the DLL files for the Garmin trainer program. When I start trying to clear them out, I get additional messages saying different DLLs failed to load to the tune of every single DLL file. Sometimes the trainer will load up after all of that and sometimes it just crashes. I've checked the crash report and it doesn't show anything. I've taken the following steps to try and correct the problem with no success:

Uninstall RXP and Garmin Trainer and reinstall

Uninstall only Garmin and reinstall

Uninstall, disable all AV and firewall programs, and reinstall

CCleaner registry sweep (in case there were old reg entries that might have been causing a problem from the 2.1.0.0 of Garmin)

 

I can say for certain that the problem is the Garmin trainer itself. I have loaded the standalone launcher outside of X-Plane and it gives me the same errors. I know this isn't Garmin support, but I've tried to Google around and find an answer, but have not been successful on that front either. Any advice would be GREATLY appreciated as I really enjoy the 750. The version of the Garmin launcher is 2.3.0.0 and the GTN trainer is v6.50

 

Thank you all in advance for any possible ideas and solutions!

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi,

could this be you've installed the Garmin in a root folder, says D:\trainers\... (instead of D:\garmin\trainers\...) , or, you've moved the Garmin trainer files manually to another folder after installation?

Share this post


Link to post
Share on other sites

Hello and thank you for the reply!

I've been using the default install location for the trainer. I installed it to a different location as a troubleshooting method to no avail. I only ever changed the install location via the installer and no manually.

Share this post


Link to post
Share on other sites

Just to make sure, do you get this message when running the trainer standalone (manually) and/or when out GTN runs the trainer?

Share this post


Link to post
Share on other sites

I've got the exact same problem.

I tried many different installations (as admin or not), only the GTN Trainers or all the trainers, following this post : 

 

But no luck...

Always the same error messages related to the loadlibrary failure (failed to load iop_b.dll, iop_c.dll, iop_d.dll, iop_com.dll, iop_nav.dll, iop_was.dll, nav_main.dll, prx_main.dll, dbm_main.dll, cht_main.dll, tws.dll, iop_e.dll, apth.dll, iop_sim.dll, cdp.dll)

After closing all of those dialog boxes, the trainer starts OK

Those errors are thrown when launching the GTN Trainer standalone or in Prepar3d

Configuration :Windows 10 updated / GeForce GTX1080 with latest drivers (416.34)

 

Share this post


Link to post
Share on other sites

I happens both when I use the RXP and outside when just running the trainer as a standalone

Share this post


Link to post
Share on other sites

Thank you for the additional information. This definitely is something Garmin trainer only and I'd suggest you try contacting Garmin's support in parallel to find out their take on this issue and eventually their recommended solution.

In the meantime, we'll try to see what could be the reasons with your help.

@elheroes do you mean once closing the dialogs the trainer still runs standalone fine afterward or does it fails further down the road with other kind of messages?

Edited by RXP

Share this post


Link to post
Share on other sites

Yes, once closing the dialogs the trainer works fine, either standalone or in Prepar3d (didn't tried before because the dialog boxes appear behind the Prepar3d window...)

I've even renamed all the dll in lower cases (since they are installed with capital letters and the error message is in lower cases 😉 : still no luck

Share this post


Link to post
Share on other sites

@elheroes well, let's try to dig this deeper if you agree.

There are special settings you may manually add to the RealityXP.GTN.ini file in order to help finding the root cause. They are explained here:

Can you please try these settings out and let us know what the RXP log files say when loaded in P3D?

Share this post


Link to post
Share on other sites

@Jean-Luc many thanks for your commitment to this issue

Here are the log files after adding the quoted lines in the RealityXP.GTN.ini file :

rxpGTN.gau.log

Quote

18/11/07 20:28:05.332 19408 -    ] # rxpGTN.dll version 2.5.7.0
18/11/07 20:28:05.332 19408 INFO ] 

 rxpGtnSim.dll.log

Quote

18/11/07 20:28:07.736 19408 -    ] # rxpGtnSim64.dll version 2.5.7.0
18/11/07 20:28:07.735 19408 INFO ] 
18/11/07 20:28:09.075 19408 INFO ] using: D:\Users\web2\Documents\Prepar3D v4 Add-ons\A2A\SimObjects\Airplanes\A2A_C172\checklist.gtn
18/11/07 20:28:10.729 21848 INFO ] 
18/11/07 20:28:11.334 19656 INFO ] GTN: 00 ..\..\src\krnl\krnl_lib\sim\tsk_win_prj.c(188) Error: LoadLibrary failed to load iop_c.dll. GetLastError: 126
18/11/07 20:28:21.337 20948 INFO ] GTN: 00 ..\..\lib\acl\tsk\processors\arm\tsk_usr.c(1970) (null)
18/11/07 20:28:31.538 20948 INFO ] GTN: 00 ..\..\lib\acl\tsk\processors\arm\tsk_usr.c(1970) (null)
18/11/07 20:28:53.565 22384 INFO ] GTN: 00 ..\..\src\krnl\krnl_lib\sim\tsk_win_prj.c(188) Error: LoadLibrary failed to load iop_d.dll. GetLastError: 126
18/11/07 20:28:54.144 17796 INFO ] GTN: 00 ..\..\src\krnl\krnl_lib\sim\tsk_win_prj.c(188) Error: LoadLibrary failed to load iop_com.dll. GetLastError: 126
18/11/07 20:28:54.574 21564 INFO ] GTN: 00 ..\..\src\krnl\krnl_lib\sim\tsk_win_prj.c(188) Error: LoadLibrary failed to load iop_nav.dll. GetLastError: 126
18/11/07 20:28:54.993 22472 INFO ] GTN: 00 ..\..\src\krnl\krnl_lib\sim\tsk_win_prj.c(188) Error: LoadLibrary failed to load iop_waas.dll. GetLastError: 126
18/11/07 20:28:55.444 11624 INFO ] GTN: 00 ..\..\src\krnl\krnl_lib\sim\tsk_win_prj.c(188) Error: LoadLibrary failed to load nav_main.dll. GetLastError: 126
18/11/07 20:28:55.944 20872 INFO ] GTN: 00 ..\..\src\krnl\krnl_lib\sim\tsk_win_prj.c(188) Error: LoadLibrary failed to load prx_main.dll. GetLastError: 126
18/11/07 20:28:56.415 19464 INFO ] GTN: 00 ..\..\src\krnl\krnl_lib\sim\tsk_win_prj.c(188) Error: LoadLibrary failed to load dbm_main.dll. GetLastError: 126
18/11/07 20:28:56.889 19640 INFO ] GTN: 00 ..\..\src\krnl\krnl_lib\sim\tsk_win_prj.c(188) Error: LoadLibrary failed to load cht_main.dll. GetLastError: 126
18/11/07 20:28:57.330 22096 INFO ] GTN: 00 ..\..\src\krnl\krnl_lib\sim\tsk_win_prj.c(188) Error: LoadLibrary failed to load tws.dll. GetLastError: 126
18/11/07 20:28:57.784 20180 INFO ] GTN: 00 ..\..\src\krnl\krnl_lib\sim\tsk_win_prj.c(188) Error: LoadLibrary failed to load iop_e.dll. GetLastError: 126
18/11/07 20:28:58.263 21864 INFO ] GTN: 00 ..\..\src\krnl\krnl_lib\sim\tsk_win_prj.c(188) Error: LoadLibrary failed to load apth.dll. GetLastError: 126
18/11/07 20:28:58.805 22388 INFO ] GFX Debug: enabled.

 

Share this post


Link to post
Share on other sites

This explains a little more. This might be a case where these trainer dll files are dependent on other(s) dll and somehow it fails to locate them on your drive.

I'd suggest the following:

1) Download and install this Microsoft tool:

https://docs.microsoft.com/en-us/sysinternals/downloads/procmon

2) review this article to setup the tool and trace (log) its activity:

https://www.codeproject.com/Articles/560816/Troubleshooting-dependency-resolution-problems-usi

 

These shall help finding out why it is failing to load these DLLs to start with.

Share this post


Link to post
Share on other sites

I did try the procmon utility but didn't know how to correctly filter the results

thanks for the link !

Here are the results when filltering  by Result = NAME NOT FOUND (when starting the GTN 750 Navigator through Trainer standalone)

Process Name Operation Path
Aviation_Trainer_Launcher.exe CreateFile D:\Progs\Garmin\Trainers\Launcher\sxs.dll
Aviation_Trainer_Launcher.exe CreateFile D:\Progs\Garmin\Trainers\Launcher\cscapi.dll
Aviation_Trainer_Launcher.exe CreateFile C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\ntdll.dll
Aviation_Trainer_Launcher.exe CreateFile C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\ntdll.dll
Aviation_Trainer_Launcher.exe CreateFile C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\ntdll.dll
Aviation_Trainer_Launcher.exe CreateFile D:\Progs\Garmin\Trainers\Launcher\roarclient.DLL
Aviation_Trainer_Launcher.exe CreateFile D:\Progs\Garmin\Trainers\Launcher\roarclient.DLL
Aviation_Trainer_Launcher.exe CreateFile D:\Progs\Garmin\Trainers\Launcher\roarclient.DLL
Aviation_Trainer_Launcher.exe CreateFile D:\Progs\Garmin\Trainers\Launcher\roarclient.DLL

Share this post


Link to post
Share on other sites

I did the same thing, more than likely with poor filtering as well but it did give me some results but nothing that stood out (at least to me)

 

SNIP

Share this post


Link to post
Share on other sites

@ArchAngel2191 thank you for the screnshot but this doesn't show any error? Is there a way you could save the captured log and share it online for the full picture?

@elheroes thank you as well for the additional data. Have you installed the garmin trainer in "D:\Progs\Garmin\" and is the "roarclient.dll" found at the path listed in the log? Also, is there a way you could save a capture and share it?

Share this post


Link to post
Share on other sites

I did installed the Trainer in d:\progs to give it a try but the result is the same when installing in the default folder : C:\Program Files (x86)

Did fresh reinstall in the default directory, here the complete log file with the following filters :

 Path ends with dll

Result = NAME NOT FOUND / PATH NOT FOUND

exclude FAST IO / SUCCESS / BUFFER OVERFLOW / INVALID PARAMETER / IS DIRECTORY / NOT REPARSE POINT

https://www.dropbox.com/s/qb3rcoid8i691hy/Logfile.CSV?dl=0

It shows all errors from the start of the launcher

The start of the navigator itself is a the end of the file from 8:07:44 AM

Share this post


Link to post
Share on other sites

Hi and thank you both! I'll review these now.

Share this post


Link to post
Share on other sites

@elheroes unfortunately this is a log for the GTN Launcher. I'd need a log for GTN  simulator.exe instead, preferably exported as procmon file format "PML" as it has much more valuable information to try finding out the issue at hand.

I'd also prefer a non-filtered log file except just filtered on process name "GTN simulator.exe", so that I can review both successes and errors in context.

@ArchAngel2191 I thank for the PML file, much easier to deal with. Unfortunately this left me puzzled, as there is nothing in the log which shows any error in loading the DLLs?!?! However, I also notice there are no registry activity in the log file, just file activity.

 

Edited by RXP

Share this post


Link to post
Share on other sites

I noticed that as well, but that might be me not quite understanding the procmon filters. Ill try another one and see if I can cap some reg activity. I finally got a hold of Garmin and am currently playing email tag with them to troubleshoot the issue as well.

Share this post


Link to post
Share on other sites

@ArchAngel2191 The easiest is just to capture and save a full log without any filter, except filtering on the process name so that it logs only what is pertinent to "GTN simulator.exe".

The capture you've linked above was fine otherwise!

Edited by RXP

Share this post


Link to post
Share on other sites

@elheroes this is much better, thank you. Can you confirm during this capture running the trainer standalone you've got message boxes with the 'DLL load' error? I can't see anything which would indicate any failure in the captured log.

However, I can see both of you are using COMODO (anti-virus I guess?). Can you please try disabling Comodo just prior launching the trainer and see if this has any positive consequence?

Share this post


Link to post
Share on other sites

Yes, I did get the LoadLibrary error messages

I tried disabling Comodo but it didn't make any differences

I then tried running the Trainer in Safe Mode : no more error messages !

But it doesn't seem possible to run procmon in safe mode : I wanted to be able to identify some differences in the start sequence

Share this post


Link to post
Share on other sites

I just purchased the plugin and during install I let the installer download and install the trainer. Separately I also downloaded the alternate zip file version of the trainer mentioned. So after installation when starting the trainer I get the following: "Error: LoadLibrary failed to load cdp.dll. GetLastError:8". This is a brand new install on a Windows 10 machine. So then I installed the version in the zip file (I'm not sure which one is the more recent) and that one works (GTN v6.21). Anybody has any ideas what's going on? Also, which specific manual talks about embedding the plugin in an aircraft panel and where is this manual file located? Many thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now