Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT Creator hangs on opening a file or project

QT Creator hangs on opening a file or project

Scheduled Pinned Locked Moved Solved General and Desktop
32 Posts 5 Posters 6.7k Views
  • 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.
  • M mrjj
    24 Jun 2020, 21:14

    @dashthird
    reboot
    Then just try to run Creator.
    (i pray for a bit of luck)

    D Offline
    D Offline
    dashthird
    wrote on 25 Jun 2020, 15:06 last edited by
    #12

    @mrjj
    Even after AVG uninstall + reboot, the issue is still there :(

    1 Reply Last reply
    0
    • H hskoglund
      24 Jun 2020, 21:33

      To add to @mrjj, in case the uninstallation of AVG didn't help, there's one more thing you could try, start a CMD window, type set path= to clear the path and then in that same CMD try start Qt Creator manually, eg:

      set path=
      C:\qt\tools\qtcreator\bin\qtcreator.exe
      

      If you can Browse for project folder location now, then there's something spooky in your path settings. However, when starting Qt Creator this way, you will most likely not be able to compile from inside Qt Creator :-(

      D Offline
      D Offline
      dashthird
      wrote on 25 Jun 2020, 15:18 last edited by
      #13

      @hskoglund
      Tried your method also, set the path & also ran the QTCreator from CMD.
      Still then, on "File->Open project/file", the issue is same :(

      I would record a small video of the same & post it here

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hskoglund
        wrote on 25 Jun 2020, 15:23 last edited by
        #14

        Ok one more : try disconnect from internet, pull out the wire or disconnect the WiFi

        D 1 Reply Last reply 25 Jun 2020, 16:38
        1
        • H hskoglund
          25 Jun 2020, 15:23

          Ok one more : try disconnect from internet, pull out the wire or disconnect the WiFi

          D Offline
          D Offline
          dashthird
          wrote on 25 Jun 2020, 16:38 last edited by
          #15

          @hskoglund Even after disconnecting from the internet, the issue is same

          @hskoglund @mrjj Please find the video link attached

          QTIssue.avi

          1 Reply Last reply
          0
          • H Offline
            H Offline
            hskoglund
            wrote on 25 Jun 2020, 17:21 last edited by
            #16

            Hi, saw the video, 2 things you can try:

            1. try reinstalling Qt 5.6.1 on C: (not E:)
            2. go to Control Panel and create a new user, log out and log in as that new user, then try Qt Creator
            D 1 Reply Last reply 25 Jun 2020, 17:50
            1
            • H hskoglund
              25 Jun 2020, 17:21

              Hi, saw the video, 2 things you can try:

              1. try reinstalling Qt 5.6.1 on C: (not E:)
              2. go to Control Panel and create a new user, log out and log in as that new user, then try Qt Creator
              D Offline
              D Offline
              dashthird
              wrote on 25 Jun 2020, 17:50 last edited by
              #17

              @hskoglund The issue is still the same!

              M 1 Reply Last reply 25 Jun 2020, 17:53
              0
              • D dashthird
                25 Jun 2020, 17:50

                @hskoglund The issue is still the same!

                M Offline
                M Offline
                mrjj
                Lifetime Qt Champion
                wrote on 25 Jun 2020, 17:53 last edited by
                #18

                @dashthird
                so even with new user, and Qt install on C:
                it still does it ?
                (OMG)

                1 Reply Last reply
                0
                • H Offline
                  H Offline
                  hskoglund
                  wrote on 25 Jun 2020, 18:12 last edited by
                  #19

                  Oh, forgot one thing you can test: open a CMD window and start Qt Creator with 2 switches, like this:

                  C:\qt\Tools\QtCreator\bin\qtcreator.exe -noload all -load Core
                  

                  You will have a stripped down UI but Open File or Project is still present...

                  D 1 Reply Last reply 25 Jun 2020, 18:55
                  3
                  • D Offline
                    D Offline
                    dashthird
                    wrote on 25 Jun 2020, 18:39 last edited by
                    #20

                    @mrjj

                    I had tried 2 approaches:
                    created a new user "test"

                    1. in new user, simply tried opening QT Creator of E:(installed by old user) & then "File->Open project/file"
                      Still the same issue

                    2. in old user, deleted the QT from E:
                      in new user, installed QT at C: & then "File->Open project/file"
                      Still the same issue

                    @hskoglund
                    Would try your latest CMD method & would let you know the output

                    1 Reply Last reply
                    0
                    • H hskoglund
                      25 Jun 2020, 18:12

                      Oh, forgot one thing you can test: open a CMD window and start Qt Creator with 2 switches, like this:

                      C:\qt\Tools\QtCreator\bin\qtcreator.exe -noload all -load Core
                      

                      You will have a stripped down UI but Open File or Project is still present...

                      D Offline
                      D Offline
                      dashthird
                      wrote on 25 Jun 2020, 18:55 last edited by
                      #21

                      @hskoglund
                      Yes, Yes, I am able to see the Open Project/file window when I open from CMD using:

                      C:\Qt\Qt5.6.1\Tools\QtCreator\bin\qtcreator.exe -noload all -load Core

                      Here's the screenshot:
                      5d16ef46-bdda-49de-8c3b-7f44628077ea-image.png

                      :)

                      Where do you think is the cause?

                      1 Reply Last reply
                      0
                      • H Offline
                        H Offline
                        hskoglund
                        wrote on 25 Jun 2020, 19:29 last edited by
                        #22

                        So most likely some Qt Creator plugin is the culprit.
                        To find which one(s), start Qt Creator (you can start it normally), open the Help\About Plugins dialog box.

                        Try deselecting (making the plugin not Load) some of the plugins, try first with all the plugins listed under Utilities. Then exit Qt Creator, start it again and try Open File or Project and see if it hangs. If it still hangs, try deselecting more plugins. If it does not hang, then try selecting a few plugins to see which one is the bad boy :-)

                        J 1 Reply Last reply 25 Jun 2020, 19:32
                        1
                        • H hskoglund
                          25 Jun 2020, 19:29

                          So most likely some Qt Creator plugin is the culprit.
                          To find which one(s), start Qt Creator (you can start it normally), open the Help\About Plugins dialog box.

                          Try deselecting (making the plugin not Load) some of the plugins, try first with all the plugins listed under Utilities. Then exit Qt Creator, start it again and try Open File or Project and see if it hangs. If it still hangs, try deselecting more plugins. If it does not hang, then try selecting a few plugins to see which one is the bad boy :-)

                          J Offline
                          J Offline
                          JonB
                          wrote on 25 Jun 2020, 19:32 last edited by
                          #23

                          @hskoglund
                          Would this be a case where the user should set

                          set QT_DEBUG_PLUGINS=1
                          

                          in CMD before running qtcreator.exe and see if it reveals any plugin problem or suspect?

                          1 Reply Last reply
                          0
                          • H Offline
                            H Offline
                            hskoglund
                            wrote on 25 Jun 2020, 19:35 last edited by
                            #24

                            @JonB Might be, but the hang does not occur when launching Qt Creator, but when selecting Open File or Project, and by that time most of the plugins are already loaded.

                            J 1 Reply Last reply 25 Jun 2020, 19:45
                            1
                            • H hskoglund
                              25 Jun 2020, 19:35

                              @JonB Might be, but the hang does not occur when launching Qt Creator, but when selecting Open File or Project, and by that time most of the plugins are already loaded.

                              J Offline
                              J Offline
                              JonB
                              wrote on 25 Jun 2020, 19:45 last edited by JonB
                              #25

                              @hskoglund
                              Yes, I have no idea, I was hoping with QT_DEBUG_PLUGINS they might speak up as they were called to do something and give a clue as to what was happening :)

                              1 Reply Last reply
                              0
                              • H Offline
                                H Offline
                                hskoglund
                                wrote on 25 Jun 2020, 20:07 last edited by
                                #26

                                @JonB QT_DEBUG_PLUGINS will cause qDebug() outputs from the likes of qpluginloader.cpp and qlibrary.cpp but a normal plugin I think is an ignoramus re. that env. variable.

                                But having a dbgview running before trying that Open File or Project hanging stunt can be a good idea, since there might be a qWarning issued in there somewhere...

                                D 1 Reply Last reply 25 Jun 2020, 21:12
                                2
                                • H hskoglund
                                  25 Jun 2020, 20:07

                                  @JonB QT_DEBUG_PLUGINS will cause qDebug() outputs from the likes of qpluginloader.cpp and qlibrary.cpp but a normal plugin I think is an ignoramus re. that env. variable.

                                  But having a dbgview running before trying that Open File or Project hanging stunt can be a good idea, since there might be a qWarning issued in there somewhere...

                                  D Offline
                                  D Offline
                                  dashthird
                                  wrote on 25 Jun 2020, 21:12 last edited by dashthird
                                  #27

                                  @hskoglund
                                  The culprit is the "Welcome" plugin (of "QT Creator" section)
                                  On disabling that, I am now able to do "File->Open file/project" :-)

                                  Now the starting QT UI seems a lot similar like the QT SDK 1.2.1 (maintained by Nokia), which I was using before upgradation to QT 5+ version.

                                  Thanks a lot!!!
                                  I can finally start coding in C++ now :)

                                  One last question: Is there any alternate way to enable the functionality of that "Welcome" plugin ?

                                  1 Reply Last reply
                                  0
                                  • H Offline
                                    H Offline
                                    hskoglund
                                    wrote on 25 Jun 2020, 21:30 last edited by hskoglund
                                    #28

                                    Hmm don't know any alternate way, you'll have no "Welcome" icon on the left sidebar, but you can use the File menu to create new projects and load existing ones. And browse the Qt Examples manually using File Explorer.

                                    And F1 context help still works in the editor etc so you'll survive I think :-)

                                    Edit: just realized, you're not using a recent Qt Creator (version right now is 4.12.3)?
                                    Some years ago, the Welcome plugin in those old Qt Creator versions relied on OpenGL functionality, so it was a common cure to disable it like you did today (just google for "Qt Creator Welcome plugin problem")
                                    The Welcome plugin was rewritten to not rely on OpenGL, maybe 3 years ago? So you could try update your Qt Creator and re-enable the Welcome plugin...

                                    D 1 Reply Last reply 25 Jun 2020, 21:44
                                    2
                                    • H hskoglund
                                      25 Jun 2020, 21:30

                                      Hmm don't know any alternate way, you'll have no "Welcome" icon on the left sidebar, but you can use the File menu to create new projects and load existing ones. And browse the Qt Examples manually using File Explorer.

                                      And F1 context help still works in the editor etc so you'll survive I think :-)

                                      Edit: just realized, you're not using a recent Qt Creator (version right now is 4.12.3)?
                                      Some years ago, the Welcome plugin in those old Qt Creator versions relied on OpenGL functionality, so it was a common cure to disable it like you did today (just google for "Qt Creator Welcome plugin problem")
                                      The Welcome plugin was rewritten to not rely on OpenGL, maybe 3 years ago? So you could try update your Qt Creator and re-enable the Welcome plugin...

                                      D Offline
                                      D Offline
                                      dashthird
                                      wrote on 25 Jun 2020, 21:44 last edited by dashthird
                                      #29

                                      @hskoglund
                                      Okay, would try that.

                                      I had actually downloaded a single all-in-one installation package qt-opensource-windows-x86-mingw492-5.6.1-1.exe

                                      I had not edited any QTCreator version in that. The QT Creator 4.0.1 is bundled with v 5.6.1, so may be the latest Creator v4.12.3 is bundled with v5.15. Would check that also

                                      Thanks a lot!
                                      Have marked your answer as the solution :)

                                      1 Reply Last reply
                                      0
                                      • M Offline
                                        M Offline
                                        mrjj
                                        Lifetime Qt Champion
                                        wrote on 26 Jun 2020, 07:17 last edited by
                                        #30

                                        Hi
                                        Holy crap it was the welcome screen that did it ?
                                        That used to stop Creator from running at all if OpenGL support was to weak.
                                        I had never imagined it would affect the file open.
                                        As @hskoglund says, it used to be a common issue.

                                        J 1 Reply Last reply 26 Jun 2020, 07:21
                                        0
                                        • M mrjj
                                          26 Jun 2020, 07:17

                                          Hi
                                          Holy crap it was the welcome screen that did it ?
                                          That used to stop Creator from running at all if OpenGL support was to weak.
                                          I had never imagined it would affect the file open.
                                          As @hskoglund says, it used to be a common issue.

                                          J Offline
                                          J Offline
                                          jsulm
                                          Lifetime Qt Champion
                                          wrote on 26 Jun 2020, 07:21 last edited by
                                          #31

                                          @mrjj Looks like the Welcome plug-in becomes smarter :-D

                                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                                          M 1 Reply Last reply 26 Jun 2020, 07:23
                                          1

                                          21/32

                                          25 Jun 2020, 18:55

                                          • Login

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