Failed to start VTE child process "X" launched by x-terminal-emulator process "Y"
-
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:
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,
-
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:
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,
@ivanleoncz How are you providing credentials to allow Creator to launch the process as root? Is it timing out waiting for you?
-
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:
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,
-
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 aboutlibvte-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.
-
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 aboutlibvte-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.
Awesome. I found it (pretty easy):
- Edit > Preferences > Environment > then setting the path to Gnome Terminal
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:
I think everything is fine here. Thank you for your willingness to help, people.
-
I ivanleoncz has marked this topic as solved on