Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Failed to start VTE child process "X" launched by x-terminal-emulator process "Y"
Forum Updated to NodeBB v4.3 + New Features

Failed to start VTE child process "X" launched by x-terminal-emulator process "Y"

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 1.6k Views
  • 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.
  • ivanleonczI Offline
    ivanleonczI Offline
    ivanleoncz
    wrote on last edited by
    #1

    Hi there.

    I have Qt Creator 10.0.1 on a Ubuntu 20.04.6 (gcc 9.4.0), and any code that I try to compile and execute, it is not being displayed on a terminal, even though I configured the project to do so:

    Screenshot from 2023-06-04 21-04-04.png image url)

    This is the kind of message being recorded at /var/log/syslog/:

    Jun  4 20:58:44 my-notebook systemd[2006]: vte-spawn-3c853fdf-e79c-48ea-b4b5-e6081e9402b7.scope: Failed to add PIDs to scope's control group: No such process
    Jun  4 20:58:44 my-notebook systemd[2006]: vte-spawn-3c853fdf-e79c-48ea-b4b5-e6081e9402b7.scope: Failed with result 'resources'.
    Jun  4 20:58:44 my-notebook systemd[2006]: Failed to start VTE child process 2496874 launched by x-terminal-emulator process 1469094.
    

    And QT creator gets freeze for almost a minute and then responds to normal interactions.

    Has anyone reported a similar error before? I don't find anything related here on the forum.

    Any help is much appreciated.

    Regards,

    Regards,
    Ivan Leon
    https://doadm-notes.blogspot.com/

    C JonBJ 2 Replies Last reply
    0
    • ivanleonczI ivanleoncz

      Hi there.

      I have Qt Creator 10.0.1 on a Ubuntu 20.04.6 (gcc 9.4.0), and any code that I try to compile and execute, it is not being displayed on a terminal, even though I configured the project to do so:

      Screenshot from 2023-06-04 21-04-04.png image url)

      This is the kind of message being recorded at /var/log/syslog/:

      Jun  4 20:58:44 my-notebook systemd[2006]: vte-spawn-3c853fdf-e79c-48ea-b4b5-e6081e9402b7.scope: Failed to add PIDs to scope's control group: No such process
      Jun  4 20:58:44 my-notebook systemd[2006]: vte-spawn-3c853fdf-e79c-48ea-b4b5-e6081e9402b7.scope: Failed with result 'resources'.
      Jun  4 20:58:44 my-notebook systemd[2006]: Failed to start VTE child process 2496874 launched by x-terminal-emulator process 1469094.
      

      And QT creator gets freeze for almost a minute and then responds to normal interactions.

      Has anyone reported a similar error before? I don't find anything related here on the forum.

      Any help is much appreciated.

      Regards,

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

      @ivanleoncz How are you providing credentials to allow Creator to launch the process as root? Is it timing out waiting for you?

      1 Reply Last reply
      0
      • ivanleonczI ivanleoncz

        Hi there.

        I have Qt Creator 10.0.1 on a Ubuntu 20.04.6 (gcc 9.4.0), and any code that I try to compile and execute, it is not being displayed on a terminal, even though I configured the project to do so:

        Screenshot from 2023-06-04 21-04-04.png image url)

        This is the kind of message being recorded at /var/log/syslog/:

        Jun  4 20:58:44 my-notebook systemd[2006]: vte-spawn-3c853fdf-e79c-48ea-b4b5-e6081e9402b7.scope: Failed to add PIDs to scope's control group: No such process
        Jun  4 20:58:44 my-notebook systemd[2006]: vte-spawn-3c853fdf-e79c-48ea-b4b5-e6081e9402b7.scope: Failed with result 'resources'.
        Jun  4 20:58:44 my-notebook systemd[2006]: Failed to start VTE child process 2496874 launched by x-terminal-emulator process 1469094.
        

        And QT creator gets freeze for almost a minute and then responds to normal interactions.

        Has anyone reported a similar error before? I don't find anything related here on the forum.

        Any help is much appreciated.

        Regards,

        JonBJ Online
        JonBJ Online
        JonB
        wrote on last edited by
        #3

        @ivanleoncz As @ChrisW67 asks. Have you tried unchecking Run as root user?

        1 Reply Last reply
        0
        • ivanleonczI Offline
          ivanleonczI Offline
          ivanleoncz
          wrote on last edited by ivanleoncz
          #4

          Thank you for your comments.

          In fact, I tried to compile and run the program, with and without root permissions checked, and it worked.

          And I just detected the issue: if there's a terminal window already open on the OS, then Creator cannot open another window to run the program.

          If I close all terminal windows and run again the program, Creator creates a terminal window to display the program interface.

          Since the errors reported on syslog are about libvte-2.91.0, I assume that there might be some conflict between Creator and this library, in order to create terminal windows for running programs:

          $ sudo dpkg -l | grep libvte
          ii  libvte-2.91-0:amd64                                         0.60.3-0ubuntu1~20.04                                          amd64        Terminal emulator widget for GTK+ 3.0 - runtime files
          ii  libvte-2.91-common                                          0.60.3-0ubuntu1~20.04                                          amd64        Terminal emulator widget for GTK+ 3.0 - common files
          

          I have the native Gnome Terminal on my Ubuntu, but my default terminal is Terminator (v1.91). I wonder if there's a way of configuring QtCreator to use a different terminal instead of the default one: that might be the workaround for this case.

          I'll do my own investigation here, but if you guys have any idea on how to do that, I'd really appreciate it.

          Regards,
          Ivan Leon
          https://doadm-notes.blogspot.com/

          ivanleonczI 1 Reply Last reply
          0
          • ivanleonczI ivanleoncz

            Thank you for your comments.

            In fact, I tried to compile and run the program, with and without root permissions checked, and it worked.

            And I just detected the issue: if there's a terminal window already open on the OS, then Creator cannot open another window to run the program.

            If I close all terminal windows and run again the program, Creator creates a terminal window to display the program interface.

            Since the errors reported on syslog are about libvte-2.91.0, I assume that there might be some conflict between Creator and this library, in order to create terminal windows for running programs:

            $ sudo dpkg -l | grep libvte
            ii  libvte-2.91-0:amd64                                         0.60.3-0ubuntu1~20.04                                          amd64        Terminal emulator widget for GTK+ 3.0 - runtime files
            ii  libvte-2.91-common                                          0.60.3-0ubuntu1~20.04                                          amd64        Terminal emulator widget for GTK+ 3.0 - common files
            

            I have the native Gnome Terminal on my Ubuntu, but my default terminal is Terminator (v1.91). I wonder if there's a way of configuring QtCreator to use a different terminal instead of the default one: that might be the workaround for this case.

            I'll do my own investigation here, but if you guys have any idea on how to do that, I'd really appreciate it.

            ivanleonczI Offline
            ivanleonczI Offline
            ivanleoncz
            wrote on last edited by ivanleoncz
            #5

            Awesome. I found it (pretty easy):

            • Edit > Preferences > Environment > then setting the path to Gnome Terminal

            Screenshot from 2023-06-05 06-43-51.png


            Easy to find the path of the binary as well (if anyone wonders how to do it):

            $ whereis gnome-terminal
            gnome-terminal: /usr/bin/gnome-terminal.wrapper /usr/bin/gnome-terminal /usr/bin/gnome-terminal.real /usr/share/man/man1/gnome-terminal.1.gz
            

            And Gnome Terminal displays the program in parallel with another terminal software:

            Screenshot from 2023-06-05 06-46-54.png


            I think everything is fine here. Thank you for your willingness to help, people.

            Regards,
            Ivan Leon
            https://doadm-notes.blogspot.com/

            1 Reply Last reply
            0
            • ivanleonczI ivanleoncz has marked this topic as solved on

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved