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 Ubuntu v12, Qt6, x86-64, gcc
Forum Updated to NodeBB v4.3 + New Features

Qt Creator Ubuntu v12, Qt6, x86-64, gcc

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
8 Posts 4 Posters 720 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.
  • J Offline
    J Offline
    JacobNovitsky
    wrote on last edited by aha_1980
    #1

    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!

    sierdzioS C 2 Replies Last reply
    0
    • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on
    • J JacobNovitsky

      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!

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @JacobNovitsky It's probably not that, but you can go to Projects->Run->Run in terminal and make sure that checkbox is checked.

      (Z(:^

      J 1 Reply Last reply
      0
      • sierdzioS sierdzio

        @JacobNovitsky It's probably not that, but you can go to Projects->Run->Run in terminal and make sure that checkbox is checked.

        J Offline
        J Offline
        JacobNovitsky
        wrote on last edited by
        #3

        @sierdzio its still happening even if Run in terminal is checked
        now it's happening more often

        1 Reply Last reply
        0
        • J JacobNovitsky referenced this topic on
        • J JacobNovitsky

          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!

          C Offline
          C Offline
          ChrisW67
          wrote on last edited by
          #4

          @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.

          J 1 Reply Last reply
          1
          • C ChrisW67

            @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.

            J Offline
            J Offline
            JacobNovitsky
            wrote on last edited by
            #5

            @ChrisW67 I build my app and run with shorcut Ctrl+R, by default it opens terminal as required
            but sometimes it would not, so I need to reopen this specific project in Qt Creator or Restart operation system

            1 Reply Last reply
            0
            • C Offline
              C Offline
              ChrisW67
              wrote on last edited by
              #6

              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?
              ed3c4b73-65db-4a0f-8d8d-2648a5a5d3c0-image.png
              Does that command reliably launch a terminal?

              You are effectively asking us to guess the answers to some of these questions (and more).

              JonBJ 1 Reply Last reply
              0
              • C ChrisW67

                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?
                ed3c4b73-65db-4a0f-8d8d-2648a5a5d3c0-image.png
                Does that command reliably launch a terminal?

                You are effectively asking us to guess the answers to some of these questions (and more).

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

                @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 (maybe ps -al or ps -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?

                J 1 Reply Last reply
                0
                • JonBJ JonB

                  @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 (maybe ps -al or ps -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?

                  J Offline
                  J Offline
                  JacobNovitsky
                  wrote on last edited by
                  #8

                  @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

                  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