Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8116699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:54:40+00:00 2026-06-06T03:54:40+00:00

I’m using QProcess to run the s3 program from libs3 . QString S3::runS3(const QStringList

  • 0

I’m using QProcess to run the s3 program from libs3.

QString S3::runS3(const QStringList &args, const QByteArray &data)
{
    QProcess s3;

    QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
    env.insert("S3_ACCESS_KEY_ID", "xxx");
    env.insert("S3_SECRET_ACCESS_KEY", "xxx");
    s3.setProcessEnvironment(env);

    s3.start("s3", args);
    if (!s3.waitForStarted())
    {
        qWarning() << "Could not start the s3 process!";
        return QString();
    }

    if (data.size() > 0)
    {
        s3.write(data);
        s3.closeWriteChannel();
    }

    if (!s3.waitForFinished())
    {
        qWarning() << "The s3 process did not complete successfully";
        if (s3.error() == QProcess::Timedout)
        {
            qWarning() << "The s3 process took too long to execute";
        }

        qWarning() << QString(s3.readAllStandardOutput());
        qWarning() << QString(s3.readAllStandardError());
        qWarning() << s3.exitCode();
        qWarning() << s3.exitStatus();
        qWarning() << s3.pid();

        return QString();
    }

    return QString(s3.readAll());
}

However, every time I run this code, the waitForFinished method waits for the full 30 seconds, and I get this for output:

The s3 process did not complete successfully 
The s3 process took too long to execute 
"1474272 bytes remaining (1% complete) ...
1457888 bytes remaining (2% complete) ...
1441504 bytes remaining (3% complete) ...
1425120 bytes remaining (4% complete) ...
1408736 bytes remaining (5% complete) ...
1392352 bytes remaining (6% complete) ...
1375968 bytes remaining (7% complete) ...
1359584 bytes remaining (8% complete) ...
1343200 bytes remaining (9% complete) ...
1326816 bytes remaining (10% complete) ...
1310432 bytes remaining (12% complete) ...
1294048 bytes remaining (13% complete) ...
1277664 bytes remaining (14% complete) ...
1261280 bytes remaining (15% complete) ...
1244896 bytes remaining (16% complete) ...
1228512 bytes remaining (17% complete) ...
1212128 bytes remaining (18% complete) ...
1195744 bytes remaining (19% complete) ...
1179360 bytes remaining (20% complete) ...
1162976 bytes remaining (21% complete) ...
1146592 bytes remaining (23% complete) ...
1130208 bytes remaining (24% complete) ...
1113824 bytes remaining (25% complete) ...
1097440 bytes remaining (26% complete) ...
1081056 bytes remaining (27% complete) ...
1064672 bytes remaining (28% complete) ...
1048288 bytes remaining (29% complete) ...
1031904 bytes remaining (30% complete) ...
1015520 bytes remaining (31% complete) ...
999136 bytes remaining (32% complete) ...
982752 bytes remaining (34% complete) ...
966368 bytes remaining (35% complete) ...
949984 bytes remaining (36% complete) ...
933600 bytes remaining (37% complete) ...
917216 bytes remaining (38% complete) ...
900832 bytes remaining (39% complete) ...
884448 bytes remaining (40% complete) ...
868064 bytes remaining (41% complete) ...
851680 bytes remaining (42% complete) ...
835296 bytes remaining (43% complete) ...
818912 bytes remaining (45% complete) ...
802528 bytes remaining (46% complete) ...
786144 bytes remaining (47% complete) ...
769760 bytes remaining (48% complete) ...
753376 bytes remaining (49% complete) ...
736992 bytes remaining (50% complete) ...
720608 bytes remaining (51% complete) ...
704224 bytes remaining (52% complete) ...
687840 bytes remaining (53% complete) ...
671456 bytes remaining (54% complete) ...
655072 bytes remaining (56% complete) ...
638688 bytes remaining (57% complete) ...
622304 bytes remaining (58% complete) ...
605920 bytes remaining (59% complete) ...
589536 bytes remaining (60% complete) ...
573152 bytes remaining (61% complete) ...
556768 bytes remaining (62% complete) ...
540384 bytes remaining (63% complete) ...
524000 bytes remaining (64% complete) ...
507616 bytes remaining (65% complete) ...
491232 bytes remaining (67% complete) ...
474848 bytes remaining (68% complete) ...
458464 bytes remaining (69% complete) ...
442080 bytes remaining (70% complete) ...
425696 bytes remaining (71% complete) ...
409312 bytes remaining (72% complete) ...
392928 bytes remaining (73% complete) ...
376544 bytes remaining (74% complete) ...
360160 bytes remaining (75% complete) ...
343776 bytes remaining (76% complete) ...
327392 bytes remaining (78% complete) ...
311008 bytes remaining (79% complete) ...
294624 bytes remaining (80% complete) ...
278240 bytes remaining (81% complete) ...
261856 bytes remaining (82% complete) ...
245472 bytes remaining (83% complete) ...
229088 bytes remaining (84% complete) ...
212704 bytes remaining (85% complete) ...
196320 bytes remaining (86% complete) ...
179936 bytes remaining (87% complete) ...
163552 bytes remaining (89% complete) ...
147168 bytes remaining (90% complete) ...
130784 bytes remaining (91% complete) ...
114400 bytes remaining (92% complete) ...
98016 bytes remaining (93% complete) ...
81632 bytes remaining (94% complete) ...
65248 bytes remaining (95% complete) ...
48864 bytes remaining (96% complete) ...
32480 bytes remaining (97% complete) ...
16096 bytes remaining (98% complete) ...
" 
"" 
0 
0 
18506 
QProcess: Destroyed while process is still running.

I can see that the S3 process is clearly not running in Activity Monitor.app before waitForFinished times out. What’s going on?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T03:54:42+00:00Added an answer on June 6, 2026 at 3:54 am

    The cause of this problem was that I was not integrating Qt’s event loop with Wt properly, so it was not running when I called those functions – QProcess happens to require the event loop.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I am reading a book about Javascript and jQuery and using one of the
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I would like to run a str_replace or preg_replace which looks for certain words
We're building an app, our first using Rails 3, and we're having to build

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.