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 Updated to NodeBB v4.3 + New Features

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 9.0k Views 3 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.
  • 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
            • M mrjj
              19 Oct 2018, 12:16

              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 Offline
              N Offline
              nwoki
              wrote on 19 Oct 2018, 13:18 last edited by
              #30

              @mrjj doesn't even start, so adding any logging is futile. Double click on app -> immediate crash. I can see the crash errors in the windows EventViewer

              M 1 Reply Last reply 19 Oct 2018, 14:18
              0
              • N nwoki
                19 Oct 2018, 13:18

                @mrjj doesn't even start, so adding any logging is futile. Double click on app -> immediate crash. I can see the crash errors in the windows EventViewer

                M Offline
                M Offline
                mrjj
                Lifetime Qt Champion
                wrote on 19 Oct 2018, 14:18 last edited by
                #31

                @nwoki
                Hi
                and there is no code in main.cpp that could crash it ?
                that is 100% for sure ?

                Then it really sounds like DLL issue.

                Do you know what happens to client pc between app working and crashing ?
                Windows update or anything like that ?

                N 1 Reply Last reply 19 Oct 2018, 15:03
                0
                • M mrjj
                  19 Oct 2018, 14:18

                  @nwoki
                  Hi
                  and there is no code in main.cpp that could crash it ?
                  that is 100% for sure ?

                  Then it really sounds like DLL issue.

                  Do you know what happens to client pc between app working and crashing ?
                  Windows update or anything like that ?

                  N Offline
                  N Offline
                  nwoki
                  wrote on 19 Oct 2018, 15:03 last edited by nwoki
                  #32

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

                  @nwoki
                  Hi
                  and there is no code in main.cpp that could crash it ?
                  that is 100% for sure ?

                  This is the main.cpp

                  int main(int argc, char *argv[])
                  {
                      QLocale::setDefault(QLocale::c());
                  
                      // Test fix
                  #ifdef Q_OS_WIN
                  //    QApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);
                  //    QApplication::setAttribute(Qt::AA_UseDesktopOpenGL);
                  //    QApplication::setAttribute(Qt::AA_UseOpenGLES);
                  #endif
                      // ----------
                  
                      QApplication a(argc, argv);
                  
                      QApplication::setOrganizationName("Organization");
                      QApplication::setOrganizationDomain("organization.com/");
                      QApplication::setApplicationName("MyAppName");
                  
                      // Setup QML
                      qmlRegisterType<CommunicationCenter>("com.organization.myappname", 1, 0, "CommunicationCenter");
                  
                      PasswordRequestDialog pwdReqDialog;
                      MainWindow w(&a);
                  
                      // is a password set?
                      if (PasswordManager::isPasswordSet()) {
                          pwdReqDialog.show();
                  
                          QObject::connect(&pwdReqDialog, &PasswordRequestDialog::passwordAccepted, [&w] () {
                              w.show();
                          });
                      } else {
                          w.show();
                      }
                  
                      // don't need to do anything on the "rejected" signal. We just exit the application
                  
                      return a.exec();
                  

                  Then it really sounds like DLL issue.

                  Do you know what happens to client pc between app working and crashing ?
                  Windows update or anything like that ?

                  Don't know. The client said "I didn't do anything. It just stopped working..". What dlls are problematic? I find it strange that the app is working one day and just stops the next.

                  M 1 Reply Last reply 19 Oct 2018, 15:34
                  0
                  • N nwoki
                    19 Oct 2018, 15:03

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

                    @nwoki
                    Hi
                    and there is no code in main.cpp that could crash it ?
                    that is 100% for sure ?

                    This is the main.cpp

                    int main(int argc, char *argv[])
                    {
                        QLocale::setDefault(QLocale::c());
                    
                        // Test fix
                    #ifdef Q_OS_WIN
                    //    QApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);
                    //    QApplication::setAttribute(Qt::AA_UseDesktopOpenGL);
                    //    QApplication::setAttribute(Qt::AA_UseOpenGLES);
                    #endif
                        // ----------
                    
                        QApplication a(argc, argv);
                    
                        QApplication::setOrganizationName("Organization");
                        QApplication::setOrganizationDomain("organization.com/");
                        QApplication::setApplicationName("MyAppName");
                    
                        // Setup QML
                        qmlRegisterType<CommunicationCenter>("com.organization.myappname", 1, 0, "CommunicationCenter");
                    
                        PasswordRequestDialog pwdReqDialog;
                        MainWindow w(&a);
                    
                        // is a password set?
                        if (PasswordManager::isPasswordSet()) {
                            pwdReqDialog.show();
                    
                            QObject::connect(&pwdReqDialog, &PasswordRequestDialog::passwordAccepted, [&w] () {
                                w.show();
                            });
                        } else {
                            w.show();
                        }
                    
                        // don't need to do anything on the "rejected" signal. We just exit the application
                    
                        return a.exec();
                    

                    Then it really sounds like DLL issue.

                    Do you know what happens to client pc between app working and crashing ?
                    Windows update or anything like that ?

                    Don't know. The client said "I didn't do anything. It just stopped working..". What dlls are problematic? I find it strange that the app is working one day and just stops the next.

                    M Offline
                    M Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on 19 Oct 2018, 15:34 last edited by
                    #33

                    @nwoki
                    well, i would first check if his openGL is (still) working.
                    Normally crash like this can happen if any other Qt dll are present in the system path
                    and it loads that instead of the one
                    in app folder.
                    It can also be unexpected version of mingw/ visual studio runtime or
                    any DLL that has unexpected version.

                    If possible, i would send him a test exe that is just an empty QT GUI app.
                    If that doesn't crashes, it means its not one of the Qt dlls.

                    And yes, i agree taht normally apps just dont stop, so something has happens to his windows.

                    N 1 Reply Last reply 22 Oct 2018, 14:42
                    0
                    • M mrjj
                      19 Oct 2018, 15:34

                      @nwoki
                      well, i would first check if his openGL is (still) working.
                      Normally crash like this can happen if any other Qt dll are present in the system path
                      and it loads that instead of the one
                      in app folder.
                      It can also be unexpected version of mingw/ visual studio runtime or
                      any DLL that has unexpected version.

                      If possible, i would send him a test exe that is just an empty QT GUI app.
                      If that doesn't crashes, it means its not one of the Qt dlls.

                      And yes, i agree taht normally apps just dont stop, so something has happens to his windows.

                      N Offline
                      N Offline
                      nwoki
                      wrote on 22 Oct 2018, 14:42 last edited by
                      #34

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

                      @nwoki
                      well, i would first check if his openGL is (still) working.
                      Normally crash like this can happen if any other Qt dll are present in the system path
                      and it loads that instead of the one
                      in app folder.
                      It can also be unexpected version of mingw/ visual studio runtime or
                      any DLL that has unexpected version.

                      If possible, i would send him a test exe that is just an empty QT GUI app.
                      If that doesn't crashes, it means its not one of the Qt dlls.

                      And yes, i agree taht normally apps just dont stop, so something has happens to his windows.

                      Sorry about the delay, had some problems with the visual studio compiler and libs. I created a test app (simple empty gui as suggested) and launched it from the same folder of the application that won't run. It works. So now what does this mean?

                      M 1 Reply Last reply 22 Oct 2018, 19:55
                      0
                      • N nwoki
                        22 Oct 2018, 14:42

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

                        @nwoki
                        well, i would first check if his openGL is (still) working.
                        Normally crash like this can happen if any other Qt dll are present in the system path
                        and it loads that instead of the one
                        in app folder.
                        It can also be unexpected version of mingw/ visual studio runtime or
                        any DLL that has unexpected version.

                        If possible, i would send him a test exe that is just an empty QT GUI app.
                        If that doesn't crashes, it means its not one of the Qt dlls.

                        And yes, i agree taht normally apps just dont stop, so something has happens to his windows.

                        Sorry about the delay, had some problems with the visual studio compiler and libs. I created a test app (simple empty gui as suggested) and launched it from the same folder of the application that won't run. It works. So now what does this mean?

                        M Offline
                        M Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on 22 Oct 2018, 19:55 last edited by
                        #35

                        @nwoki
                        Hi
                        It means even it reports thats its QtWidgets that crashes, its likely not that DLL
                        if a plain empty GUI project works. ( for exact same folder , same pc)
                        I would next add some openGL to the test project see if it still runs.
                        As it seems might be direclt related to Qt ( like wrong Qt dll loaded)
                        so it could be the openGL for clients gfx card.

                        1 Reply Last reply
                        0

                        • Login

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