Solved Qt creator error 126 running on windows 10 via RDP
-
Hi, try disabling some plugins and see if Qt Creator starts, on the command line try:
C:\Qt\Tools\QtCreator\bin>qtcreator.exe -noload all -load Core -
@hskoglund said in Qt creator error 126 running on windows 10 via RDP:
qtcreator.exe -noload all -load Core
Nope, same error.
-
You can also try profiling the launch of Qt Creator, first you need to see the debug output, download DebugView from Sysinternals, start it, then on the command line try:
C:\Qt\Tools\QtCreator\bin>qtcreator.exe -profile -
@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? -
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. -
@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.