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. I cannot get Qt Creator / Designer to work for the life of me
Forum Updated to NodeBB v4.3 + New Features

I cannot get Qt Creator / Designer to work for the life of me

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
19 Posts 8 Posters 2.1k 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.
  • M Mlibu

    @JonB

    I'm not working on any code. I create a new project and it breaks before I can configure a single rectangle in designer.

    At first I tried an ASUS flipbook with 4Gb RAM and Windows 10 but it didn't work. I thought it was the RAM so I bought a Lenovo M73 Mini. It has a stock Manjaro/KDE/X11 install with only Kodi installed and rendering effects activated. KDE itself seems to be working very smoothly with transparency, wobbly windows, etc.

    JonBJ Offline
    JonBJ Offline
    JonB
    wrote on last edited by JonB
    #7

    @Mlibu That does not address running it (Creator executable) under gdb in case you get a clue from the crash stack trace....

    M 1 Reply Last reply
    0
    • JonBJ JonB

      @Mlibu That does not address running it (Creator executable) under gdb in case you get a clue from the crash stack trace....

      M Offline
      M Offline
      Mlibu
      wrote on last edited by Mlibu
      #8

      @JonB So does that mean that the lack of a GPU is not the problem?

      I ran under gdb and after the threads start up I get "Found an unknown QML value." followed by "Trying to construct an instance of an invalid type, type id: -1".

      Then there is a line "Detaching after vfork from child process 11111". After that line there is a bunch of:

      qtc.imagecontainer.debug: void QmlDesigner::readSharedMemory(qint32, QmlDesigner::ImageContainer&) Not able to create image: 0 0 0.

      Then more of the first error, then more of the second, then Thread 1 'qtcreator' received signal SIGSEGV, Segmentation fault.

      And that's it. Any ideas?

      M JonBJ 2 Replies Last reply
      0
      • M Mlibu

        @JonB So does that mean that the lack of a GPU is not the problem?

        I ran under gdb and after the threads start up I get "Found an unknown QML value." followed by "Trying to construct an instance of an invalid type, type id: -1".

        Then there is a line "Detaching after vfork from child process 11111". After that line there is a bunch of:

        qtc.imagecontainer.debug: void QmlDesigner::readSharedMemory(qint32, QmlDesigner::ImageContainer&) Not able to create image: 0 0 0.

        Then more of the first error, then more of the second, then Thread 1 'qtcreator' received signal SIGSEGV, Segmentation fault.

        And that's it. Any ideas?

        M Offline
        M Offline
        Mlibu
        wrote on last edited by
        #9

        @Mlibu PS. glxdiag says direct rendering and glxgears runs so I guess I supposrt opengl.

        1 Reply Last reply
        0
        • M Mlibu

          @JonB So does that mean that the lack of a GPU is not the problem?

          I ran under gdb and after the threads start up I get "Found an unknown QML value." followed by "Trying to construct an instance of an invalid type, type id: -1".

          Then there is a line "Detaching after vfork from child process 11111". After that line there is a bunch of:

          qtc.imagecontainer.debug: void QmlDesigner::readSharedMemory(qint32, QmlDesigner::ImageContainer&) Not able to create image: 0 0 0.

          Then more of the first error, then more of the second, then Thread 1 'qtcreator' received signal SIGSEGV, Segmentation fault.

          And that's it. Any ideas?

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #10

          @Mlibu said in I cannot get Qt Creator / Designer to work for the life of me:

          then Thread 1 'qtcreator' received signal SIGSEGV, Segmentation fault.

          So you are supposed to (at least try to) view the stack trace. bt is the gdb command. See if there is any clue there.

          M 1 Reply Last reply
          0
          • JonBJ JonB

            @Mlibu said in I cannot get Qt Creator / Designer to work for the life of me:

            then Thread 1 'qtcreator' received signal SIGSEGV, Segmentation fault.

            So you are supposed to (at least try to) view the stack trace. bt is the gdb command. See if there is any clue there.

            M Offline
            M Offline
            Mlibu
            wrote on last edited by Mlibu
            #11

            @JonB
            Yes I did. I thought you meant stack trace and bt was what I did. I closed it by accident without saving the trace and I have been trying to do it again.

            However, I have been having other strange things happen when I install QtCreator. There is an 'impoort <projectname>' in the Screen01.ui.qml with a line error: QML Module contains C++ plugin, currently reading type information. I cannot build with that there and have to remove it before I can build. Also when I first go to the designer page the UI does not get drawn properly and it seems hung somehow. There is only a checkered item in the screen even though I had created the new Qt project. Then later the proper UI seems to come back. But then it only lasts for a couple minutes and dies. And I delete the project directories before I try again. I tried CMake, build, clean project, etc etc.

            I only found this comment on SO which doesn't give very many details on how to resolve it, unfortunately. It just talks about resetting the code model and explicitly importing the qrc path.

            This time Qt Creator just froze in the designer screen instead if crashing. Also I noticed that KDE Plasma 5 requires qtdesigner from qt5-tools. Could this be confusing anything?

            Here is the top of my stack:
            #0 0x00007ffff52daed0 in QV4::Compiler::Codegen::visit(QQmlJS::AST::UiProgram*) () from /home/user/Qt/Tools/QtCreator/bin/../lib/qtcreator/../Qt/lib/libQt6Qml.so.6
            #1 0x000000000ca811a0 in ?? ()
            #2 0x00007fffa3b45538 in ?? ()
            #3 0x00007fffffffbec0 in ?? ()
            #4 0x00007fffa808d6c0 in ?? ()
            #5 0x00007ffff56132a9 in QV4::QQmlTypeWrapper::virtualResolveLookupGetter(QV4::Object const*, QV4::ExecutionEngine*, QV4::Lookup*) ()

            Maybe when I install my next system I'll hold my nose and install Manjaro Gnome and see if that works.

            T andrA aha_1980A 3 Replies Last reply
            0
            • M Mlibu

              @JonB
              Yes I did. I thought you meant stack trace and bt was what I did. I closed it by accident without saving the trace and I have been trying to do it again.

              However, I have been having other strange things happen when I install QtCreator. There is an 'impoort <projectname>' in the Screen01.ui.qml with a line error: QML Module contains C++ plugin, currently reading type information. I cannot build with that there and have to remove it before I can build. Also when I first go to the designer page the UI does not get drawn properly and it seems hung somehow. There is only a checkered item in the screen even though I had created the new Qt project. Then later the proper UI seems to come back. But then it only lasts for a couple minutes and dies. And I delete the project directories before I try again. I tried CMake, build, clean project, etc etc.

              I only found this comment on SO which doesn't give very many details on how to resolve it, unfortunately. It just talks about resetting the code model and explicitly importing the qrc path.

              This time Qt Creator just froze in the designer screen instead if crashing. Also I noticed that KDE Plasma 5 requires qtdesigner from qt5-tools. Could this be confusing anything?

              Here is the top of my stack:
              #0 0x00007ffff52daed0 in QV4::Compiler::Codegen::visit(QQmlJS::AST::UiProgram*) () from /home/user/Qt/Tools/QtCreator/bin/../lib/qtcreator/../Qt/lib/libQt6Qml.so.6
              #1 0x000000000ca811a0 in ?? ()
              #2 0x00007fffa3b45538 in ?? ()
              #3 0x00007fffffffbec0 in ?? ()
              #4 0x00007fffa808d6c0 in ?? ()
              #5 0x00007ffff56132a9 in QV4::QQmlTypeWrapper::virtualResolveLookupGetter(QV4::Object const*, QV4::ExecutionEngine*, QV4::Lookup*) ()

              Maybe when I install my next system I'll hold my nose and install Manjaro Gnome and see if that works.

              T Offline
              T Offline
              Tink
              wrote on last edited by
              #12

              @Mlibu have you tried to disable plugins (help about-plugins)?

              1 Reply Last reply
              0
              • M Mlibu

                @JonB
                Yes I did. I thought you meant stack trace and bt was what I did. I closed it by accident without saving the trace and I have been trying to do it again.

                However, I have been having other strange things happen when I install QtCreator. There is an 'impoort <projectname>' in the Screen01.ui.qml with a line error: QML Module contains C++ plugin, currently reading type information. I cannot build with that there and have to remove it before I can build. Also when I first go to the designer page the UI does not get drawn properly and it seems hung somehow. There is only a checkered item in the screen even though I had created the new Qt project. Then later the proper UI seems to come back. But then it only lasts for a couple minutes and dies. And I delete the project directories before I try again. I tried CMake, build, clean project, etc etc.

                I only found this comment on SO which doesn't give very many details on how to resolve it, unfortunately. It just talks about resetting the code model and explicitly importing the qrc path.

                This time Qt Creator just froze in the designer screen instead if crashing. Also I noticed that KDE Plasma 5 requires qtdesigner from qt5-tools. Could this be confusing anything?

                Here is the top of my stack:
                #0 0x00007ffff52daed0 in QV4::Compiler::Codegen::visit(QQmlJS::AST::UiProgram*) () from /home/user/Qt/Tools/QtCreator/bin/../lib/qtcreator/../Qt/lib/libQt6Qml.so.6
                #1 0x000000000ca811a0 in ?? ()
                #2 0x00007fffa3b45538 in ?? ()
                #3 0x00007fffffffbec0 in ?? ()
                #4 0x00007fffa808d6c0 in ?? ()
                #5 0x00007ffff56132a9 in QV4::QQmlTypeWrapper::virtualResolveLookupGetter(QV4::Object const*, QV4::ExecutionEngine*, QV4::Lookup*) ()

                Maybe when I install my next system I'll hold my nose and install Manjaro Gnome and see if that works.

                andrA Offline
                andrA Offline
                andr
                wrote on last edited by
                #13

                @Mlibu: Not a full answer, anyways: qtdesigner from qt5-tools is the Qt Widgets Designer and does not interfere in any way with the QML that you are using here.

                1 Reply Last reply
                0
                • M Mlibu

                  @JonB
                  Yes I did. I thought you meant stack trace and bt was what I did. I closed it by accident without saving the trace and I have been trying to do it again.

                  However, I have been having other strange things happen when I install QtCreator. There is an 'impoort <projectname>' in the Screen01.ui.qml with a line error: QML Module contains C++ plugin, currently reading type information. I cannot build with that there and have to remove it before I can build. Also when I first go to the designer page the UI does not get drawn properly and it seems hung somehow. There is only a checkered item in the screen even though I had created the new Qt project. Then later the proper UI seems to come back. But then it only lasts for a couple minutes and dies. And I delete the project directories before I try again. I tried CMake, build, clean project, etc etc.

                  I only found this comment on SO which doesn't give very many details on how to resolve it, unfortunately. It just talks about resetting the code model and explicitly importing the qrc path.

                  This time Qt Creator just froze in the designer screen instead if crashing. Also I noticed that KDE Plasma 5 requires qtdesigner from qt5-tools. Could this be confusing anything?

                  Here is the top of my stack:
                  #0 0x00007ffff52daed0 in QV4::Compiler::Codegen::visit(QQmlJS::AST::UiProgram*) () from /home/user/Qt/Tools/QtCreator/bin/../lib/qtcreator/../Qt/lib/libQt6Qml.so.6
                  #1 0x000000000ca811a0 in ?? ()
                  #2 0x00007fffa3b45538 in ?? ()
                  #3 0x00007fffffffbec0 in ?? ()
                  #4 0x00007fffa808d6c0 in ?? ()
                  #5 0x00007ffff56132a9 in QV4::QQmlTypeWrapper::virtualResolveLookupGetter(QV4::Object const*, QV4::ExecutionEngine*, QV4::Lookup*) ()

                  Maybe when I install my next system I'll hold my nose and install Manjaro Gnome and see if that works.

                  aha_1980A Offline
                  aha_1980A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on last edited by
                  #14

                  Hi @Mlibu,

                  IIRC, the QML stuff needs 3D accelleration. Could you try to start Creator without these plugins to see if that makes a difference?

                  /opt/Qt/Tools/QtCreator/bin/qtcreator -noload QmlDesignerBase -noload QmlJSEditor -noload QmlJSTools

                  Regards

                  Qt has to stay free or it will die.

                  M 1 Reply Last reply
                  0
                  • aha_1980A aha_1980

                    Hi @Mlibu,

                    IIRC, the QML stuff needs 3D accelleration. Could you try to start Creator without these plugins to see if that makes a difference?

                    /opt/Qt/Tools/QtCreator/bin/qtcreator -noload QmlDesignerBase -noload QmlJSEditor -noload QmlJSTools

                    Regards

                    M Offline
                    M Offline
                    Mlibu
                    wrote on last edited by
                    #15

                    @aha_1980 The QT Creator requirements say you need at least OpenGL ES 2.0 support. dlxdiag tells me I have OpenGL 3.2.

                    When I try that command I can't use the design page at all.

                    aha_1980A 1 Reply Last reply
                    0
                    • M Mlibu

                      @aha_1980 The QT Creator requirements say you need at least OpenGL ES 2.0 support. dlxdiag tells me I have OpenGL 3.2.

                      When I try that command I can't use the design page at all.

                      aha_1980A Offline
                      aha_1980A Offline
                      aha_1980
                      Lifetime Qt Champion
                      wrote on last edited by
                      #16

                      @Mlibu Yeah, but does it crash?

                      Qt has to stay free or it will die.

                      M 1 Reply Last reply
                      0
                      • aha_1980A aha_1980

                        @Mlibu Yeah, but does it crash?

                        M Offline
                        M Offline
                        Mlibu
                        wrote on last edited by Mlibu
                        #17

                        @aha_1980 No but it didn't crash before unless I used designer. My point is, I did a course, I heard creator/designer/QML/Qt6 was great, so I'm hoping I can use it. I'm also hoping I don't need to buy a gaming PC to do this, just to run linux on it. But I'm seeing that it is going that way.

                        1 Reply Last reply
                        0
                        • M Mlibu referenced this topic on
                        • M Mlibu referenced this topic on
                        • B Offline
                          B Offline
                          Barto
                          wrote on last edited by
                          #18

                          I notice also a crash of the QML Designer plugin on my PC,
                          I use arch linux, QtCreator 15, my graphic card is AMD Radeon 4650 Pcie, it supports openGL 3.0.

                          Crash occurs when trying to add text label on the QML, with a segfault error.

                          1 Reply Last reply
                          0
                          • Y Offline
                            Y Offline
                            yuwu
                            wrote on last edited by
                            #19

                            I also use Arch and the software crashes just as well, just after the recent update. Can building from source solve the problem?

                            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