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. QtCreator crashed and now will not start due to segfault
Forum Update on Monday, May 27th 2025

QtCreator crashed and now will not start due to segfault

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
installqt-creatorsegfault
35 Posts 7 Posters 8.4k 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.
  • T TMcSquared
    9 Aug 2018, 15:41

    I get a segmentation fault when I run it from the cmdline both without and with arguments.

    J Offline
    J Offline
    JonB
    wrote on 9 Aug 2018, 15:51 last edited by
    #10

    @TMcSquared
    There's, oohh, a 1% chance that if you try running Qt Creator from within a debugger like Visual Studio (if you have that...), when it faults you'll get enough information from the stack trace to hazard a guess as to where it's going wrong...

    1 Reply Last reply
    0
    • T Offline
      T Offline
      TMcSquared
      wrote on 9 Aug 2018, 16:20 last edited by
      #11

      I just debugged it and got this: Exception thrown at 0x670E5DA7 (Qt5Core.dll) in qtcreator.exe: 0xC0000005: Access violation reading location 0x7E5B8721.

      A 1 Reply Last reply 9 Aug 2018, 16:54
      0
      • T TMcSquared
        9 Aug 2018, 16:20

        I just debugged it and got this: Exception thrown at 0x670E5DA7 (Qt5Core.dll) in qtcreator.exe: 0xC0000005: Access violation reading location 0x7E5B8721.

        A Offline
        A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on 9 Aug 2018, 16:54 last edited by
        #12

        @TMcSquared

        Is it possible that the wrong Qt DLLs are loaded? Have you changed the PATH environment variable, for example?

        Qt has to stay free or it will die.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          TMcSquared
          wrote on 9 Aug 2018, 16:55 last edited by TMcSquared 8 Sept 2018, 16:59
          #13

          Hmm I'll try adding it to the PATH xD

          EDIT: that didn't work

          A J 2 Replies Last reply 9 Aug 2018, 16:56
          0
          • T TMcSquared
            9 Aug 2018, 16:55

            Hmm I'll try adding it to the PATH xD

            EDIT: that didn't work

            A Offline
            A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on 9 Aug 2018, 16:56 last edited by
            #14

            @TMcSquared

            No, that's not what I meant! I meant, have you done before? Or have you installed some program that did?

            Qt has to stay free or it will die.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mranger90
              wrote on 9 Aug 2018, 17:00 last edited by
              #15

              Take a look at qt.conf in the creator/bin directory. If it's corrupted then plugins wont load.

              1 Reply Last reply
              0
              • T Offline
                T Offline
                TMcSquared
                wrote on 9 Aug 2018, 17:12 last edited by
                #16

                It's not corrupted because it's a clean install

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mranger90
                  wrote on 9 Aug 2018, 19:08 last edited by
                  #17

                  The try wiping out the creator files under AppData\Roaming\Qtproject

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    TMcSquared
                    wrote on 9 Aug 2018, 19:20 last edited by
                    #18

                    already did that.

                    M 1 Reply Last reply 9 Aug 2018, 19:28
                    0
                    • T TMcSquared
                      9 Aug 2018, 19:20

                      already did that.

                      M Offline
                      M Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on 9 Aug 2018, 19:28 last edited by
                      #19

                      @TMcSquared
                      Best guess is that it gets wrong QtDLLs maybe via
                      path.

                      1 Reply Last reply
                      1
                      • T Offline
                        T Offline
                        TMcSquared
                        wrote on 9 Aug 2018, 20:30 last edited by
                        #20

                        My PATH variable has zero Qt paths in it. even after a clean install.

                        M 1 Reply Last reply 9 Aug 2018, 20:32
                        0
                        • T TMcSquared
                          9 Aug 2018, 20:30

                          My PATH variable has zero Qt paths in it. even after a clean install.

                          M Offline
                          M Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on 9 Aug 2018, 20:32 last edited by
                          #21

                          @TMcSquared
                          I have no idea then.
                          last test
                          can you start with
                          qtcreator -noload Welcome -noload QmlDesigner -noload QmlProfiler
                          from shell and see if still crash ?

                          T 1 Reply Last reply 9 Aug 2018, 20:51
                          2
                          • M mrjj
                            9 Aug 2018, 20:32

                            @TMcSquared
                            I have no idea then.
                            last test
                            can you start with
                            qtcreator -noload Welcome -noload QmlDesigner -noload QmlProfiler
                            from shell and see if still crash ?

                            T Offline
                            T Offline
                            TMcSquared
                            wrote on 9 Aug 2018, 20:51 last edited by
                            #22

                            :O It opened with qtcreator -noload Welcome -noload QmlDesigner -noload QmlProfiler

                            1 Reply Last reply
                            1
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on 9 Aug 2018, 20:52 last edited by
                              #23

                              Hi,

                              Then it sounds like a graphic driver issue then. Are you sure there wasn't any modification in that regard on your machine ?

                              Interested in AI ? www.idiap.ch
                              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                              1 Reply Last reply
                              3
                              • T TMcSquared
                                9 Aug 2018, 16:55

                                Hmm I'll try adding it to the PATH xD

                                EDIT: that didn't work

                                J Offline
                                J Offline
                                JonB
                                wrote on 9 Aug 2018, 20:55 last edited by JonB 8 Sept 2018, 20:56
                                #24

                                @TMcSquared
                                You could check whether Windows Update snuck in and did anything since it last worked... :)

                                1 Reply Last reply
                                0
                                • T Offline
                                  T Offline
                                  TMcSquared
                                  wrote on 9 Aug 2018, 21:23 last edited by TMcSquared 8 Sept 2018, 21:24
                                  #25

                                  That's completely possible, thanks for your guy's help!
                                  @SGaist I have no idea, it quit working while I was logged in.

                                  1 Reply Last reply
                                  1
                                  • N Offline
                                    N Offline
                                    nwoki
                                    wrote on 19 Oct 2018, 11:10 last edited by
                                    #26

                                    Hi all. Sorry to revive this topic but this problem has occurred to me as well but on an application I wrote for a client. The application was running fine. Then it crashed (just like @TMcSquared ) and hasn't opened since.
                                    My access violation is in the QtWidgets.dll module.

                                    Any clues? (i don't have the welcome/QmlDesigner/etc modules to disable on load as does qtcreatorI)

                                    M 1 Reply Last reply 19 Oct 2018, 11:24
                                    0
                                    • N nwoki
                                      19 Oct 2018, 11:10

                                      Hi all. Sorry to revive this topic but this problem has occurred to me as well but on an application I wrote for a client. The application was running fine. Then it crashed (just like @TMcSquared ) and hasn't opened since.
                                      My access violation is in the QtWidgets.dll module.

                                      Any clues? (i don't have the welcome/QmlDesigner/etc modules to disable on load as does qtcreatorI)

                                      M Offline
                                      M Offline
                                      mrjj
                                      Lifetime Qt Champion
                                      wrote on 19 Oct 2018, 11:24 last edited by
                                      #27

                                      @nwoki
                                      Hi
                                      Do you use QML?
                                      if yes, could be a driver issue.

                                      Do you have data files?
                                      if yes, it could be damaged data files crashing app on load.

                                      It could be client installed other app using Qt dlls and now your app finds the wrong version of Qt dll.

                                      Buts its nearly impossible to guess on without far more concrete information :)

                                      N 1 Reply Last reply 19 Oct 2018, 12:06
                                      0
                                      • M mrjj
                                        19 Oct 2018, 11:24

                                        @nwoki
                                        Hi
                                        Do you use QML?
                                        if yes, could be a driver issue.

                                        Do you have data files?
                                        if yes, it could be damaged data files crashing app on load.

                                        It could be client installed other app using Qt dlls and now your app finds the wrong version of Qt dll.

                                        Buts its nearly impossible to guess on without far more concrete information :)

                                        N Offline
                                        N Offline
                                        nwoki
                                        wrote on 19 Oct 2018, 12:06 last edited by
                                        #28

                                        @mrjj said in QtCreator crashed and now will not start due to segfault:

                                        @nwoki
                                        Hi
                                        Do you use QML?
                                        if yes, could be a driver issue.

                                        This is reproducable only on the client pc. Any way I can debug this?

                                        Do you have data files?
                                        if yes, it could be damaged data files crashing app on load.

                                        Cleaned and still no dice

                                        It could be client installed other app using Qt dlls and now your app finds the wrong version of Qt dll.

                                        No other Qt applications are installed

                                        Buts its nearly impossible to guess on without far more concrete information :)

                                        Any idea on how I can help gather more info for furthur debugging?

                                        M 1 Reply Last reply 19 Oct 2018, 12:16
                                        0
                                        • N nwoki
                                          19 Oct 2018, 12:06

                                          @mrjj said in QtCreator crashed and now will not start due to segfault:

                                          @nwoki
                                          Hi
                                          Do you use QML?
                                          if yes, could be a driver issue.

                                          This is reproducable only on the client pc. Any way I can debug this?

                                          Do you have data files?
                                          if yes, it could be damaged data files crashing app on load.

                                          Cleaned and still no dice

                                          It could be client installed other app using Qt dlls and now your app finds the wrong version of Qt dll.

                                          No other Qt applications are installed

                                          Buts its nearly impossible to guess on without far more concrete information :)

                                          Any idea on how I can help gather more info for furthur debugging?

                                          M Offline
                                          M Offline
                                          mrjj
                                          Lifetime Qt Champion
                                          wrote on 19 Oct 2018, 12:16 last edited by
                                          #29

                                          Hi

                                          This is reproducible only on the client pc. Any way I can debug this?
                                          Not really. you can ask him to update drivers and also
                                          collect information about opengl version supported.
                                          I take it, the project does use QML?

                                          Any idea on how I can help gather more info for furthur debugging?

                                          Well, i would add some logging to the app.
                                          So you can see if dies before main.
                                          That will give a hint if its related to actual user code or a DLL issue.

                                          N 1 Reply Last reply 19 Oct 2018, 13:18
                                          0

                                          • Login

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