QtCreator freezes von Ubuntu 26.04 after canceling the build
-
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 ../../../MyProjectProbably 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?
-
Hi and welcome to devnet,
Are you handling the number of jobs yourself ?
If so, how many are you starting in parallel ? -
Hi and welcome to devnet,
Are you handling the number of jobs yourself ?
If so, how many are you starting in parallel ? -
I remember there was a post not long ago with similar symptoms. Can you try a more recent version of Qt Crestor ?
-
I remember there was a post not long ago with similar symptoms. Can you try a more recent version of Qt Crestor ?
-
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.