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 3.4.1 on Windows: issues with CMake?
Forum Updated to NodeBB v4.3 + New Features

Qt Creator 3.4.1 on Windows: issues with CMake?

Scheduled Pinned Locked Moved Qt Creator and other tools
8 Posts 3 Posters 2.4k 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.
  • A Offline
    A Offline
    agarny
    wrote on last edited by
    #1

    Hi,

    I have just upgraded my copy of Qt Creator on Windows from version 3.4.0 to version 3.4.1, and my Qt+CMake project which used to work perfectly fine now keeps crashing Qt Creator.

    All I have to do is to open my project and wait, then without a few seconds Qt Creator will crash.

    I thought it might be an issue with Qt+CMake, so I created a very simple Qt+CMake project and loaded it in Qt Creator. However, everything works fine and Qt Creator doesn't crash (as should be the case indeed).

    So, there is something in my Qt+CMake project that makes Qt Creator crash, but I really can't tell what it is since all I am getting from Qt Creator is a message that reads:

    qtcreator.exe has stopped working.
    
    A Problem caused the program to stop working correctly.
    Windows will close the program and notify you if a solution is available.
    

    Otherwise, and FWIW, something that I noticed is that it now takes longer to open my Qt+CMake project in Qt Creator.

    Anyway, would anyone know how to tell what could be wrong with Qt Creator here? Right now, I am stuck...

    Cheers, Alan.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      agarny
      wrote on last edited by
      #2

      Ok, I thought I would switch the Mac version, but... same problem except that this time I am getting more information about the crash (thanks to OS X). Among the different threads, one is particularly interesting:

      Thread 14 Crashed:: Thread (pooled)
      0   libCPlusPlus.1.0.0.dylib      	0x0000000113801c69 CPlusPlus::AST::AST() + 9
      1   libCPlusPlus.1.0.0.dylib      	0x0000000113813af5 CPlusPlus::BinaryExpressionAST::clone(CPlusPlus::MemoryPool*) const + 37
      ...
      511 libCPlusPlus.1.0.0.dylib      	0x0000000113813b2c CPlusPlus::BinaryExpressionAST::clone(CPlusPlus::MemoryPool*) const + 92
      

      So, it looks like there might be something wrong with the C++ plugin?

      1 Reply Last reply
      0
      • sneubertS Offline
        sneubertS Offline
        sneubert
        wrote on last edited by
        #3

        Hi agarny,

        make a copy of your project and delete all generated files so you have only your code and the CMakeLists.txt. Open your CMakeList.txt in creator and configure your project.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          agarny
          wrote on last edited by
          #4

          Hi @sneubert ,

          I have tried that, as well as reinstall Qt and Qt Creator from scratch (i.e. after having uninstalled both of them), but to no avail.

          However, I believe I might have found the reason of the problem. Basically, one of my sub CMakeLists.txt files refers to more than a thousand .cpp file (it's an external library that I can build as part of my project).

          Indeed, I commented out all the references to the .cpp files in that sub CMakeLists.txt file, and everything worked as expected, i.e. Qt Creator didn't crash. From there, I uncommented some .cpp files and tried again until the point where there were apparently too many .cpp files for Qt Creator to cope and Qt Creator to crash (and get the message I mentioned above on OS X).

          I am going to investigate this further today, but to me it's obvious that the problem is with Qt Creator, not least because it all used to work fine with an older version of Qt Creator (can't tell which one though since I don't always build that external library).

          1 Reply Last reply
          0
          • sneubertS Offline
            sneubertS Offline
            sneubert
            wrote on last edited by
            #5

            This seems to be a bug, report it.

            A 1 Reply Last reply
            0
            • sneubertS sneubert

              This seems to be a bug, report it.

              A Offline
              A Offline
              agarny
              wrote on last edited by
              #6

              That's certainly my intention. I just want/need to come up with a 'simple' use case that reproduces the issue I have come across.

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Hi,

                At how many files does the crash trigger ?

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

                A 1 Reply Last reply
                0
                • SGaistS SGaist

                  Hi,

                  At how many files does the crash trigger ?

                  A Offline
                  A Offline
                  agarny
                  wrote on last edited by
                  #8

                  Sorry, I didn't have time to look into it further today. I will try tomorrow. What is certain is that it's very easy to reproduce... fortunately/unfortunately...

                  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