Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt creator error 126 running on windows 10 via RDP
Forum Updated to NodeBB v4.3 + New Features

Qt creator error 126 running on windows 10 via RDP

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
15 Posts 3 Posters 2.3k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cdwijs
    wrote on last edited by
    #3
    1. 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

    2. 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?

    artwawA 1 Reply Last reply
    0
    • C cdwijs
      1. 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

      2. 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?

      artwawA Offline
      artwawA Offline
      artwaw
      wrote on last edited by
      #4

      @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.

      For more information please re-read.

      Kind Regards,
      Artur

      C 1 Reply Last reply
      0
      • artwawA artwaw

        @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.

        C Offline
        C Offline
        cdwijs
        wrote on last edited by
        #5

        @artwaw

        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.exe

        C:\Qt\Tools\QtCreator\bin>

        It would have been nice to know what library qtcreator is not finding.

        artwawA 1 Reply Last reply
        0
        • hskoglundH Offline
          hskoglundH Offline
          hskoglund
          wrote on last edited by
          #6

          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

          1 Reply Last reply
          0
          • C Offline
            C Offline
            cdwijs
            wrote on last edited by
            #7

            @hskoglund said in Qt creator error 126 running on windows 10 via RDP:

            qtcreator.exe -noload all -load Core

            Nope, same error.

            1 Reply Last reply
            0
            • hskoglundH Offline
              hskoglundH Offline
              hskoglund
              wrote on last edited by
              #8

              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

              1 Reply Last reply
              0
              • C cdwijs

                @artwaw

                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.exe

                C:\Qt\Tools\QtCreator\bin>

                It would have been nice to know what library qtcreator is not finding.

                artwawA Offline
                artwawA Offline
                artwaw
                wrote on last edited by
                #9

                @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?

                For more information please re-read.

                Kind Regards,
                Artur

                C 1 Reply Last reply
                0
                • hskoglundH Offline
                  hskoglundH Offline
                  hskoglund
                  wrote on last edited by
                  #10

                  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.

                  C 1 Reply Last reply
                  0
                  • artwawA artwaw

                    @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 Offline
                    C Offline
                    cdwijs
                    wrote on last edited by
                    #11

                    @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.exe

                    C:\Qt\Tools\QtCreator\bin>
                    And I see the error dialog

                    1 Reply Last reply
                    0
                    • hskoglundH hskoglund

                      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.

                      C Offline
                      C Offline
                      cdwijs
                      wrote on last edited by
                      #12

                      @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.

                      hskoglundH artwawA 2 Replies Last reply
                      0
                      • C cdwijs

                        @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.

                        hskoglundH Offline
                        hskoglundH Offline
                        hskoglund
                        wrote on last edited by
                        #13

                        @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 :-)

                        1 Reply Last reply
                        0
                        • C cdwijs

                          @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.

                          artwawA Offline
                          artwawA Offline
                          artwaw
                          wrote on last edited by
                          #14

                          @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.
                          

                          For more information please re-read.

                          Kind Regards,
                          Artur

                          C 1 Reply Last reply
                          0
                          • artwawA artwaw

                            @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.
                            
                            C Offline
                            C Offline
                            cdwijs
                            wrote on last edited by cdwijs
                            #15

                            @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/000023067

                            My 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 Adapter

                            edit: 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.

                            1 Reply Last reply
                            1

                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved