-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Qt6 QProcess
fails to create process for Linux kernel >= 5
#20354
Comments
QProcess
seems not work well for shotcut
appQProcess
seems not work well for shotcut
app
Does |
Don't have experience with
|
QProcess
seems not work well for shotcut
appQProcess
does not work
QProcess
does not workQProcess
fails to create process
A simple Qt6 example (generated by ChatGPT) fails to execute command with g++ -o qprocess qprocess.cpp -lQt6Core -I"$PREFIX"/include/qt6 -I"$PREFIX"/include/qt6/QtCore qprocess.cpp#include <QCoreApplication>
#include <QProcess>
#include <QDebug>
int main(int argc, char *argv[])
{
QCoreApplication app(argc, argv);
QProcess process;
process.start("ls", QStringList() << "-l");
if (process.waitForStarted() && process.waitForFinished()) {
QByteArray output = process.readAllStandardOutput();
qDebug() << output;
} else {
qDebug() << "Failed to start or execute command.";
}
return app.exec();
} Qt5This same example compiled with qt5 works
|
QProcess
fails to create processQProcess
fails to create process
That example program worked in my PC (x86_64) and in my phone (aarch64) without any error.
|
When it is without As for
Do you see similar thing for qt6 build? If not, it might be vendor-specific. |
Yes. |
It seems to be FYI, this problem seems to occur in runtime depending on the kernel version:
|
QProcess
fails to create processQProcess
fails to create process for Linux kernel > 4
QProcess
fails to create process for Linux kernel > 4QProcess
fails to create process for Linux kernel >= 5
Most things in this PR
shocut
app works well, except that the export job does not work.,, stuck at finite time "--:--:--". You may try the builds in the PR #20353 or this action: https://github.com/knyipab/termux-packages/actions/runs/9290613878After use the program to export file, the only useful log from terminal is below.
Indeed, if I run that command
/data/data/com.termux/files/usr/bin/melt-7 -verbose -progress2 -abort xml:%2Fdata%2Fdata%2Fcom.termux%2Ffiles%2Fusr%2Ftmp%2Fshotcut-jnXVRh.mlt
, it works well and output the intended video.That line of log corresponds to this line of code in
MeltJob::start()
. That method should ultimately callQProcess::start()
at this line. So I suspect that QProcess does not function. I have no proof and nothing more in the log is helpful.The text was updated successfully, but these errors were encountered: