Qt creator error 126 running on windows 10 via RDP
-
Hi All,
When I start QtCreator via a remote desktop connection I get this error:
"Load Library failed with error 126: The specified module could not be found." After clicking OK, Qt creator closes.Yesterday I ran Qt Creator on the same machine while physically sitting in front of it (so no remote desktop connection). This worked fine. it looks like the remote connection is the problem here.
My versions:
Windows 10 enterprise version 1909 OS build 18363.1916
Qt 5.14.2 MinGW 7.3.0 32-bit (I need to support a Qt program written using these versions)
Qt creator 6.01How can I solve this? A removal and reinstall didn't make a difference.
Do you need the version of the arch linux PC using VMware horizon client?Cheers,
Cedric -
@cdwijs target session (the one you are connecting to) seems to be not set properly. You said it works locally - make sure the environment that you access via RDP is the same (RDP server configuration most likely).
From what you said (you mention Windows and Linux) I can't figure what is what: can you please clearly state 1) what is the remote environment you are connecting to via RDP (the one on which Qt Creator works locally but not remotely) and 2) what is the OS you run RDP client on? -
-
what is the remote environment you are connecting to via RDP (the one on which Qt Creator works locally but not remotely)
This is a windows 10 PC with the following versions:
Windows 10 enterprise version 1909 OS build 18363.1916
Qt 5.14.2 MinGW 7.3.0 32-bit
Qt creator 6.01 -
what is the OS you run RDP client on?
Arch linux
$ uname -a
Linux cedric 5.15.8-arch1-1 #1 SMP PREEMPT Tue, 14 Dec 2021 12:28:02 +0000 x86_64 GNU/Linux
$ pacman -Qm
<snip>
vmware-horizon-client 2106.1-1
vmware-horizon-integrated-printing 2106.1-1
vmware-horizon-mmr 2106.1-1
vmware-horizon-rtav 2106.1-1
vmware-horizon-smartcard 2106.1-1
vmware-horizon-tsdr 2106.1-1
vmware-horizon-usb 2106.1-1
vmware-keymaps 1.0-3
<snip>
How can I figure out what the RDP server configuration is?
-
-
@cdwijs in this case the RDP server is built into the system. Are you using the same login for both local and remote access?
You can test environment doing a simple check: output %PATH% in the console for local and again in the remote session, see if they differ. If QtCreator can't load a library it is either not in the path for the remote or you are using different user (which my result in the path being different if you installed Qt for single user OR if user is the same it has limited permissions/setup compared to the local session.
-
Yes, I'm using the same login in both cases. I am not physically near the PC at the moment (working from home), so I can't check PATH in the local session.
Here it is for the remote session:
echo %PATH%
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\TortoiseGit\bin;C:\Program Files\Git\cmd;C:\Qt\6.1.1\mingw81_64\bin;C:\Qt\Tools\mingw810_64\bin;C;C;C:\Program Files\Graphviz\bin;C:\Program Files (x86)\dotnet;C:\Program Files\PuTTY;C:\Users\crldewijs\AppData\Local\Programs\Python\Python39\Scripts;C:\Users\crldewijs\AppData\Local\Programs\Python\Python39;C:\Users\crldewijs\AppData\Local\Microsoft\WindowsApps;C:\Users\crldewijs\AppData\Roaming\Python\Python39\Scripts;C:\Qt\5.15.2\mingw81_64\bin;C:\Qt\Tools\mingw810_64\bin;I tried to run qtcreator from the command prompt, but that does not yield any messages that could give more information on the situation. I only got the above mentioned error dialog, and nothing more:
C:\Qt\Tools\QtCreator\bin>qtcreator.exeC:\Qt\Tools\QtCreator\bin>
It would have been nice to know what library qtcreator is not finding.
-
@hskoglund said in Qt creator error 126 running on windows 10 via RDP:
qtcreator.exe -noload all -load Core
Nope, same error.
-
@cdwijs said in Qt creator error 126 running on windows 10 via RDP:
It would have been nice to know what library qtcreator is not finding.
when you set
QT_DEBUG_PLUGINS
env variable to 1 and start Qt Creator from the command line - what happens? -
@artwaw said in Qt creator error 126 running on windows 10 via RDP:
@cdwijs said in Qt creator error 126 running on windows 10 via RDP:
It would have been nice to know what library qtcreator is not finding.
when you set
QT_DEBUG_PLUGINS
env variable to 1 and start Qt Creator from the command line - what happens?C:\Qt\Tools\QtCreator\bin>set QT_DEBUG_PLUGINS=1
C:\Qt\Tools\QtCreator\bin>echo %QT_DEBUG_PLUGINS%
1
C:\Qt\Tools\QtCreator\bin>qtcreator.exeC:\Qt\Tools\QtCreator\bin>
And I see the error dialog -
@hskoglund said in Qt creator error 126 running on windows 10 via RDP:
Also: if you google "Load Library failed with error 126: The specified module could not be found" you'll find lots of apps having the same problem (RDP error 126):
AutoDesk, Maya etc.
So it seems the problem is not Qt related.While I see your point, I don't like the fact that Qt doesn't give a clear error message that can be used to trace the source of the problem, and potentially solve it.
-
@cdwijs Agreed, however when I googled I found that the same error message was displayed for apps like Autodesk, which is owned by a company with much bigger financial muscles/budget, they also failed to display a better error message.
Since this problem affects a lot of different apps, I think perhaps it is Microsoft that should try to improve that error message, since it seems to come from within WIndows itself :-)
-
@cdwijs VMware you said?
This error can happen due to the following known causes: The application is being accessed remotely via an RDP client, and is connecting by default to a built-in Intel video card, and not the video card used by ArcMap. The graphics card driver is not up-to-date. Conflicting graphic cards in the machine.
-
@artwaw said in Qt creator error 126 running on windows 10 via RDP:
@cdwijs VMware you said?
This error can happen due to the following known causes: The application is being accessed remotely via an RDP client, and is connecting by default to a built-in Intel video card, and not the video card used by ArcMap. The graphics card driver is not up-to-date. Conflicting graphic cards in the machine.
I found the above quote on this web page:
https://support.esri.com/en/technical-article/000022927
This web page suggest to disable the intel video card and reconnect the RDP session.
https://support.esri.com/en/technical-article/000023067My device manager indeed shows I have two real video cards (and one virtual one):
AMD Radeon RX5500
Intel(R) UHD graphics 630 (Inside the core i7-8700 CPU)
Microsoft Remote Display Adapteredit: this works for me:
Right click on Intel(R) UHD graphics 630 in device manager and choose "disable driver".
Then disconnect from the remote desktop session by clicking the white cross on the top blue overlay.
Then connect again using remote desktop
Finally start qtcreator. Now it works without error dialog.Thank you all for the assistance, I would not have found this on my own.