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 freezes von Ubuntu 26.04 after canceling the build
Qt 6.11 is out! See what's new in the release blog

QtCreator freezes von Ubuntu 26.04 after canceling the build

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
11 Posts 5 Posters 3.4k Views 1 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi and welcome to devnet,

    Are you handling the number of jobs yourself ?
    If so, how many are you starting in parallel ?

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

    B 1 Reply Last reply
    0
    • SGaistS SGaist

      Hi and welcome to devnet,

      Are you handling the number of jobs yourself ?
      If so, how many are you starting in parallel ?

      B Offline
      B Offline
      berliner
      wrote on last edited by
      #3

      @SGaist

      It's set to 4 (-j4), but setting it to 1 doesn't help.

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

        I remember there was a post not long ago with similar symptoms. Can you try a more recent version of Qt Crestor ?

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

        B 1 Reply Last reply
        1
        • SGaistS SGaist

          I remember there was a post not long ago with similar symptoms. Can you try a more recent version of Qt Crestor ?

          B Offline
          B Offline
          berliner
          wrote on last edited by
          #5

          @SGaist

          I installed QtCreator 20.0.0, but unfortunately the problem is the same.

          1 Reply Last reply
          0
          • B Offline
            B Offline
            berliner
            wrote last edited by
            #6

            The same on XUbuntu 24 with QtCreator 13.0.0 and Qt 6.4.2

            1 Reply Last reply
            0
            • B Offline
              B Offline
              berliner
              wrote last edited by berliner
              #7

              Gemini told me to go to the VM settings and set the VDI to "SSD drive" in the SATA Controller. This has helped.

              The explanation is:

              "Enabling the "Solid-state Drive (SSD)" option tells the Xubuntu kernel that the virtual drive has no mechanical seek times. As a result, Linux drastically optimizes its write queues (I/O scheduler) and immediately aborts aborted compiler write operations instead of letting them starve in a deadlock loop (D-state)."

              It still sounds like Ubuntu is somehow messing up if that is really a solution.

              I also noted the problem with an old XUbuntu 22 guest, which didn't have that problem before when running from older versions of Virtual Box. So, perhaps it's a problem of current Virtual Box 7.12. together with XUbuntu.

              1 Reply Last reply
              1
              • B berliner

                I'm having an annoying problem here. I'm mostly developing in Windows using Visual Studio, but I also provide Linux builds of my application. I was using an XUbuntu 22 up to now.

                I'm doing that in a Virtual Box VM.

                Now I'm trying to migrate to Ubuntu 26.04. It works, I can build and run the application, but when I cancel a build the build stops and then QtCreator freezes.

                And it freezes to a degree where I cannot close it, cannot kill it (neither -9 nor SIGKILL). I cannot even reboot the VM. I have to kill all Virtual Box processes in the Windows task manager.

                I found no solution for that.

                I tried both LUbuntu and XUbuntu. After a while, the OS says the window is busy and not responding and offers to close it. But it won't resume work after restarting. It hangs at "Loading Session".

                Probably because the build processes are all still there:

                2970  0.0  0.0   9904  3492 ?        D    22:39   0:00 g++ -c -pipe -g -Wall -Wextra -Wno-unused-parameter -Wno-unused-variable -D_REENTRANT -DQT_Q
                2971  3.0 15.3 721628 615420 ?       D    22:39   0:03 /usr/libexec/gcc/x86_64-linux-gnu/15/cc1plus -quiet -I ../../../MyProject -I . -I ../../../My
                2972  0.0  0.1  11876  4440 ?        S    22:39   0:00 /bin/x86_64-linux-gnu-as -I ../../../MyMyProject -I . -I ../../../MyProject -I ../../../MyProject
                2973  0.0  0.0   9904  3488 ?        D    22:39   0:00 g++ -c -pipe -g -Wall -Wextra -Wno-unused-parameter -Wno-unused-variable -D_REENTRANT -DQT_Q
                2974  2.6 15.4 725892 617020 ?       D    22:39   0:03 /usr/libexec/gcc/x86_64-linux-gnu/15/cc1plus -quiet -I ../../../MyProject -I . -I ../../../My
                2975  0.0  0.1  11876  4468 ?        S    22:39   0:00 /bin/x86_64-linux-gnu-as -I ../../../MyProject -I . -I ../../../MyProject -I ../../../MyProject
                2976  0.0  0.0   9904  3488 ?        D    22:39   0:00 g++ -c -pipe -g -Wall -Wextra -Wno-unused-parameter -Wno-unused-variable -D_REENTRANT -DQT_Q
                2977  0.1  0.5  68732 22992 ?        D    22:39   0:00 /usr/libexec/gcc/x86_64-linux-gnu/15/cc1plus -quiet -I ../../../MyProject -I . -I ../../../Myi
                2978  0.0  0.1  11876  4364 ?        S    22:39   0:00 /bin/x86_64-linux-gnu-as -I ../../../MyProject -I . -I ../../../MyProject -I ../../../MyProject
                2979  0.0  0.0   9904  3488 ?        D    22:39   0:00 g++ -c -pipe -g -Wall -Wextra -Wno-unused-parameter -Wno-unused-variable -D_REENTRANT -DQT_Q
                2980  0.0  0.5  68404 21552 ?        D    22:39   0:00 /usr/libexec/gcc/x86_64-linux-gnu/15/cc1plus -quiet -I ../../../MyProject -I . -I ../../../My
                2981  0.0  0.1  11876  4464 ?        S    22:39   0:00 /bin/x86_64-linux-gnu-as -I ../../../MyProject -I . -I ../../../MyProject -I ../../../MyProject
                

                Probably QtCreator couldn't kill them either.

                I'm using QtCretor 18.0.2 Based on Qt 6.10.2 (GCC 15.2.0, x86_64)

                What has to be changed so that QtCreator properly kills all those processes upon cancelling a build?

                J Offline
                J Offline
                jkobus
                wrote last edited by
                #8

                @berliner : It was fixed in https://codereview.qt-project.org/c/qt-creator/qt-creator/+/708134 commit. However, it went to Creator 19.0 so please try this version to verify whether it fixes your issue.

                1 Reply Last reply
                1
                • B Offline
                  B Offline
                  berliner
                  wrote last edited by berliner
                  #9

                  I tried QtCreator 19.0.2, Qt 6.11.1, CMake 3.30.5 on XUbuntu 24. There the "Enabling the "Solid-state Drive (SSD)" didn't fix it either. Compiler is set to "GCC (C++, x86 64 bit at /usr/bin/g++)".

                  ps aux still shows me all those hanging g++ processes.

                  Still have to try on XUbuntu 26 again where "Enabling the "Solid-state Drive (SSD)" had improved the situation. But did obviously not on XUbuntu 24.

                  Could it be a problem that I'm compiling to folder shared with the windows host?

                  jsulmJ 1 Reply Last reply
                  0
                  • B berliner

                    I tried QtCreator 19.0.2, Qt 6.11.1, CMake 3.30.5 on XUbuntu 24. There the "Enabling the "Solid-state Drive (SSD)" didn't fix it either. Compiler is set to "GCC (C++, x86 64 bit at /usr/bin/g++)".

                    ps aux still shows me all those hanging g++ processes.

                    Still have to try on XUbuntu 26 again where "Enabling the "Solid-state Drive (SSD)" had improved the situation. But did obviously not on XUbuntu 24.

                    Could it be a problem that I'm compiling to folder shared with the windows host?

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote last edited by
                    #10

                    @berliner said in QtCreator freezes von Ubuntu 26.04 after canceling the build:

                    Could it be a problem that I'm compiling to folder shared with the windows host?

                    Is it a network drive?
                    Did you try on a local partition with a Linux file system?

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

                    1 Reply Last reply
                    0
                    • Nils SjobergN Offline
                      Nils SjobergN Offline
                      Nils Sjoberg
                      wrote last edited by
                      #11

                      Upgrade to QtCreator 19+ with the known fix, or move the build folder from a shared folder (vboxsf) to a local disk (ext4) inside the virtual machine, perhaps because the problem is related to I/O against a shared folder with Windows, and not to the QtCreator version itself.

                      "What's up, Doc?"

                      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