Qt Creator Ubuntu v12, Qt6, x86-64, gcc
-
Sometimes, after building any configuration (debug/release), it compiles and shows successful output, but gnome-terminal is not called.
If you restart Qt Creator or OS it be fixed
How to debug this?
The thing is pretty annoying and I do suffer
Merry Christmas! -
-
@JacobNovitsky It's probably not that, but you can go to Projects->Run->Run in terminal and make sure that checkbox is checked.
-
-
@JacobNovitsky said in Qt Creator Ubuntu v12, Qt6, x86-64, gcc:
Sometimes, after building any configuration (debug/release), it compiles and shows successful output, but gnome-terminal is not called.
Compiling/building != running the application.
Unless you explicitly run the application with the run-in-terminal option enabled then, of course, the terminal will not be launched. Further, if your code is badly broken it may start, run, and abnormally terminate within a split second, taking any terminal involved with it.If you restart Qt Creator or OS it be fixed
How to debug this?I cannot see anything that needs fixing in Qt Creator.
If you want us to see what problem you are experiencing then it is beholden on you to explain exactly the steps required to reproduce the problem.
-
If Qt Creator had such a glaring problem I am sure we'd have seen it before.
What have you tried to diagnose the fault with your program?
Have you run your program in the debugger?
Does your program reliably launch when you are not using "Run in terminal"?
Does your program reliably launch outside Qt Creator? If not, what is output in the terminal window?
When it does not run what is output in the "Compile Output" and "Application Output" windows of Qt Creator?
How does that compare to the same output when it does run?
Have you completely terminated any previous successfully started version of your program?What is Terminal set to in the Edit>Preferences>Environment, System tab?
Does that command reliably launch a terminal?You are effectively asking us to guess the answers to some of these questions (and more).
-
@ChrisW67 said in Qt Creator Ubuntu v12, Qt6, x86-64, gcc:
Have you completely terminated any previous successfully started version of your program?
That is the only thing I can think of, somehow happening to OP occasionally.
@JacobNovitsky
When you get into the state where you say "but gnome-terminal is not called." can you pause at that point and two things:-
Do whatever necessary
ps
(maybeps -al
orps -el
?) to look at all processes running. Do you see any sign of whatever terminal you have set Creator to run (gnome-terminal? x-terminalemulator**?) still running, in any kind of state? -
What happens if you try to run (or build & run) again from where you are now? Does a second run now work, or do you have to quite and restart Creator before it works again correctly?
-
-
@JonB When it gets bugged again I'd get more information
Now I know, that if terminal started successfully
I'm getting this line
Feb 4 10:10:42 j-BOHB-WAX9 systemd[969]: Started VTE child process 2902 launched by gnome-terminal-server process 2526.
Feb 4 10:11:02 j-BOHB-WAX9 systemd[969]: Started VTE child process 2917 launched by gnome-terminal-server process 2526.
if not there is no terminal and no line related